]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Spawn the monster at the location of the nade (don't drop to floor), fixes oddness...
authorMario <mario.mario@y7mail.com>
Wed, 20 May 2020 11:26:42 +0000 (21:26 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 20 May 2020 11:26:42 +0000 (21:26 +1000)
qcsrc/common/mutators/mutator/nades/nades.qc

index 46e339a0392ca0daa01484dd569214f35a4433c4..9ac33b45bb328a612a395fb74f5a206fd62a7644 100644 (file)
@@ -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;