X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmonsters%2Fsv_monsters.qc;h=7ee3e3eab72d84228fe2360e7d46a8137ede8fe1;hb=eb9cac8594043ba8a31c25464a388cc1a94d816f;hp=a3610e17f7e76b27db8f694a1414d4603797ddca;hpb=c741e6b3f012aa525f23e1df30d1d933b383fbc5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index a3610e17f..7ee3e3eab 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -207,7 +207,7 @@ void Monster_Delay_Action() } else { - oldself.think = SUB_Remove; + oldself.think = SUB_Remove_self; oldself.nextthink = time; } } @@ -346,7 +346,7 @@ void Monster_Sound(.string samplefield, float sound_delay, float delaytoo, float if(delaytoo) if(time < self.msound_delay) return; // too early - _GlobalSound(self.(samplefield), chan, VOICETYPE_PLAYERSOUND, false); + GlobalSound_string(self.(samplefield), chan, VOICETYPE_PLAYERSOUND); self.msound_delay = time + sound_delay; } @@ -955,19 +955,19 @@ float Monster_Appear_Check(entity ent, float monster_id) return true; } -void Monster_Reset() -{SELFPARAM(); - setorigin(self, self.pos1); - self.angles = self.pos2; +void Monster_Reset(entity this) +{ + setorigin(this, this.pos1); + this.angles = this.pos2; - Unfreeze(self); // remove any icy remains + Unfreeze(this); // remove any icy remains - self.health = self.max_health; - self.velocity = '0 0 0'; - self.enemy = world; - self.goalentity = world; - self.attack_finished_single[0] = 0; - self.moveto = self.origin; + this.health = this.max_health; + this.velocity = '0 0 0'; + this.enemy = world; + this.goalentity = world; + this.attack_finished_single[0] = 0; + this.moveto = this.origin; } void Monster_Dead_Damage(entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force) @@ -983,7 +983,7 @@ void Monster_Dead_Damage(entity inflictor, entity attacker, float damage, int de // number of monsters spawned with mobspawn command totalspawned -= 1; - self.think = SUB_Remove; + self.think = SUB_Remove_self; self.nextthink = time + 0.1; self.event_damage = func_null; } @@ -1121,7 +1121,7 @@ void Monster_Damage(entity inflictor, entity attacker, float damage, int deathty { Violence_GibSplash(self, 1, 0.5, attacker); - self.think = SUB_Remove; + self.think = SUB_Remove_self; self.nextthink = time + 0.1; } }