//#define EWHEEL_FANCYPATH
void ewheel_move_path()
-{
+{SELFPARAM();
#ifdef EWHEEL_FANCYPATH
// Are we close enougth to a path node to switch to the next?
if (vlen(self.origin - self.pathcurrent.origin) < 64)
}
void ewheel_move_enemy()
-{
+{SELFPARAM();
float newframe;
self.steerto = steerlib_arrive(self.enemy.origin,self.target_range_optimal);
}
void ewheel_move_idle()
-{
+{SELFPARAM();
if(self.frame != 0)
{
self.SendFlags |= TNSF_ANIM;
movelib_beak_simple((autocvar_g_turrets_unit_ewheel_speed_stop));
}
-void spawnfunc_turret_ewheel() { if(!turret_initialize(TUR_EWHEEL)) remove(self); }
+spawnfunc(turret_ewheel) { if(!turret_initialize(TUR_EWHEEL)) remove(self); }
float t_ewheel(float req)
-{
+{SELFPARAM();
switch(req)
{
case TR_ATTACK:
_mis = turret_projectile(W_Sound("lasergun_fire"), 1, 0, DEATH_TURRET_EWHEEL, PROJECTILE_BLASTER, TRUE, TRUE);
_mis.missile_flags = MIF_SPLASH;
- Send_Effect("laser_muzzleflash", self.tur_shotorg, self.tur_shotdir_updated * 1000, 1);
+ Send_Effect(EFFECT_BLASTER_MUZZLEFLASH, self.tur_shotorg, self.tur_shotdir_updated * 1000, 1);
self.tur_head.frame += 2;
e = find(world, targetname, self.target);
if (!e)
{
- dprint("Initital waypoint for ewheel does NOT exsist, fix your map!\n");
+ LOG_TRACE("Initital waypoint for ewheel does NOT exsist, fix your map!\n");
self.target = "";
}
if (e.classname != "turret_checkpoint")
- dprint("Warning: not a turrret path\n");
+ LOG_TRACE("Warning: not a turrret path\n");
else
{
}
case TR_PRECACHE:
{
- precache_model ("models/turrets/ewheel-base2.md3");
- precache_model ("models/turrets/ewheel-gun1.md3");
return true;
}
}
#ifdef CSQC
void ewheel_draw()
-{
+{SELFPARAM();
float dt;
dt = time - self.move_time;
}
float t_ewheel(float req)
-{
+{SELFPARAM();
switch(req)
{
case TR_SETUP: