- #ifdef SVQC
- METHOD(Spider, mr_think, bool(Spider thismon, entity actor))
- {
- return true;
- }
- METHOD(Spider, mr_pain, bool(Spider thismon, entity actor))
- {
- return true;
- }
- METHOD(Spider, mr_death, bool(Spider thismon, entity actor))
- {
- setanim(actor, actor.anim_melee, false, true, true);
- actor.angles_x = 180;
- return true;
- }
- #endif
- #ifndef MENUQC
- METHOD(Spider, mr_anim, bool(Spider thismon, entity actor))
- {
- vector none = '0 0 0';
- actor.anim_walk = animfixfps(actor, '1 1 1', none);
- actor.anim_idle = animfixfps(actor, '0 1 1', none);
- actor.anim_melee = animfixfps(actor, '2 1 5', none); // analyze models and set framerate
- actor.anim_shoot = animfixfps(actor, '3 1 5', none); // analyze models and set framerate
- actor.anim_run = animfixfps(actor, '1 1 1', none);
- return true;
- }
- #endif
- #ifdef SVQC
- spawnfunc(item_health_medium);
- METHOD(Spider, mr_setup, bool(Spider thismon, entity actor))
- {
- if(!actor.health) actor.health = (autocvar_g_monster_spider_health);
- if(!actor.speed) { actor.speed = (autocvar_g_monster_spider_speed_walk); }
- if(!actor.speed2) { actor.speed2 = (autocvar_g_monster_spider_speed_run); }
- if(!actor.stopspeed) { actor.stopspeed = (autocvar_g_monster_spider_speed_stop); }
- if(!actor.damageforcescale) { actor.damageforcescale = (autocvar_g_monster_spider_damageforcescale); }