X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fmonsters%2Fmonster%2Fshambler.qc;h=0d134941b464d80755a38a0faf46402ace06ed71;hb=17308b9ad60c2f773be0de39b811a9752e3037af;hp=751d0fff01ff822e72e81baba4ed49c5b449e0b2;hpb=daab9330abb8952053b47239d1322cd029b08cd1;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/monsters/monster/shambler.qc b/qcsrc/common/monsters/monster/shambler.qc index 751d0fff0..0d134941b 100644 --- a/qcsrc/common/monsters/monster/shambler.qc +++ b/qcsrc/common/monsters/monster/shambler.qc @@ -101,7 +101,7 @@ void M_Shambler_Attack_Lightning_Explode(entity this) Damage(head, this, this.realowner, (autocvar_g_monster_shambler_attack_lightning_damage_zap) * MONSTER_SKILLMOD(this), DEATH_MONSTER_SHAMBLER_ZAP.m_id, head.origin, '0 0 0'); } - setthink(this, SUB_Remove_self); + setthink(this, SUB_Remove); this.nextthink = time + 0.2; } @@ -124,15 +124,15 @@ void M_Shambler_Attack_Lightning_Damage(entity this, entity inflictor, entity at W_PrepareExplosionByDamage(this, attacker, adaptor_think2use); } -void M_Shambler_Attack_Lightning_Touch() -{SELFPARAM(); - PROJECTILE_TOUCH; +void M_Shambler_Attack_Lightning_Touch(entity this) +{ + PROJECTILE_TOUCH(this); - self.use(this, NULL, NULL); + this.use(this, NULL, NULL); } -void M_Shambler_Attack_Lightning_Think() -{SELFPARAM(); +void M_Shambler_Attack_Lightning_Think(entity this) +{ this.nextthink = time; if (time > this.cnt) { @@ -236,12 +236,12 @@ METHOD(Shambler, mr_think, bool(Shambler this, entity actor)) return true; } -METHOD(Shambler, mr_pain, bool(Shambler this, entity actor)) +METHOD(Shambler, mr_pain, float(Shambler this, entity actor, float damage_take, entity attacker, float deathtype)) { TC(Shambler, this); actor.pain_finished = time + 0.5; setanim(actor, actor.anim_pain1, true, true, false); - return true; + return damage_take; } METHOD(Shambler, mr_death, bool(Shambler this, entity actor))