From d7c9f0d5052bc970e342b1dcd102afb05f6b9b1d Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 20 Oct 2016 07:21:39 +1000 Subject: [PATCH] Allow setting a monster to not auto align itself at spawn --- qcsrc/common/monsters/sv_monsters.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index 59c57fbbe..f680f118b 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -1346,13 +1346,13 @@ bool Monster_Spawn(entity this, bool check_appear, int mon_id) this.oldtarget2 = this.target2; this.pass_distance = 0; this.deadflag = DEAD_NO; - this.noalign = ((mon.spawnflags & MONSTER_TYPE_FLY) || (mon.spawnflags & MONSTER_TYPE_SWIM)); this.spawn_time = time; this.gravity = 1; this.monster_moveto = '0 0 0'; this.monster_face = '0 0 0'; this.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_BOTCLIP | DPCONTENTS_MONSTERCLIP; + if(!this.noalign) { this.noalign = ((mon.spawnflags & MONSTER_TYPE_FLY) || (mon.spawnflags & MONSTER_TYPE_SWIM)); } if(!this.scale) { this.scale = 1; } if(autocvar_g_monsters_edit) { this.grab = 1; } if(autocvar_g_fullbrightplayers) { this.effects |= EF_FULLBRIGHT; } -- 2.39.2