summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-06-10 17:36:04 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-06-10 17:36:04 -0400
commit8d5d033446327e32a845e02d58e3d05103d5d867 (patch)
tree19a2e19614c9afe014387f2d7dcffc0fe0f3bcc0 /gamemode/init.lua
parent0dbb82037c02c10b12532f92f170904613c06c10 (diff)
downloadredead-8d5d033446327e32a845e02d58e3d05103d5d867.tar.gz
redead-8d5d033446327e32a845e02d58e3d05103d5d867.tar.bz2
redead-8d5d033446327e32a845e02d58e3d05103d5d867.zip
Only allowed zombies to hit un-frozen props
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua
index 024358b..4a43b11 100644
--- a/gamemode/init.lua
+++ b/gamemode/init.lua
@@ -217,7 +217,7 @@ function GM:InitPostEntity()
for k,v in pairs(ents.FindByClass("prop_physics")) do
local min,max = v:WorldSpaceAABB()
local height = max.z - min.z
- if height > 10 then
+ if height > 10 and (not v:IsFrozen()) then
table.insert(tbl,v)
end
end
@@ -1543,6 +1543,7 @@ function GM:EndGame( winner )
if(MapVote && MapVote.Start) then
local maps = {}
files,dirs = file.Find("maps/*.bsp","MOD")
+ SetGlobalBool( "GameOver", false )
MapVote.Start(20,false,5,files)
else
print("Mapvote:")