X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fminelayer.qc;h=00f729b113e14f7bf87dc02eb1e006c1dc7a2f65;hp=0e1db0f1b3862833240c34c0011e7429a057f81c;hb=646e82672a7a8b8db0be0caf5dbd062b0d04da96;hpb=cc37ae9ec08cca9f8b17cdbf91e71380d0d6f700 diff --git a/qcsrc/common/weapons/weapon/minelayer.qc b/qcsrc/common/weapons/weapon/minelayer.qc index 0e1db0f1b3..00f729b113 100644 --- a/qcsrc/common/weapons/weapon/minelayer.qc +++ b/qcsrc/common/weapons/weapon/minelayer.qc @@ -93,6 +93,7 @@ void W_MineLayer_Stick(entity this, entity to) newmine.event_damage = this.event_damage; newmine.spawnshieldtime = this.spawnshieldtime; newmine.damagedbycontents = true; + IL_PUSH(g_damagedbycontents, newmine); set_movetype(newmine, MOVETYPE_NONE); // lock the mine in place newmine.projectiledeathtype = this.projectiledeathtype; @@ -363,6 +364,7 @@ void W_MineLayer_Attack(Weapon thiswep, entity actor, .entity weaponentity) mine.health = WEP_CVAR(minelayer, health); mine.event_damage = W_MineLayer_Damage; mine.damagedbycontents = true; + IL_PUSH(g_damagedbycontents, mine); set_movetype(mine, MOVETYPE_TOSS); PROJECTILE_MAKETRIGGER(mine);