more seeker fixes
authorRudolf Polzer <rpolzer@nb-04.(none)>
Thu, 4 Feb 2010 12:54:17 +0000 (13:54 +0100)
committerRudolf Polzer <rpolzer@nb-04.(none)>
Mon, 8 Feb 2010 08:49:26 +0000 (09:49 +0100)
data/balance.cfg
data/balance25.cfg
data/balanceHavoc.cfg
data/balanceNexrun.cfg
data/balanceSamual.cfg
data/qcsrc/client/projectile.qc
data/qcsrc/server/t_items.qc
data/qcsrc/server/w_all.qc
data/qcsrc/server/w_seeker.qc

index 503214d..030f322 100644 (file)
@@ -594,6 +594,7 @@ set g_balance_seeker_flac_lifetime_rand 0.05
 set g_balance_seeker_flac_radius 100
 set g_balance_seeker_flac_refire 0.1
 set g_balance_seeker_flac_speed 3000
+set g_balance_seeker_flac_speed_up 1000
 set g_balance_seeker_flac_spread 0.4
 set g_balance_seeker_missile_accel 1.05
 set g_balance_seeker_missile_ammo 2
@@ -617,6 +618,7 @@ set g_balance_seeker_missile_smart_mindist 800
 set g_balance_seeker_missile_smart_trace_max 2500
 set g_balance_seeker_missile_smart_trace_min 1000
 set g_balance_seeker_missile_speed 700
+set g_balance_seeker_missile_speed_up 300
 set g_balance_seeker_missile_speed_max 1250
 set g_balance_seeker_missile_turnrate 0.65
 set g_balance_seeker_tag_ammo 1
index 85ab379..c61bfde 100644 (file)
@@ -593,6 +593,7 @@ set g_balance_seeker_flac_lifetime_rand 0.05
 set g_balance_seeker_flac_radius 100
 set g_balance_seeker_flac_refire 0.1
 set g_balance_seeker_flac_speed 3000
+set g_balance_seeker_flac_speed_up 1000
 set g_balance_seeker_flac_spread 0.4
 set g_balance_seeker_missile_accel 1.05
 set g_balance_seeker_missile_ammo 2
@@ -616,6 +617,7 @@ set g_balance_seeker_missile_smart_mindist 800
 set g_balance_seeker_missile_smart_trace_max 2500
 set g_balance_seeker_missile_smart_trace_min 1000
 set g_balance_seeker_missile_speed 700
+set g_balance_seeker_missile_speed_up 300
 set g_balance_seeker_missile_speed_max 1250
 set g_balance_seeker_missile_turnrate 0.65
 set g_balance_seeker_tag_ammo 1
index 331db41..98eec82 100644 (file)
@@ -593,6 +593,7 @@ set g_balance_seeker_flac_lifetime_rand 0.05
 set g_balance_seeker_flac_radius 100
 set g_balance_seeker_flac_refire 0.1
 set g_balance_seeker_flac_speed 3000
+set g_balance_seeker_flac_speed_up 1000
 set g_balance_seeker_flac_spread 0.4
 set g_balance_seeker_missile_accel 1.05
 set g_balance_seeker_missile_ammo 2
@@ -616,6 +617,7 @@ set g_balance_seeker_missile_smart_mindist 800
 set g_balance_seeker_missile_smart_trace_max 2500
 set g_balance_seeker_missile_smart_trace_min 1000
 set g_balance_seeker_missile_speed 700
+set g_balance_seeker_missile_speed_up 300
 set g_balance_seeker_missile_speed_max 1250
 set g_balance_seeker_missile_turnrate 0.65
 set g_balance_seeker_tag_ammo 1
index 974c006..b4df494 100644 (file)
@@ -594,6 +594,7 @@ set g_balance_seeker_flac_lifetime_rand 0.05
 set g_balance_seeker_flac_radius 100
 set g_balance_seeker_flac_refire 0.1
 set g_balance_seeker_flac_speed 3000
+set g_balance_seeker_flac_speed_up 1000
 set g_balance_seeker_flac_spread 0.4
 set g_balance_seeker_missile_accel 1.05
 set g_balance_seeker_missile_ammo 2
@@ -617,6 +618,7 @@ set g_balance_seeker_missile_smart_mindist 800
 set g_balance_seeker_missile_smart_trace_max 2500
 set g_balance_seeker_missile_smart_trace_min 1000
 set g_balance_seeker_missile_speed 700
