X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Ffunc%2Fbreakable.qc;h=6064603591492332ac4089011059b7e6f708bcbd;hb=323105d51f8eb6dea47c063965be5e34ad57f987;hp=ea71499fdb6b634bcbe2b9d381cc2a3a9534b238;hpb=ac7deb97b1a0e73ceea4684be73e72912fb3f1aa;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/func/breakable.qc b/qcsrc/common/mapobjects/func/breakable.qc index ea71499fd..606460359 100644 --- a/qcsrc/common/mapobjects/func/breakable.qc +++ b/qcsrc/common/mapobjects/func/breakable.qc @@ -354,6 +354,7 @@ void func_breakable_setup(entity this) this.takedamage = DAMAGE_NO; this.event_damage = func_null; this.bot_attack = false; + this.monster_attack = false; } // precache all the models @@ -374,6 +375,9 @@ void func_breakable_setup(entity this) this.reset = func_breakable_reset; this.reset(this); + if(this.monster_attack) + IL_PUSH(g_monster_targets, this); + IL_PUSH(g_initforplayer, this); this.init_for_player = func_breakable_init_for_player;