#endif
REGISTER_MONSTER_SIMPLE(
/* MON_##id */ SPIDER,
-/* spawnflags */ MON_FLAG_MELEE | MON_FLAG_RANGED,
+/* spawnflags */ MON_FLAG_MELEE | MON_FLAG_RANGED | MON_FLAG_RIDE,
/* mins,maxs */ '-18 -18 -25', '18 18 30',
/* model */ "spider.dpm",
/* netname */ "spider",
.float spider_web_delay;
void M_Spider_Attack_Web_Explode()
-{
+{SELFPARAM();
entity e;
if(self)
{
}
void M_Spider_Attack_Web()
-{
+{SELFPARAM();
monster_makevectors(self.enemy);
- sound(self, CH_SHOTS, W_Sound("electro_fire2"), VOL_BASE, ATTEN_NORM);
+ sound(self, CH_SHOTS, SND_ELECTRO_FIRE2, VOL_BASE, ATTEN_NORM);
entity proj = spawn ();
proj.classname = "plasma";
}
bool M_Spider_Attack(int attack_type)
-{
+{SELFPARAM();
switch(attack_type)
{
case MONSTER_ATTACK_MELEE:
#endif // SVQC
bool M_Spider(int req)
-{
+{SELFPARAM();
switch(req)
{
#ifdef SVQC
}
case MR_PRECACHE:
{
- precache_model("models/monsters/spider.dpm");
- precache_sound (W_Sound("electro_fire2"));
return true;
}
#endif