]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't consume cells if charge is 100% and secondary is held down, nerf velocity charg...
authorFruitieX <rasse@rasse-laptop.(none)>
Mon, 18 Oct 2010 21:17:57 +0000 (00:17 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Mon, 18 Oct 2010 21:17:57 +0000 (00:17 +0300)
balanceXonotic.cfg
qcsrc/server/w_nex.qc

index b1c5a0a81b9f5ab708ba43af7d1498cd0e3cc2d6..66c1e991a7c0e2a8f5fdd05168c383faecd5b25f 100644 (file)
@@ -430,23 +430,23 @@ set g_balance_nex_primary_damagefalloff_forcehalflife 2000
 
 set g_balance_nex_secondary 1
 set g_balance_nex_secondary_charge 1
-set g_balance_nex_secondary_charge_rate 0.1
+set g_balance_nex_secondary_charge_rate 0.15
 set g_balance_nex_secondary_damage 0
 set g_balance_nex_secondary_force 0
 set g_balance_nex_secondary_refire 0
 set g_balance_nex_secondary_animtime 0
-set g_balance_nex_secondary_ammo 5
+set g_balance_nex_secondary_ammo 4
 set g_balance_nex_secondary_damagefalloff_mindist 0
 set g_balance_nex_secondary_damagefalloff_maxdist 0
 set g_balance_nex_secondary_damagefalloff_halflife 0
 set g_balance_nex_secondary_damagefalloff_forcehalflife 0
 
 set g_balance_nex_charge 1
-set g_balance_nex_charge_start 0.25
-set g_balance_nex_charge_rate 0.025
+set g_balance_nex_charge_start 0.2
+set g_balance_nex_charge_rate 0.05
 set g_balance_nex_charge_limit 0.5
 set g_balance_nex_charge_shot_multiplier 0.675
-set g_balance_nex_charge_velocity_rate 0.175
+set g_balance_nex_charge_velocity_rate 0.15
 set g_balance_nex_charge_minspeed 400
 set g_balance_nex_charge_maxspeed 1000
 // }}}
index c185e15ad13a62e4fa3c3d2c220b74957bd3572c..b30b2255df9dd28f3147ac26ee870b38736253c0 100644 (file)
@@ -95,7 +95,7 @@ float w_nex(float req)
                {
                        if(cvar("g_balance_nex_secondary_charge"))
                        {
-                               if(self.ammo_cells)
+                               if(self.ammo_cells && self.nex_charge < 1)
                                {
                                        self.nex_charge = min(1, self.nex_charge + cvar("g_balance_nex_secondary_charge_rate") * frametime / W_TICSPERFRAME);
                                        self.ammo_cells = max(0, self.ammo_cells - cvar("g_balance_nex_secondary_ammo") * frametime / W_TICSPERFRAME);