set g_balance_devastator_guideratedelay 0.01
set g_balance_devastator_guidestop 0
set g_balance_devastator_health 30
-set g_balance_devastator_homing_missile_speed 500
-set g_balance_devastator_homing_missile_speed_accel 1.025
-set g_balance_devastator_homing_missile_speed_accel2 1.05
-set g_balance_devastator_homing_missile_speed_decel 0.9
-set g_balance_devastator_homing_missile_speed_max 1000
-set g_balance_devastator_homing_missile_speed_turnrate 0.25
-set g_balance_devastator_homing_missile_active 0
+set g_balance_devastator_homing_speed 500
+set g_balance_devastator_homing_speed_accel 1.025
+set g_balance_devastator_homing_speed_accel2 1.05
+set g_balance_devastator_homing_speed_decel 0.9
+set g_balance_devastator_homing_speed_max 1000
+set g_balance_devastator_homing_speed_turnrate 0.25
+set g_balance_devastator_homing 0
set g_balance_devastator_lifetime 10
set g_balance_devastator_radius 110
set g_balance_devastator_refire 1.1
set g_balance_devastator_guideratedelay 0.01
set g_balance_devastator_guidestop 0
set g_balance_devastator_health 40
-set g_balance_devastator_homing_missile_speed 500
-set g_balance_devastator_homing_missile_speed_accel 1.025
-set g_balance_devastator_homing_missile_speed_accel2 1.05
-set g_balance_devastator_homing_missile_speed_decel 0.9
-set g_balance_devastator_homing_missile_speed_max 1000
-set g_balance_devastator_homing_missile_speed_turnrate 0.25
-set g_balance_devastator_homing_missile_active 0
+set g_balance_devastator_homing_speed 500
+set g_balance_devastator_homing_speed_accel 1.025
+set g_balance_devastator_homing_speed_accel2 1.05
+set g_balance_devastator_homing_speed_decel 0.9
+set g_balance_devastator_homing_speed_max 1000
+set g_balance_devastator_homing_speed_turnrate 0.25
+set g_balance_devastator_homing 0
set g_balance_devastator_lifetime 30
set g_balance_devastator_radius 150
set g_balance_devastator_refire 1
set g_balance_devastator_guideratedelay 0.01
set g_balance_devastator_guidestop 0
set g_balance_devastator_health 30
-set g_balance_devastator_homing_missile_speed 500
-set g_balance_devastator_homing_missile_speed_accel 1.025
-set g_balance_devastator_homing_missile_speed_accel2 1.05
-set g_balance_devastator_homing_missile_speed_decel 0.9
-set g_balance_devastator_homing_missile_speed_max 1000
-set g_balance_devastator_homing_missile_speed_turnrate 0.25
-set g_balance_devastator_homing_missile_active 0
+set g_balance_devastator_homing_speed 500
+set g_balance_devastator_homing_speed_accel 1.025
+set g_balance_devastator_homing_speed_accel2 1.05
+set g_balance_devastator_homing_speed_decel 0.9
+set g_balance_devastator_homing_speed_max 1000
+set g_balance_devastator_homing_speed_turnrate 0.25
+set g_balance_devastator_homing 0
set g_balance_devastator_lifetime 10
set g_balance_devastator_radius 110
set g_balance_devastator_refire 1.2
set g_balance_devastator_guideratedelay 999
set g_balance_devastator_guidestop 1
set g_balance_devastator_health 30
-set g_balance_devastator_homing_missile_speed 500
-set g_balance_devastator_homing_missile_speed_accel 1.025
-set g_balance_devastator_homing_missile_speed_accel2 1.05
-set g_balance_devastator_homing_missile_speed_decel 0.9
-set g_balance_devastator_homing_missile_speed_max 1000
-set g_balance_devastator_homing_missile_speed_turnrate 0.25
-set g_balance_devastator_homing_missile_active 0
+set g_balance_devastator_homing_speed 500
+set g_balance_devastator_homing_speed_accel 1.025
+set g_balance_devastator_homing_speed_accel2 1.05
+set g_balance_devastator_homing_speed_decel 0.9
+set g_balance_devastator_homing_speed_max 1000
+set g_balance_devastator_homing_speed_turnrate 0.25
+set g_balance_devastator_homing 0
set g_balance_devastator_lifetime 20
set g_balance_devastator_radius 110
set g_balance_devastator_refire 0.9
set g_balance_devastator_guideratedelay 0.01
set g_balance_devastator_guidestop 0
set g_balance_devastator_health 30
-set g_balance_devastator_homing_missile_speed 500
-set g_balance_devastator_homing_missile_speed_accel 1.025
-set g_balance_devastator_homing_missile_speed_accel2 1.05
-set g_balance_devastator_homing_missile_speed_decel 0.9
-set g_balance_devastator_homing_missile_speed_max 1000
-set g_balance_devastator_homing_missile_speed_turnrate 0.25
-set g_balance_devastator_homing_missile_active 0
+set g_balance_devastator_homing_speed 500
+set g_balance_devastator_homing_speed_accel 1.025
+set g_balance_devastator_homing_speed_accel2 1.05
+set g_balance_devastator_homing_speed_decel 0.9
+set g_balance_devastator_homing_speed_max 1000
+set g_balance_devastator_homing_speed_turnrate 0.25
+set g_balance_devastator_homing 0
set g_balance_devastator_lifetime 10
set g_balance_devastator_radius 110
set g_balance_devastator_refire 1.1
}
void W_Devastator_Explode(entity this, entity directhitentity)
-{
-
+{
W_Devastator_Unregister(this);
if(directhitentity.takedamage == DAMAGE_AIM)
float ad = vlen(vectoangles(normalize(this.enemy.origin - this.origin)) - this.angles);
// To close to something, Slow down!
- if ( ((ff < 0.7) || (ad > 4)) && (myspeed > WEP_CVAR(devastator, homing_missile_speed)) )
- myspeed = max(myspeed * WEP_CVAR(devastator, homing_missile_speed_decel), WEP_CVAR(devastator, homing_missile_speed));
+ if ( ((ff < 0.7) || (ad > 4)) && (myspeed > WEP_CVAR(devastator, homing_speed)) )
+ myspeed = max(myspeed * WEP_CVAR(devastator, homing_speed_decel), WEP_CVAR(devastator, homing_speed));
// Failry clear, accelerate.
- if ( (ff > 0.7) && (myspeed < WEP_CVAR(devastator, homing_missile_speed_max)) )
- myspeed = min(myspeed * WEP_CVAR(devastator, homing_missile_speed_accel), WEP_CVAR(devastator, homing_missile_speed_max));
+ if ( (ff > 0.7) && (myspeed < WEP_CVAR(devastator, homing_speed_max)) )
+ myspeed = min(myspeed * WEP_CVAR(devastator, homing_speed_accel), WEP_CVAR(devastator, homing_speed_max));
// Setup trace pitch
pt_seek = 1 - ff;
{
// Got a clear path to target, speed up fast (if not at full speed) and go straight for it.
myspeed = vlen(this.velocity);
- if (myspeed < WEP_CVAR(devastator, homing_missile_speed_max))
- myspeed = min(myspeed * WEP_CVAR(devastator, homing_missile_speed_accel2), WEP_CVAR(devastator, homing_missile_speed_max));
+ if (myspeed < WEP_CVAR(devastator, homing_speed_max))
+ myspeed = min(myspeed * WEP_CVAR(devastator, homing_speed_accel2), WEP_CVAR(devastator, homing_speed_max));
wishdir = ve;
}
- if ((myspeed > WEP_CVAR(devastator, homing_missile_speed)) && (this.cnt > time))
- myspeed = min(myspeed * WEP_CVAR(devastator, homing_missile_speed_accel2), WEP_CVAR(devastator, homing_missile_speed_max));
+ if ((myspeed > WEP_CVAR(devastator, homing_speed)) && (this.cnt > time))
+ myspeed = min(myspeed * WEP_CVAR(devastator, homing_speed_accel2), WEP_CVAR(devastator, homing_speed_max));
// Ranoutagazfish?
if (this.cnt < time)
// Calculate new heading
olddir = normalize(this.velocity);
- newdir = normalize(olddir + wishdir * WEP_CVAR(devastator, homing_missile_speed_turnrate));
+ newdir = normalize(olddir + wishdir * WEP_CVAR(devastator, homing_speed_turnrate));
// Set heading & speed
this.velocity = newdir * myspeed;
settouch(missile, W_Devastator_Touch);
missile.nextthink = time;
- if(WEP_CVAR(devastator, homing_missile_active) != 0)
+ if(WEP_CVAR(devastator, homing) != 0)
setthink(missile, Homing_Missile_Think);
else
setthink(missile, W_Devastator_Think);
P(class, prefix, guiderate, float, NONE) \
P(class, prefix, guidestop, float, NONE) \
P(class, prefix, health, float, NONE) \
- P(class, prefix, homing_missile_active, bool, NONE) \
- P(class, prefix, homing_missile_speed, float, NONE) \
- P(class, prefix, homing_missile_speed_accel, float, NONE) \
- P(class, prefix, homing_missile_speed_accel2, float, NONE) \
- P(class, prefix, homing_missile_speed_decel, float, NONE) \
- P(class, prefix, homing_missile_speed_max, float, NONE) \
- P(class, prefix, homing_missile_speed_turnrate, float, NONE) \
+ P(class, prefix, homing, bool, NONE) \
+ P(class, prefix, homing_speed, float, NONE) \
+ P(class, prefix, homing_speed_accel, float, NONE) \
+ P(class, prefix, homing_speed_accel2, float, NONE) \
+ P(class, prefix, homing_speed_decel, float, NONE) \
+ P(class, prefix, homing_speed_max, float, NONE) \
+ P(class, prefix, homing_speed_turnrate, float, NONE) \
P(class, prefix, lifetime, float, NONE) \
P(class, prefix, radius, float, NONE) \
P(class, prefix, refire, float, NONE) \