This commit is contained in:
lifestorm
2024-08-04 22:55:00 +03:00
parent 8064ba84d8
commit 73479cff9e
7338 changed files with 1718883 additions and 14 deletions

View 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")