From: Mario Date: Wed, 20 May 2020 11:26:42 +0000 (+1000) Subject: Spawn the monster at the location of the nade (don't drop to floor), fixes oddness... X-Git-Tag: xonotic-v0.8.5~1055 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=a60b3cb7b5e343bc175d93b8c8cc48e40a36d98a;p=xonotic%2Fxonotic-data.pk3dir.git Spawn the monster at the location of the nade (don't drop to floor), fixes oddness with pokenades --- diff --git a/qcsrc/common/mutators/mutator/nades/nades.qc b/qcsrc/common/mutators/mutator/nades/nades.qc index 46e339a03..9ac33b45b 100644 --- a/qcsrc/common/mutators/mutator/nades/nades.qc +++ b/qcsrc/common/mutators/mutator/nades/nades.qc @@ -671,7 +671,9 @@ void nade_heal_boom(entity this) void nade_monster_boom(entity this) { - entity e = spawnmonster(spawn(), this.pokenade_type, 0, this.realowner, this.realowner, this.origin, false, false, 1); + entity e = spawn(); + e.noalign = true; // don't drop to floor + e = spawnmonster(e, this.pokenade_type, 0, this.realowner, this.realowner, this.origin, false, false, 1); if(autocvar_g_nades_pokenade_monster_lifetime > 0) e.monster_lifetime = time + autocvar_g_nades_pokenade_monster_lifetime;