+set g_balance_seeker_missile_speed_up 300
 set g_balance_seeker_missile_speed_max 1250
 set g_balance_seeker_missile_turnrate 0.65
 set g_balance_seeker_tag_ammo 1
index 437e460..c8de71e 100644 (file)
@@ -20,6 +20,7 @@ set g_weaponreplace_hlac 0 // I don't particularly like this weapon.
 set g_weaponreplace_campingrifle ""
 set g_weaponreplace_tuba ""
 set g_weaponreplace_fireball 0 // Don't kill me div0, just for now until I figure out a good balance for it.
+set g_weaponreplace_seeker ""
 set sv_q3acompat_machineshotgunswap 0 "shorthand for swapping uzi and shotgun (for Q3A map compatibility)"
 // }}}
 
@@ -593,6 +594,7 @@ set g_balance_seeker_flac_lifetime_rand 0.05
 set g_balance_seeker_flac_radius 100
 set g_balance_seeker_flac_refire 0.1
 set g_balance_seeker_flac_speed 3000
+set g_balance_seeker_flac_speed_up 1000
 set g_balance_seeker_flac_spread 0.4
 set g_balance_seeker_missile_accel 1.05
 set g_balance_seeker_missile_ammo 2
@@ -616,6 +618,7 @@ set g_balance_seeker_missile_smart_mindist 800
 set g_balance_seeker_missile_smart_trace_max 2500
 set g_balance_seeker_missile_smart_trace_min 1000
 set g_balance_seeker_missile_speed 700
+set g_balance_seeker_missile_speed_up 300
 set g_balance_seeker_missile_speed_max 1250
 set g_balance_seeker_missile_turnrate 0.65
 set g_balance_seeker_tag_ammo 1
index 419f297..dad9b08 100644 (file)
@@ -261,7 +261,7 @@ void Ent_Projectile()
                        case PROJECTILE_FIREBALL: self.model = ""; self.modelindex = 0; self.traileffect = particleeffectnum("fireball"); break; // particle effect is good enough
                        case PROJECTILE_FIREMINE: self.model = ""; self.modelindex = 0; self.traileffect = particleeffectnum("firemine"); break; // particle effect is good enough
                        case PROJECTILE_TAG: setmodel(self, "models/laser.mdl"); self.traileffect = particleeffectnum("TR_ROCKET"); break;
-                       case PROJECTILE_FLAC: setmodel(self, "models/hagarmissile.md3"); self.scale = 0.4; self.traileffect = particleeffectnum("TR_ROCKET"); break;
+                       case PROJECTILE_FLAC: setmodel(self, "models/hagarmissile.mdl"); self.scale = 0.4; self.traileffect = particleeffectnum("TR_ROCKET"); break;
                        case PROJECTILE_SEEKER: setmodel(self, "models/tagrocket.md3"); self.scale = 2; self.traileffect = particleeffectnum("TR_ROCKET"); break;
                        default:
                                error("Received invalid CSQC projectile, can't work with this!");
index d4428c9..9b49eda 100644 (file)
@@ -1504,12 +1504,6 @@ void spawnfunc_item_jetpack(void)
        StartItem ("models/items/g_jetpack.md3", "misc/itempickup.wav", g_pickup_respawntime_powerup, g_pickup_respawntimejitter_powerup, "Jet pack", IT_JETPACK, 0, FL_POWERUP, commodity_pickupevalfunc, BOT_PICKUP_RATING_LOW);
 }
 
-// we no longer have the seeker
-void spawnfunc_weapon_seeker()
-{
-       spawnfunc_weapon_fireball();
-}
-
 
 #define OP_SET 0
 #define OP_MIN 1
index fdb02cf..9a9b383 100644 (file)
@@ -14,3 +14,4 @@
 #include "w_tuba.qc"
 #include "w_campingrifle.qc"
 #include "w_fireball.qc"
+#include "w_seeker.qc"
index b863875..c50e13c 100644 (file)
@@ -1,5 +1,5 @@
 #ifdef REGISTER_WEAPON
-REGISTER_WEAPON(SEEKER, w_seeker, IT_ROCKETS, 9, WEP_FLAG_NORMAL | WEP_TYPE_SPLASH, BOT_PICKUP_RATING_MEDIUM, "seeker", "seeker", "T.A.G. Seeker");
+REGISTER_WEAPON(SEEKER, w_seeker, IT_ROCKETS, 9, WEP_FLAG_NORMAL | WEP_TYPE_SPLASH, BOT_PICKUP_RATING_MID, "seeker", "seeker", "T.A.G. Seeker");
 #else
 //.float speed; = switchweapon
 //.float proxytime; = autoswitch
