summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-30 21:17:55 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-30 21:17:55 -0400
commit8b533ec75d5e1a6b593fe2edc11af297f9389864 (patch)
treeebcff60652b5a52ed9b6a456adca2308b1c82390 /gamemode/init.lua
parentd62058fcdea5fc6736a2a373f47dc6c14c70c319 (diff)
downloadredead-8b533ec75d5e1a6b593fe2edc11af297f9389864.tar.gz
redead-8b533ec75d5e1a6b593fe2edc11af297f9389864.tar.bz2
redead-8b533ec75d5e1a6b593fe2edc11af297f9389864.zip
Admin-created wooden props (crates, ect.) drop wood
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua
index 0d2fa20..55d98eb 100644
--- a/gamemode/init.lua
+++ b/gamemode/init.lua
@@ -1122,7 +1122,7 @@ function GM:PropBreak( att, prop )
if IsValid( phys ) and prop:GetModel() != "models/props_debris/wood_board04a.mdl" then
- if prop.IsWooden then
+ if prop.IsWooden or (ent:GetMaterialType() == MAT_WOOD) then
GAMEMODE:SpawnChunk( prop:LocalToWorld( prop:OBBCenter() ) )
GAMEMODE.WoodCount = GAMEMODE.WoodCount - 1