zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/maps/de_residentevil2_final.lua
2014-10-01 20:49:54 -04:00

15 lines
405 B
Lua

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)