mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
22
lua/includes/extensions/vector.lua
Normal file
22
lua/includes/extensions/vector.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
local meta = FindMetaTable( "Vector" )
|
||||
|
||||
-- Nothing in here, still leaving this file here just in case
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
Converts Vector To Color - alpha precision lost, must reset
|
||||
-----------------------------------------------------------]]
|
||||
function meta:ToColor( )
|
||||
|
||||
return Color( self.x * 255, self.y * 255, self.z * 255 )
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user