mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
36
gamemodes/helix/plugins/area/cl_plugin.lua
Normal file
36
gamemodes/helix/plugins/area/cl_plugin.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
--[[
|
||||
| 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
|
||||
Reference in New Issue
Block a user