mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
31
lua/pac3/editor/server/spawnmenu.lua
Normal file
31
lua/pac3/editor/server/spawnmenu.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
concommand.Add("pac_in_editor", function(ply, _, args)
|
||||
ply:SetNWBool("in pac3 editor", tonumber(args[1]) == 1)
|
||||
end)
|
||||
|
||||
function pace.SpawnPart(ply, model)
|
||||
if pace.suppress_prop_spawn then return end
|
||||
if model then
|
||||
if IsValid(ply) and ply:GetNWBool("in pac3 editor") then
|
||||
net.Start("pac_spawn_part")
|
||||
net.WriteString(model)
|
||||
net.Send(ply)
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
pac.AddHook( "PlayerSpawnProp", "pac_PlayerSpawnProp", pace.SpawnPart)
|
||||
pac.AddHook( "PlayerSpawnRagdoll", "pac_PlayerSpawnRagdoll", pace.SpawnPart)
|
||||
pac.AddHook( "PlayerSpawnEffect", "pac_PlayerSpawnEffect", pace.SpawnPart)
|
||||
|
||||
util.AddNetworkString("pac_spawn_part")
|
||||
Reference in New Issue
Block a user