mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
37 lines
728 B
Lua
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
|