zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/maps/de_residentevil2_final.lua

16 lines
405 B
Lua
Raw Permalink Normal View History

2014-10-02 08:49:54 +08:00
hook.Add("InitPostEntityMap", "Adding", function()
for _, class in pairs(GAMEMODE.ZombieClasses) do
class.Unlocked = true
end
hook.Add("PlayerInitialSpawn", "GiveAllClasses", function(pl)
pl:SendLua("for _,class in pairs(GAMEMODE.ZombieClasses) do class.Unlocked=true end")
end)
for _, ent in pairs(ents.FindByClass("prop_physics*")) do
ent:GetPhysicsObject():EnableMotion(true)
end
end)