Files
wnsrc/gamemodes/helix/plugins/area/cl_plugin.lua
lifestorm c6d9b6f580 Upload
2024-08-05 18:40:29 +03:00

37 lines
728 B
Lua

--[[
| 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 PLUGIN = PLUGIN
function PLUGIN:GetPlayerAreaTrace()
local client = LocalPlayer()
return util.TraceLine({
start = client:GetShootPos(),
endpos = client:GetShootPos() + client:GetForward() * 96,
filter = client
})
end
function PLUGIN:StartEditing()
ix.area.bEditing = true
self.editStart = nil
self.editProperties = nil
end
function PLUGIN:StopEditing()
ix.area.bEditing = false
if (IsValid(ix.gui.areaEdit)) then
ix.gui.areaEdit:Remove()
end
end