From: Samual Date: Fri, 14 Oct 2011 06:42:05 +0000 (-0400) Subject: Add "headshotaddeddamage" cvars to uzi -- later needs balancing X-Git-Tag: xonotic-v0.6.0~35^2~66^2~2^2~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=219ed2f16affc9e993f2510a5c500d89f1eda66d;p=xonotic%2Fxonotic-data.pk3dir.git Add "headshotaddeddamage" cvars to uzi -- later needs balancing --- diff --git a/balance25.cfg b/balance25.cfg index 91db8f238..1a203eb89 100644 --- a/balance25.cfg +++ b/balance25.cfg @@ -306,12 +306,14 @@ set g_balance_uzi_burst_ammo 3 set g_balance_uzi_first 1 set g_balance_uzi_first_damage 30 +set g_balance_uzi_first_headshotaddeddamage 0 set g_balance_uzi_first_force 50 set g_balance_uzi_first_spread 0.015 set g_balance_uzi_first_refire 0.2 set g_balance_uzi_first_ammo 1 set g_balance_uzi_sustained_damage 15 +set g_balance_uzi_sustained_headshotaddeddamage 0 set g_balance_uzi_sustained_force 27 set g_balance_uzi_sustained_spread 0.05 set g_balance_uzi_sustained_refire 0.1 diff --git a/balanceFruit.cfg b/balanceFruit.cfg index fac3faa20..f8bdb2a3c 100644 --- a/balanceFruit.cfg +++ b/balanceFruit.cfg @@ -306,12 +306,14 @@ set g_balance_uzi_burst_ammo 3 set g_balance_uzi_first 1 set g_balance_uzi_first_damage 15 / f/ LOG: 22 -> 15 +set g_balance_uzi_first_headshotaddeddamage 0 set g_balance_uzi_first_force 50 set g_balance_uzi_first_spread 0.03 set g_balance_uzi_first_refire 0.2 set g_balance_uzi_first_ammo 2 set g_balance_uzi_sustained_damage 12 // 120 dps +set g_balance_uzi_sustained_headshotaddeddamage 0 set g_balance_uzi_sustained_force 12 set g_balance_uzi_sustained_spread 0.06 set g_balance_uzi_sustained_refire 0.1 diff --git a/balanceLeeStricklin.cfg b/balanceLeeStricklin.cfg index 57af50893..bfe7c2fb7 100644 --- a/balanceLeeStricklin.cfg +++ b/balanceLeeStricklin.cfg @@ -306,12 +306,14 @@ set g_balance_uzi_burst_ammo 3 set g_balance_uzi_first 1 set g_balance_uzi_first_damage 26 +set g_balance_uzi_first_headshotaddeddamage 0 set g_balance_uzi_first_force -30 set g_balance_uzi_first_spread 0.01 set g_balance_uzi_first_refire 0.2 set g_balance_uzi_first_ammo 1 set g_balance_uzi_sustained_damage 17 +set g_balance_uzi_sustained_headshotaddeddamage 0 set g_balance_uzi_sustained_force 27 set g_balance_uzi_sustained_spread 0.05 set g_balance_uzi_sustained_refire 0.1 diff --git a/balanceXonotic.cfg b/balanceXonotic.cfg index 86e36f827..d53aaaf47 100644 --- a/balanceXonotic.cfg +++ b/balanceXonotic.cfg @@ -306,12 +306,14 @@ set g_balance_uzi_burst_ammo 3 set g_balance_uzi_first 1 set g_balance_uzi_first_damage 14 +set g_balance_uzi_first_headshotaddeddamage 0 set g_balance_uzi_first_force 5 set g_balance_uzi_first_spread 0.03 set g_balance_uzi_first_refire 0.2 set g_balance_uzi_first_ammo 1 set g_balance_uzi_sustained_damage 10 // 100 dps +set g_balance_uzi_sustained_headshotaddeddamage 0 set g_balance_uzi_sustained_force 5 set g_balance_uzi_sustained_spread 0.03 set g_balance_uzi_sustained_refire 0.1 diff --git a/balancetZork.cfg b/balancetZork.cfg index b7fd9641d..520b96ee4 100644 --- a/balancetZork.cfg +++ b/balancetZork.cfg @@ -306,12 +306,14 @@ set g_balance_uzi_burst_ammo 3 set g_balance_uzi_first 1 set g_balance_uzi_first_damage 30 +set g_balance_uzi_first_headshotaddeddamage 0 set g_balance_uzi_first_force 50 set g_balance_uzi_first_spread 0.015 set g_balance_uzi_first_refire 0.2 set g_balance_uzi_first_ammo 1 set g_balance_uzi_sustained_damage 14 // 120 dps +set g_balance_uzi_sustained_headshotaddeddamage 0 set g_balance_uzi_sustained_force 12 set g_balance_uzi_sustained_spread 0.02 set g_balance_uzi_sustained_refire 0.1 diff --git a/qcsrc/server/autocvars.qh b/qcsrc/server/autocvars.qh index 54dec0e62..05140fd47 100644 --- a/qcsrc/server/autocvars.qh +++ b/qcsrc/server/autocvars.qh @@ -701,6 +701,7 @@ float autocvar_g_balance_uzi_burst_spread; float autocvar_g_balance_uzi_first; float autocvar_g_balance_uzi_first_ammo; float autocvar_g_balance_uzi_first_damage; +float autocvar_g_balance_uzi_first_headshotaddeddamage; float autocvar_g_balance_uzi_first_force; float autocvar_g_balance_uzi_first_refire; float autocvar_g_balance_uzi_first_spread; @@ -711,6 +712,7 @@ float autocvar_g_balance_uzi_spread_max; float autocvar_g_balance_uzi_spread_min; float autocvar_g_balance_uzi_sustained_ammo; float autocvar_g_balance_uzi_sustained_damage; +float autocvar_g_balance_uzi_sustained_headshotaddeddamage; float autocvar_g_balance_uzi_sustained_force; float autocvar_g_balance_uzi_sustained_refire; float autocvar_g_balance_uzi_sustained_spread; diff --git a/qcsrc/server/w_uzi.qc b/qcsrc/server/w_uzi.qc index f5bacd220..72178d3f5 100644 --- a/qcsrc/server/w_uzi.qc +++ b/qcsrc/server/w_uzi.qc @@ -52,9 +52,9 @@ void W_UZI_Attack (float deathtype) ATTACK_FINISHED(self) = time + autocvar_g_balance_uzi_first_refire * W_WeaponRateFactor(); if (self.misc_bulletcounter == 1) - fireBallisticBullet(w_shotorg, w_shotdir, autocvar_g_balance_uzi_first_spread, autocvar_g_balance_uzi_speed, 5, autocvar_g_balance_uzi_first_damage, 0, autocvar_g_balance_uzi_first_force, deathtype, 0, 1, autocvar_g_balance_uzi_bulletconstant); + fireBallisticBullet(w_shotorg, w_shotdir, autocvar_g_balance_uzi_first_spread, autocvar_g_balance_uzi_speed, 5, autocvar_g_balance_uzi_first_damage, autocvar_g_balance_uzi_first_headshotaddeddamage, autocvar_g_balance_uzi_first_force, deathtype, 0, 1, autocvar_g_balance_uzi_bulletconstant); else - fireBallisticBullet(w_shotorg, w_shotdir, autocvar_g_balance_uzi_sustained_spread, autocvar_g_balance_uzi_speed, 5, autocvar_g_balance_uzi_sustained_damage, 0, autocvar_g_balance_uzi_sustained_force, deathtype, 0, 1, autocvar_g_balance_uzi_bulletconstant); + fireBallisticBullet(w_shotorg, w_shotdir, autocvar_g_balance_uzi_sustained_spread, autocvar_g_balance_uzi_speed, 5, autocvar_g_balance_uzi_sustained_damage, autocvar_g_balance_uzi_sustained_headshotaddeddamage, autocvar_g_balance_uzi_sustained_force, deathtype, 0, 1, autocvar_g_balance_uzi_bulletconstant); endFireBallisticBullet(); pointparticles(particleeffectnum("uzi_muzzleflash"), w_shotorg, w_shotdir * 1000, 1); @@ -126,7 +126,7 @@ void uzi_mode1_fire_auto() } uzi_spread = bound(autocvar_g_balance_uzi_spread_min, autocvar_g_balance_uzi_spread_min + (autocvar_g_balance_uzi_spread_add * self.misc_bulletcounter), autocvar_g_balance_uzi_spread_max); - fireBallisticBullet(w_shotorg, w_shotdir, uzi_spread, autocvar_g_balance_uzi_speed, 5, autocvar_g_balance_uzi_sustained_damage, 0, autocvar_g_balance_uzi_sustained_force, WEP_UZI, 0, 1, autocvar_g_balance_uzi_bulletconstant); + fireBallisticBullet(w_shotorg, w_shotdir, uzi_spread, autocvar_g_balance_uzi_speed, 5, autocvar_g_balance_uzi_sustained_damage, autocvar_g_balance_uzi_sustained_headshotaddeddamage, autocvar_g_balance_uzi_sustained_force, WEP_UZI, 0, 1, autocvar_g_balance_uzi_bulletconstant); endFireBallisticBullet(); self.misc_bulletcounter = self.misc_bulletcounter + 1; @@ -152,7 +152,7 @@ void uzi_mode1_fire_burst() self.punchangle_y = random () - 0.5; } - fireBallisticBullet(w_shotorg, w_shotdir, autocvar_g_balance_uzi_burst_spread, autocvar_g_balance_uzi_speed, 5, autocvar_g_balance_uzi_sustained_damage, 0, autocvar_g_balance_uzi_sustained_force, WEP_UZI, 0, 1, autocvar_g_balance_uzi_bulletconstant); + fireBallisticBullet(w_shotorg, w_shotdir, autocvar_g_balance_uzi_burst_spread, autocvar_g_balance_uzi_speed, 5, autocvar_g_balance_uzi_sustained_damage, autocvar_g_balance_uzi_sustained_headshotaddeddamage, autocvar_g_balance_uzi_sustained_force, WEP_UZI, 0, 1, autocvar_g_balance_uzi_bulletconstant); endFireBallisticBullet();