@@ -8,7 +8,7 @@ REGISTER_WEAPON(SEEKER, w_seeker, IT_ROCKETS, 9, WEP_FLAG_NORMAL | WEP_TYPE_SPLA
 void Seeker_Missile_Explode ()
 {
        self.event_damage = SUB_Null;
-       RadiusDamage (self, self.owner, cvar("g_balance_seeker_missile_damage"), cvar("g_balance_seeker_missile_edgedamage"), cvar("g_balance_seeker_missile_radius"), world, cvar("g_balance_seeker_missile_force"), self.projectiledeathtype, other, WEP_SEEKER);
+       RadiusDamage (self, self.owner, cvar("g_balance_seeker_missile_damage"), cvar("g_balance_seeker_missile_edgedamage"), cvar("g_balance_seeker_missile_radius"), world, cvar("g_balance_seeker_missile_force"), self.projectiledeathtype, other);
 
        remove (self);
 }
@@ -187,7 +187,6 @@ void Seeker_Fire_Missile(vector f_diff)
        missile.nextthink       = time;// + 0.2;// + cvar("g_balance_seeker_missile_activate_delay");
        missile.cnt             = time + cvar("g_balance_seeker_missile_lifetime");
        missile.enemy           = self.enemy;
-       missile.switchweapon           = cvar("g_balance_seeker_missile_speed");
        missile.solid           = SOLID_BBOX;
        missile.scale           = 2;
        missile.takedamage          = DAMAGE_YES;
@@ -203,8 +202,7 @@ void Seeker_Fire_Missile(vector f_diff)
 
        missile.flags       = FL_PROJECTILE;
 
-       missile.velocity    = (w_shotdir + '0 0 0.45') * missile.switchweapon;
-       W_SetupProjectileVelocity(missile);
+       W_SETUPPROJECTILEVELOCITY_UP(missile, g_balance_seeker_missile);
 
        missile.switchweapon = vlen(missile.velocity);
        missile.angles = vectoangles (missile.velocity);
@@ -344,9 +342,8 @@ void Seeker_Fire_Tag()
 
        missile.flags       = FL_PROJECTILE;
 
-       missile.velocity    = w_shotdir  * cvar("g_balance_seeker_tag_speed");
        missile.movetype    = MOVETYPE_FLY;
-       W_SetupProjectileVelocity(missile);
+       W_SETUPPROJECTILEVELOCITY(missile, g_balance_seeker_tag);
        missile.angles = vectoangles (missile.velocity);
 
        CSQCProjectile(missile, TRUE, PROJECTILE_TAG, FALSE); // has sound
@@ -357,7 +354,7 @@ void Seeker_Flac_Explode ()
 {
        self.event_damage = SUB_Null;
 
-       RadiusDamage (self, self.owner, cvar("g_balance_seeker_flac_damage"), cvar("g_balance_seeker_flac_edgedamage"), cvar("g_balance_seeker_flac_radius"), world, cvar("g_balance_seeker_flac_force"), self.projectiledeathtype, other, WEP_SEEKER);
+       RadiusDamage (self, self.owner, cvar("g_balance_seeker_flac_damage"), cvar("g_balance_seeker_flac_edgedamage"), cvar("g_balance_seeker_flac_radius"), world, cvar("g_balance_seeker_flac_force"), self.projectiledeathtype, other);
 
        remove (self);
 }
@@ -417,10 +414,7 @@ void Seeker_Fire_Flac()
        missile.projectiledeathtype = WEP_SEEKER | HITTYPE_SECONDARY;
 
        missile.movetype = MOVETYPE_FLY;
-       w_shotdir = w_shotdir + '0 0 0.3';
-       missile.velocity    = (w_shotdir  + randomvec() * cvar("g_balance_seeker_flac_spread")) * cvar("g_balance_seeker_flac_speed");
-
-       W_SetupProjectileVelocity(missile);
+       W_SETUPPROJECTILEVELOCITY_UP(missile, g_balance_seeker_flac);
 
        missile.angles = vectoangles (missile.velocity);
        missile.flags = FL_PROJECTILE;