From a60b3cb7b5e343bc175d93b8c8cc48e40a36d98a Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 20 May 2020 21:26:42 +1000 Subject: [PATCH] Spawn the monster at the location of the nade (don't drop to floor), fixes oddness with pokenades --- qcsrc/common/mutators/mutator/nades/nades.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2