- return true;
- }
- METHOD(Mage, mr_pain, bool(Monster thismon))
- {
- return true;
- }
- METHOD(Mage, mr_death, bool(Monster thismon))
- {
- SELFPARAM();
- setanim(self, self.anim_die1, false, true, true);
- return true;
- }
- #endif
- #ifndef MENUQC
- METHOD(Mage, mr_anim, bool(Monster thismon))
- {
- SELFPARAM();
- vector none = '0 0 0';
- self.anim_die1 = animfixfps(self, '4 1 0.5', none); // 2 seconds
- self.anim_walk = animfixfps(self, '1 1 1', none);
- self.anim_idle = animfixfps(self, '0 1 1', none);
- self.anim_pain1 = animfixfps(self, '3 1 2', none); // 0.5 seconds
- self.anim_shoot = animfixfps(self, '2 1 5', none); // analyze models and set framerate
- self.anim_run = animfixfps(self, '5 1 1', none);
-
- return true;
- }
- #endif
- #ifdef SVQC
- .float speed;
- spawnfunc(item_health_large);
- METHOD(Mage, mr_setup, bool(Monster thismon))
- {
- SELFPARAM();
- if(!self.health) self.health = (autocvar_g_monster_mage_health);
- if(!self.speed) { self.speed = (autocvar_g_monster_mage_speed_walk); }
- if(!self.speed2) { self.speed2 = (autocvar_g_monster_mage_speed_run); }
- if(!self.stopspeed) { self.stopspeed = (autocvar_g_monster_mage_speed_stop); }
- if(!self.damageforcescale) { self.damageforcescale = (autocvar_g_monster_mage_damageforcescale); }
+#endif
+#ifndef MENUQC
+METHOD(Mage, mr_anim, bool(Mage this, entity actor))
+{
+ TC(Mage, this);
+ vector none = '0 0 0';
+ actor.anim_die1 = animfixfps(actor, '4 1 0.5', none); // 2 seconds
+ actor.anim_walk = animfixfps(actor, '1 1 1', none);
+ actor.anim_idle = animfixfps(actor, '0 1 1', none);
+ actor.anim_pain1 = animfixfps(actor, '3 1 2', none); // 0.5 seconds
+ actor.anim_shoot = animfixfps(actor, '2 1 5', none); // analyze models and set framerate
+ actor.anim_run = animfixfps(actor, '5 1 1', none);
+ return true;
+}
+#endif
+#ifdef SVQC
+.float speed;
+spawnfunc(item_health_large);
+METHOD(Mage, mr_setup, bool(Mage this, entity actor))
+{
+ TC(Mage, this);
+ if(!actor.health) actor.health = (autocvar_g_monster_mage_health);
+ if(!actor.speed) { actor.speed = (autocvar_g_monster_mage_speed_walk); }
+ if(!actor.speed2) { actor.speed2 = (autocvar_g_monster_mage_speed_run); }
+ if(!actor.stopspeed) { actor.stopspeed = (autocvar_g_monster_mage_speed_stop); }
+ if(!actor.damageforcescale) { actor.damageforcescale = (autocvar_g_monster_mage_damageforcescale); }