From: Rudolf Polzer Date: Mon, 27 Dec 2010 22:08:35 +0000 (+0100) Subject: rename campingrifle to sniperrifle whereever possible (everywhere except model name) X-Git-Tag: xonotic-v0.5.0~330^2~14^2~8 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=84a2a5cea3cebb7dc48a80e045841ad08930933e rename campingrifle to sniperrifle whereever possible (everywhere except model name) --- diff --git a/balance25.cfg b/balance25.cfg index 3806e8b122..0a0043f597 100644 --- a/balance25.cfg +++ b/balance25.cfg @@ -13,7 +13,7 @@ set g_start_weapon_minstanex -1 "0 = never provide the weapon, 1 = always provid set g_start_weapon_porto -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hook -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hlac -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" -set g_start_weapon_campingrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" +set g_start_weapon_sniperrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_tuba -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_fireball -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_seeker -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" @@ -600,38 +600,38 @@ set g_balance_hlac_secondary_animtime 0.3 set g_balance_hlac_secondary_ammo 10 set g_balance_hlac_secondary_shots 6 // }}} -// {{{ campingrifle -set g_balance_campingrifle_magazinecapacity 8 -set g_balance_campingrifle_reloadtime 2 // matches reload anim -set g_balance_campingrifle_auto_reload_on_switch 0 -set g_balance_campingrifle_bursttime 0 -set g_balance_campingrifle_primary_tracer 0 -set g_balance_campingrifle_primary_damage 60 -set g_balance_campingrifle_primary_headshotaddeddamage 100 -set g_balance_campingrifle_primary_spread 0 -set g_balance_campingrifle_primary_force 2 -set g_balance_campingrifle_primary_speed 35000 -set g_balance_campingrifle_primary_lifetime 5 -set g_balance_campingrifle_primary_refire 0.8 -set g_balance_campingrifle_primary_animtime 0.3 -set g_balance_campingrifle_primary_ammo 10 -set g_balance_campingrifle_primary_bulletconstant 130 // 56.3qu -set g_balance_campingrifle_primary_burstcost 0 -set g_balance_campingrifle_primary_bullethail 0 // empty magazine on shot -set g_balance_campingrifle_secondary 1 -set g_balance_campingrifle_secondary_tracer 0 -set g_balance_campingrifle_secondary_damage 35 -set g_balance_campingrifle_secondary_headshotaddeddamage 15 // 50 damage only on head -set g_balance_campingrifle_secondary_spread 0.008 -set g_balance_campingrifle_secondary_force 1 -set g_balance_campingrifle_secondary_speed 20000 -set g_balance_campingrifle_secondary_lifetime 5 -set g_balance_campingrifle_secondary_refire 0.15 -set g_balance_campingrifle_secondary_animtime 0.1 -set g_balance_campingrifle_secondary_ammo 10 -set g_balance_campingrifle_secondary_bulletconstant 130 // 18.3qu -set g_balance_campingrifle_secondary_burstcost 0 -set g_balance_campingrifle_secondary_bullethail 0 // empty magazine on shot +// {{{ sniperrifle +set g_balance_sniperrifle_magazinecapacity 8 +set g_balance_sniperrifle_reloadtime 2 // matches reload anim +set g_balance_sniperrifle_auto_reload_on_switch 0 +set g_balance_sniperrifle_bursttime 0 +set g_balance_sniperrifle_primary_tracer 0 +set g_balance_sniperrifle_primary_damage 60 +set g_balance_sniperrifle_primary_headshotaddeddamage 100 +set g_balance_sniperrifle_primary_spread 0 +set g_balance_sniperrifle_primary_force 2 +set g_balance_sniperrifle_primary_speed 35000 +set g_balance_sniperrifle_primary_lifetime 5 +set g_balance_sniperrifle_primary_refire 0.8 +set g_balance_sniperrifle_primary_animtime 0.3 +set g_balance_sniperrifle_primary_ammo 10 +set g_balance_sniperrifle_primary_bulletconstant 130 // 56.3qu +set g_balance_sniperrifle_primary_burstcost 0 +set g_balance_sniperrifle_primary_bullethail 0 // empty magazine on shot +set g_balance_sniperrifle_secondary 1 +set g_balance_sniperrifle_secondary_tracer 0 +set g_balance_sniperrifle_secondary_damage 35 +set g_balance_sniperrifle_secondary_headshotaddeddamage 15 // 50 damage only on head +set g_balance_sniperrifle_secondary_spread 0.008 +set g_balance_sniperrifle_secondary_force 1 +set g_balance_sniperrifle_secondary_speed 20000 +set g_balance_sniperrifle_secondary_lifetime 5 +set g_balance_sniperrifle_secondary_refire 0.15 +set g_balance_sniperrifle_secondary_animtime 0.1 +set g_balance_sniperrifle_secondary_ammo 10 +set g_balance_sniperrifle_secondary_bulletconstant 130 // 18.3qu +set g_balance_sniperrifle_secondary_burstcost 0 +set g_balance_sniperrifle_secondary_bullethail 0 // empty magazine on shot // }}} // {{{ tuba set g_balance_tuba_refire 0.05 diff --git a/balanceLeeStricklin.cfg b/balanceLeeStricklin.cfg index 1bb993bac9..5874f7057a 100644 --- a/balanceLeeStricklin.cfg +++ b/balanceLeeStricklin.cfg @@ -13,7 +13,7 @@ set g_start_weapon_minstanex -1 "0 = never provide the weapon, 1 = always provid set g_start_weapon_porto -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hook -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hlac 0 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" -set g_start_weapon_campingrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" +set g_start_weapon_sniperrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_tuba -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_fireball 0 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_seeker -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" @@ -600,38 +600,38 @@ set g_balance_hlac_secondary_animtime 0.3 set g_balance_hlac_secondary_ammo 11 set g_balance_hlac_secondary_shots 6 // }}} -// {{{ campingrifle -set g_balance_campingrifle_magazinecapacity 8 -set g_balance_campingrifle_reloadtime 2 // matches reload anim -set g_balance_campingrifle_auto_reload_on_switch 0 -set g_balance_campingrifle_bursttime 0.85 // 0.35 - 0.1 + 0.35 - 0.1 + 0.35 = three secondaries -set g_balance_campingrifle_primary_tracer 0 -set g_balance_campingrifle_primary_damage 75 -set g_balance_campingrifle_primary_headshotaddeddamage 90 -set g_balance_campingrifle_primary_spread 0 -set g_balance_campingrifle_primary_force 2 -set g_balance_campingrifle_primary_speed 35000 -set g_balance_campingrifle_primary_lifetime 5 -set g_balance_campingrifle_primary_refire 0.7 -set g_balance_campingrifle_primary_animtime 0.3 -set g_balance_campingrifle_primary_ammo 10 -set g_balance_campingrifle_primary_bulletconstant 130 // 56.3qu -set g_balance_campingrifle_primary_burstcost 0 // require same cooldown as secondary, note it's smaller than primary refire time -set g_balance_campingrifle_primary_bullethail 0 // empty magazine on shot -set g_balance_campingrifle_secondary 1 -set g_balance_campingrifle_secondary_tracer 0 -set g_balance_campingrifle_secondary_damage 40 -set g_balance_campingrifle_secondary_headshotaddeddamage 20 -set g_balance_campingrifle_secondary_spread 0.008 -set g_balance_campingrifle_secondary_force 1 -set g_balance_campingrifle_secondary_speed 20000 -set g_balance_campingrifle_secondary_lifetime 5 -set g_balance_campingrifle_secondary_refire 0.0006 -set g_balance_campingrifle_secondary_animtime 0.1 -set g_balance_campingrifle_secondary_ammo 10 -set g_balance_campingrifle_secondary_bulletconstant 130 // 18.3qu -set g_balance_campingrifle_secondary_burstcost 0 -set g_balance_campingrifle_secondary_bullethail 0 +// {{{ sniperrifle +set g_balance_sniperrifle_magazinecapacity 8 +set g_balance_sniperrifle_reloadtime 2 // matches reload anim +set g_balance_sniperrifle_auto_reload_on_switch 0 +set g_balance_sniperrifle_bursttime 0.85 // 0.35 - 0.1 + 0.35 - 0.1 + 0.35 = three secondaries +set g_balance_sniperrifle_primary_tracer 0 +set g_balance_sniperrifle_primary_damage 75 +set g_balance_sniperrifle_primary_headshotaddeddamage 90 +set g_balance_sniperrifle_primary_spread 0 +set g_balance_sniperrifle_primary_force 2 +set g_balance_sniperrifle_primary_speed 35000 +set g_balance_sniperrifle_primary_lifetime 5 +set g_balance_sniperrifle_primary_refire 0.7 +set g_balance_sniperrifle_primary_animtime 0.3 +set g_balance_sniperrifle_primary_ammo 10 +set g_balance_sniperrifle_primary_bulletconstant 130 // 56.3qu +set g_balance_sniperrifle_primary_burstcost 0 // require same cooldown as secondary, note it's smaller than primary refire time +set g_balance_sniperrifle_primary_bullethail 0 // empty magazine on shot +set g_balance_sniperrifle_secondary 1 +set g_balance_sniperrifle_secondary_tracer 0 +set g_balance_sniperrifle_secondary_damage 40 +set g_balance_sniperrifle_secondary_headshotaddeddamage 20 +set g_balance_sniperrifle_secondary_spread 0.008 +set g_balance_sniperrifle_secondary_force 1 +set g_balance_sniperrifle_secondary_speed 20000 +set g_balance_sniperrifle_secondary_lifetime 5 +set g_balance_sniperrifle_secondary_refire 0.0006 +set g_balance_sniperrifle_secondary_animtime 0.1 +set g_balance_sniperrifle_secondary_ammo 10 +set g_balance_sniperrifle_secondary_bulletconstant 130 // 18.3qu +set g_balance_sniperrifle_secondary_burstcost 0 +set g_balance_sniperrifle_secondary_bullethail 0 // }}} // {{{ tuba set g_balance_tuba_refire 0.05 diff --git a/balanceSamual.cfg b/balanceSamual.cfg index d7e64bb4f2..eef3cf8e18 100644 --- a/balanceSamual.cfg +++ b/balanceSamual.cfg @@ -13,7 +13,7 @@ set g_start_weapon_minstanex -1 "0 = never provide the weapon, 1 = always provid set g_start_weapon_porto -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hook -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hlac -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" -set g_start_weapon_campingrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" +set g_start_weapon_sniperrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_tuba -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_fireball -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_seeker -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" @@ -600,38 +600,38 @@ set g_balance_hlac_secondary_animtime 0.3 set g_balance_hlac_secondary_ammo 10 set g_balance_hlac_secondary_shots 6 // }}} -// {{{ campingrifle -set g_balance_campingrifle_magazinecapacity 8 // make it pretty much useless in close combat -set g_balance_campingrifle_reloadtime 2 // matches reload anim -set g_balance_campingrifle_auto_reload_on_switch 0 -set g_balance_campingrifle_bursttime 0 -set g_balance_campingrifle_primary_tracer 1 -set g_balance_campingrifle_primary_damage 65 -set g_balance_campingrifle_primary_headshotaddeddamage 75 -set g_balance_campingrifle_primary_spread 0 -set g_balance_campingrifle_primary_force 2 -set g_balance_campingrifle_primary_speed 40000 -set g_balance_campingrifle_primary_lifetime 5 -set g_balance_campingrifle_primary_refire 0.75 -set g_balance_campingrifle_primary_animtime 0.3 -set g_balance_campingrifle_primary_ammo 10 -set g_balance_campingrifle_primary_bulletconstant 110 // 62.2qu -set g_balance_campingrifle_primary_burstcost 0 -set g_balance_campingrifle_primary_bullethail 0 // empty magazine on shot -set g_balance_campingrifle_secondary 1 -set g_balance_campingrifle_secondary_tracer 0 -set g_balance_campingrifle_secondary_damage 50 -set g_balance_campingrifle_secondary_headshotaddeddamage 50 // 50 damage only on head -set g_balance_campingrifle_secondary_spread 0 -set g_balance_campingrifle_secondary_force 2 -set g_balance_campingrifle_secondary_speed 20000 -set g_balance_campingrifle_secondary_lifetime 5 -set g_balance_campingrifle_secondary_refire 0.1 -set g_balance_campingrifle_secondary_animtime 0.1 -set g_balance_campingrifle_secondary_ammo 10 -set g_balance_campingrifle_secondary_bulletconstant 110 // 15.5qu -set g_balance_campingrifle_secondary_burstcost 0 -set g_balance_campingrifle_secondary_bullethail 0 // empty magazine on shot +// {{{ sniperrifle +set g_balance_sniperrifle_magazinecapacity 8 // make it pretty much useless in close combat +set g_balance_sniperrifle_reloadtime 2 // matches reload anim +set g_balance_sniperrifle_auto_reload_on_switch 0 +set g_balance_sniperrifle_bursttime 0 +set g_balance_sniperrifle_primary_tracer 1 +set g_balance_sniperrifle_primary_damage 65 +set g_balance_sniperrifle_primary_headshotaddeddamage 75 +set g_balance_sniperrifle_primary_spread 0 +set g_balance_sniperrifle_primary_force 2 +set g_balance_sniperrifle_primary_speed 40000 +set g_balance_sniperrifle_primary_lifetime 5 +set g_balance_sniperrifle_primary_refire 0.75 +set g_balance_sniperrifle_primary_animtime 0.3 +set g_balance_sniperrifle_primary_ammo 10 +set g_balance_sniperrifle_primary_bulletconstant 110 // 62.2qu +set g_balance_sniperrifle_primary_burstcost 0 +set g_balance_sniperrifle_primary_bullethail 0 // empty magazine on shot +set g_balance_sniperrifle_secondary 1 +set g_balance_sniperrifle_secondary_tracer 0 +set g_balance_sniperrifle_secondary_damage 50 +set g_balance_sniperrifle_secondary_headshotaddeddamage 50 // 50 damage only on head +set g_balance_sniperrifle_secondary_spread 0 +set g_balance_sniperrifle_secondary_force 2 +set g_balance_sniperrifle_secondary_speed 20000 +set g_balance_sniperrifle_secondary_lifetime 5 +set g_balance_sniperrifle_secondary_refire 0.1 +set g_balance_sniperrifle_secondary_animtime 0.1 +set g_balance_sniperrifle_secondary_ammo 10 +set g_balance_sniperrifle_secondary_bulletconstant 110 // 15.5qu +set g_balance_sniperrifle_secondary_burstcost 0 +set g_balance_sniperrifle_secondary_bullethail 0 // empty magazine on shot // }}} // {{{ tuba set g_balance_tuba_refire 0.05 diff --git a/balanceXonotic.cfg b/balanceXonotic.cfg index a7967d31ef..0d5f1500b3 100644 --- a/balanceXonotic.cfg +++ b/balanceXonotic.cfg @@ -13,7 +13,7 @@ set g_start_weapon_minstanex -1 "0 = never provide the weapon, 1 = always provid set g_start_weapon_porto -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hook -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hlac -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" -set g_start_weapon_campingrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" +set g_start_weapon_sniperrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_tuba -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_fireball -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_seeker -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" @@ -604,38 +604,38 @@ set g_balance_hlac_secondary_animtime 0.6 set g_balance_hlac_secondary_ammo 4 set g_balance_hlac_secondary_shots 6 // }}} -// {{{ campingrifle -set g_balance_campingrifle_magazinecapacity 8 // make it pretty much useless in close combat -set g_balance_campingrifle_reloadtime 2 // matches reload anim -set g_balance_campingrifle_auto_reload_on_switch 0 -set g_balance_campingrifle_bursttime 0 -set g_balance_campingrifle_primary_tracer 1 -set g_balance_campingrifle_primary_damage 60 -set g_balance_campingrifle_primary_headshotaddeddamage 100 -set g_balance_campingrifle_primary_spread 0 -set g_balance_campingrifle_primary_force 2 -set g_balance_campingrifle_primary_speed 40000 -set g_balance_campingrifle_primary_lifetime 5 -set g_balance_campingrifle_primary_refire 1.5 -set g_balance_campingrifle_primary_animtime 1.4 -set g_balance_campingrifle_primary_ammo 10 -set g_balance_campingrifle_primary_bulletconstant 110 // 62.2qu -set g_balance_campingrifle_primary_burstcost 0 -set g_balance_campingrifle_primary_bullethail 0 // empty magazine on shot -set g_balance_campingrifle_secondary 1 -set g_balance_campingrifle_secondary_tracer 0 -set g_balance_campingrifle_secondary_damage 42 -set g_balance_campingrifle_secondary_headshotaddeddamage 70 -set g_balance_campingrifle_secondary_spread 0 -set g_balance_campingrifle_secondary_force 2 -set g_balance_campingrifle_secondary_speed 20000 -set g_balance_campingrifle_secondary_lifetime 5 -set g_balance_campingrifle_secondary_refire 1.5 -set g_balance_campingrifle_secondary_animtime 1.4 -set g_balance_campingrifle_secondary_ammo 10 -set g_balance_campingrifle_secondary_bulletconstant 110 // 15.5qu -set g_balance_campingrifle_secondary_burstcost 0 -set g_balance_campingrifle_secondary_bullethail 0 // empty magazine on shot +// {{{ sniperrifle +set g_balance_sniperrifle_magazinecapacity 8 // make it pretty much useless in close combat +set g_balance_sniperrifle_reloadtime 2 // matches reload anim +set g_balance_sniperrifle_auto_reload_on_switch 0 +set g_balance_sniperrifle_bursttime 0 +set g_balance_sniperrifle_primary_tracer 1 +set g_balance_sniperrifle_primary_damage 60 +set g_balance_sniperrifle_primary_headshotaddeddamage 100 +set g_balance_sniperrifle_primary_spread 0 +set g_balance_sniperrifle_primary_force 2 +set g_balance_sniperrifle_primary_speed 40000 +set g_balance_sniperrifle_primary_lifetime 5 +set g_balance_sniperrifle_primary_refire 1.5 +set g_balance_sniperrifle_primary_animtime 1.4 +set g_balance_sniperrifle_primary_ammo 10 +set g_balance_sniperrifle_primary_bulletconstant 110 // 62.2qu +set g_balance_sniperrifle_primary_burstcost 0 +set g_balance_sniperrifle_primary_bullethail 0 // empty magazine on shot +set g_balance_sniperrifle_secondary 1 +set g_balance_sniperrifle_secondary_tracer 0 +set g_balance_sniperrifle_secondary_damage 42 +set g_balance_sniperrifle_secondary_headshotaddeddamage 70 +set g_balance_sniperrifle_secondary_spread 0 +set g_balance_sniperrifle_secondary_force 2 +set g_balance_sniperrifle_secondary_speed 20000 +set g_balance_sniperrifle_secondary_lifetime 5 +set g_balance_sniperrifle_secondary_refire 1.5 +set g_balance_sniperrifle_secondary_animtime 1.4 +set g_balance_sniperrifle_secondary_ammo 10 +set g_balance_sniperrifle_secondary_bulletconstant 110 // 15.5qu +set g_balance_sniperrifle_secondary_burstcost 0 +set g_balance_sniperrifle_secondary_bullethail 0 // empty magazine on shot // }}} // {{{ tuba set g_balance_tuba_refire 0.05 diff --git a/balancetZork.cfg b/balancetZork.cfg index bff56f2338..52dc2bf4f5 100644 --- a/balancetZork.cfg +++ b/balancetZork.cfg @@ -13,7 +13,7 @@ set g_start_weapon_minstanex -1 "0 = never provide the weapon, 1 = always provid set g_start_weapon_porto -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hook -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_hlac -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" -set g_start_weapon_campingrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" +set g_start_weapon_sniperrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_tuba -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_fireball -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" set g_start_weapon_seeker -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms" @@ -620,38 +620,38 @@ set g_balance_hlac_secondary_animtime 0.7 set g_balance_hlac_secondary_ammo 10 set g_balance_hlac_secondary_shots 6 // }}} -// {{{ campingrifle -set g_balance_campingrifle_magazinecapacity 8 // make it pretty much useless in close combat -set g_balance_campingrifle_reloadtime 2 // matches reload anim -set g_balance_campingrifle_auto_reload_on_switch 0 -set g_balance_campingrifle_bursttime 0 -set g_balance_campingrifle_primary_tracer 1 -set g_balance_campingrifle_primary_damage 40 -set g_balance_campingrifle_primary_headshotaddeddamage 100 -set g_balance_campingrifle_primary_spread 0 -set g_balance_campingrifle_primary_force 2 -set g_balance_campingrifle_primary_speed 40000 -set g_balance_campingrifle_primary_lifetime 5 -set g_balance_campingrifle_primary_refire 0.65 -set g_balance_campingrifle_primary_animtime 0.6 -set g_balance_campingrifle_primary_ammo 10 -set g_balance_campingrifle_primary_bulletconstant 110 // 62.2qu -set g_balance_campingrifle_primary_burstcost 0 -set g_balance_campingrifle_primary_bullethail 0 // empty magazine on shot -set g_balance_campingrifle_secondary 1 -set g_balance_campingrifle_secondary_tracer 0 -set g_balance_campingrifle_secondary_damage 50 -set g_balance_campingrifle_secondary_headshotaddeddamage 50 // 50 damage only on head -set g_balance_campingrifle_secondary_spread 0 -set g_balance_campingrifle_secondary_force 2 -set g_balance_campingrifle_secondary_speed 20000 -set g_balance_campingrifle_secondary_lifetime 5 -set g_balance_campingrifle_secondary_refire 1.5 -set g_balance_campingrifle_secondary_animtime 0.6 -set g_balance_campingrifle_secondary_ammo 10 -set g_balance_campingrifle_secondary_bulletconstant 110 // 15.5qu -set g_balance_campingrifle_secondary_burstcost 0 -set g_balance_campingrifle_secondary_bullethail 0 // empty magazine on shot +// {{{ sniperrifle +set g_balance_sniperrifle_magazinecapacity 8 // make it pretty much useless in close combat +set g_balance_sniperrifle_reloadtime 2 // matches reload anim +set g_balance_sniperrifle_auto_reload_on_switch 0 +set g_balance_sniperrifle_bursttime 0 +set g_balance_sniperrifle_primary_tracer 1 +set g_balance_sniperrifle_primary_damage 40 +set g_balance_sniperrifle_primary_headshotaddeddamage 100 +set g_balance_sniperrifle_primary_spread 0 +set g_balance_sniperrifle_primary_force 2 +set g_balance_sniperrifle_primary_speed 40000 +set g_balance_sniperrifle_primary_lifetime 5 +set g_balance_sniperrifle_primary_refire 0.65 +set g_balance_sniperrifle_primary_animtime 0.6 +set g_balance_sniperrifle_primary_ammo 10 +set g_balance_sniperrifle_primary_bulletconstant 110 // 62.2qu +set g_balance_sniperrifle_primary_burstcost 0 +set g_balance_sniperrifle_primary_bullethail 0 // empty magazine on shot +set g_balance_sniperrifle_secondary 1 +set g_balance_sniperrifle_secondary_tracer 0 +set g_balance_sniperrifle_secondary_damage 50 +set g_balance_sniperrifle_secondary_headshotaddeddamage 50 // 50 damage only on head +set g_balance_sniperrifle_secondary_spread 0 +set g_balance_sniperrifle_secondary_force 2 +set g_balance_sniperrifle_secondary_speed 20000 +set g_balance_sniperrifle_secondary_lifetime 5 +set g_balance_sniperrifle_secondary_refire 1.5 +set g_balance_sniperrifle_secondary_animtime 0.6 +set g_balance_sniperrifle_secondary_ammo 10 +set g_balance_sniperrifle_secondary_bulletconstant 110 // 15.5qu +set g_balance_sniperrifle_secondary_burstcost 0 +set g_balance_sniperrifle_secondary_bullethail 0 // empty magazine on shot // }}} // {{{ tuba set g_balance_tuba_refire 0.05 diff --git a/defaultSamual.cfg b/defaultSamual.cfg index c0dce41e13..4aacf09f1c 100644 --- a/defaultSamual.cfg +++ b/defaultSamual.cfg @@ -15,7 +15,7 @@ set g_weaponreplace_porto "" set g_weaponreplace_minstanex "" set g_weaponreplace_hook "" set g_weaponreplace_hlac 0 // Maybe will be enabled later after I figure out what I want to do with it -set g_weaponreplace_campingrifle "" +set g_weaponreplace_sniperrifle "" set g_weaponreplace_tuba "" set g_weaponreplace_fireball 0 // Same with this set g_weaponreplace_seeker 0 // Same with this diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index 8359b2416a..686d898ec9 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -169,10 +169,10 @@ seta crosshair_seeker "" "crosshair to display when wielding the TAG Seeker" seta crosshair_seeker_color "1 0.35 0.35" "crosshair color to display when wielding the TAG seeker" seta crosshair_seeker_alpha 0.9 "crosshair alpha value to display when wielding the TAG seeker" seta crosshair_seeker_size 0.8 "crosshair size when wielding the TAG seeker" -seta crosshair_campingrifle "" "crosshair to display when wielding the campingrifle" -seta crosshair_campingrifle_color "0.85 0.5 0.25" "crosshair color to display when wielding the campingrifle" -seta crosshair_campingrifle_alpha 1 "crosshair alpha value to display when wielding the campingrifle" -seta crosshair_campingrifle_size 0.65 "crosshair size when wielding the campingrifle" +seta crosshair_sniperrifle "" "crosshair to display when wielding the sniperrifle" +seta crosshair_sniperrifle_color "0.85 0.5 0.25" "crosshair color to display when wielding the sniperrifle" +seta crosshair_sniperrifle_alpha 1 "crosshair alpha value to display when wielding the sniperrifle" +seta crosshair_sniperrifle_size 0.65 "crosshair size when wielding the sniperrifle" seta crosshair_tuba "" "crosshair to display when wielding the tuba" seta crosshair_tuba_color "0.85 0.5 0.25" "crosshair color to display when wielding the tuba" seta crosshair_tuba_alpha 1 "crosshair alpha value to display when wielding the tuba" @@ -186,7 +186,7 @@ seta crosshair_fireball_size 1 "crosshair size when wielding the fireball" seta crosshair_ring_size 2 "bullet counter ring size for Rifle, velocity ring for Nex" seta crosshair_ring_alpha 0.2 "ring alpha" -seta crosshair_ring_campingrifle_alpha 0.15 +seta crosshair_ring_sniperrifle_alpha 0.15 seta crosshair_ring_nex_outer_alpha 0.15 seta crosshair_ring_nex_inner_alpha 0.15 @@ -419,9 +419,9 @@ set bot_ai_keyboard_treshold 0.57 set bot_ai_aimskill_offset 0.3 "Amount of error induced to the bots aim" set bot_ai_aimskill_think 1 "Aiming velocity. Use values below 1 for slower aiming" set bot_ai_custom_weapon_priority_distances "300 850" "Define close and far distances in any order. Based on the distance to the enemy bots will choose different weapons" -set bot_ai_custom_weapon_priority_far "minstanex nex campingrifle electro rocketlauncher grenadelauncher hagar hlac crylink laser uzi fireball seeker shotgun tuba minelayer" "Desired weapons for far distances ordered by priority" -set bot_ai_custom_weapon_priority_mid "minstanex rocketlauncher nex fireball seeker grenadelauncher electro uzi campingrifle crylink hlac hagar shotgun laser tuba minelayer" "Desired weapons for middle distances ordered by priority" -set bot_ai_custom_weapon_priority_close "minstanex shotgun nex uzi hlac tuba seeker hagar crylink grenadelauncher electro campingrifle rocketlauncher laser fireball minelayer" "Desired weapons for close distances ordered by priority" +set bot_ai_custom_weapon_priority_far "minstanex nex sniperrifle electro rocketlauncher grenadelauncher hagar hlac crylink laser uzi fireball seeker shotgun tuba minelayer" "Desired weapons for far distances ordered by priority" +set bot_ai_custom_weapon_priority_mid "minstanex rocketlauncher nex fireball seeker grenadelauncher electro uzi sniperrifle crylink hlac hagar shotgun laser tuba minelayer" "Desired weapons for middle distances ordered by priority" +set bot_ai_custom_weapon_priority_close "minstanex shotgun nex uzi hlac tuba seeker hagar crylink grenadelauncher electro sniperrifle rocketlauncher laser fireball minelayer" "Desired weapons for close distances ordered by priority" set bot_ai_weapon_combo 1 "Enable bots to do weapon combos" set bot_ai_weapon_combo_threshold 0.3 "Try to make a combo N seconds after the last attack" set bot_ai_friends_aware_pickup_radius "500" "Bots will not pickup items if a team mate is this distance near the item" @@ -1605,12 +1605,12 @@ set g_jump_grunt 0 "Do you make a grunting noise every time you jump? Is it the alias allready "sv_cmd allready" -seta cl_weaponpriority "minstanex rocketlauncher nex minelayer grenadelauncher fireball hlac hagar seeker crylink campingrifle uzi electro tuba shotgun laser hook porto" "weapon priority list" +seta cl_weaponpriority "minstanex rocketlauncher nex minelayer grenadelauncher fireball hlac hagar seeker crylink sniperrifle uzi electro tuba shotgun laser hook porto" "weapon priority list" seta cl_weaponpriority_useforcycling 0 "when set, weapon cycling by the mouse wheel makes use of the weapon priority list (the special value 2 uses the weapon ID list for cycling)" seta cl_weaponpriority0 "rocketlauncher grenadelauncher hagar seeker fireball" "use impulse 200 for prev gun from this list, 210 for best gun, 220 for next gun. Default value: explosives" seta cl_weaponpriority1 "minstanex nex crylink hlac electro laser" "use impulse 201 for prev gun from this list, 211 for best gun, 221 for next gun. Default value: energy" -seta cl_weaponpriority2 "minstanex nex campingrifle" "use impulse 202 for prev gun from this list, 212 for best gun, 222 for next gun. Default value: hitscan exact" -seta cl_weaponpriority3 "minstanex nex campingrifle uzi shotgun" "use impulse 203 for prev gun from this list, 213 for best gun, 223 for next gun. Default value: hitscan all" +seta cl_weaponpriority2 "minstanex nex sniperrifle" "use impulse 202 for prev gun from this list, 212 for best gun, 222 for next gun. Default value: hitscan exact" +seta cl_weaponpriority3 "minstanex nex sniperrifle uzi shotgun" "use impulse 203 for prev gun from this list, 213 for best gun, 223 for next gun. Default value: hitscan all" seta cl_weaponpriority4 "minelayer grenadelauncher hlac hagar crylink seeker shotgun" "use impulse 204 for prev gun from this list, 214 for best gun, 224 for next gun. Default value: spam weapons" seta cl_weaponpriority5 "laser hook porto" "use impulse 205 for prev gun from this list, 215 for best gun, 225 for next gun. Default value: weapons for moving" seta cl_weaponpriority6 "" "use impulse 206 for prev gun from this list, 216 for best gun, 226 for next gun" @@ -1960,7 +1960,7 @@ set g_weaponreplace_porto "" set g_weaponreplace_minstanex "" set g_weaponreplace_hook "" set g_weaponreplace_hlac "" -set g_weaponreplace_campingrifle "" +set g_weaponreplace_sniperrifle "" set g_weaponreplace_tuba "" set g_weaponreplace_fireball "" set g_weaponreplace_seeker "" diff --git a/hook-firing_swap.cfg b/hook-firing_swap.cfg index e556db70e9..42d8379c55 100644 --- a/hook-firing_swap.cfg +++ b/hook-firing_swap.cfg @@ -13,7 +13,7 @@ seta cl_swapattacks_tuba 0 seta cl_swapattacks_laser 0 seta cl_swapattacks_shotgun 0 seta cl_swapattacks_uzi 0 -seta cl_swapattacks_campingrifle 0 +seta cl_swapattacks_sniperrifle 0 seta cl_swapattacks_grenadelauncher 0 seta cl_swapattacks_electro 0 seta cl_swapattacks_hlac 0 diff --git a/qcsrc/client/Defs.qc b/qcsrc/client/Defs.qc index 88f0a51b06..3d15295942 100644 --- a/qcsrc/client/Defs.qc +++ b/qcsrc/client/Defs.qc @@ -258,7 +258,7 @@ float w_deathtype, w_issilent, w_random; string w_deathtypestring; vector w_org, w_backoff; -float campingrifle_scope; +float sniperrifle_scope; float nex_scope; float cr_maxbullets; diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 03b96c7aa7..048773a01f 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -1093,7 +1093,7 @@ void Ent_Init() g_balance_electro_secondary_bouncestop = ReadCoord(); nex_scope = !ReadByte(); - campingrifle_scope = !ReadByte(); + sniperrifle_scope = !ReadByte(); serverflags = ReadByte(); diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 121488d57d..160ad063f1 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -137,7 +137,7 @@ vector GetCurrentFov(float fov) zoomspeed = 3.5; zoomdir = button_zoom; - if((getstati(STAT_ACTIVEWEAPON) == WEP_NEX && nex_scope) || (getstati(STAT_ACTIVEWEAPON) == WEP_CAMPINGRIFLE && campingrifle_scope)) // do NOT use switchweapon here + if((getstati(STAT_ACTIVEWEAPON) == WEP_NEX && nex_scope) || (getstati(STAT_ACTIVEWEAPON) == WEP_SNIPERRIFLE && sniperrifle_scope)) // do NOT use switchweapon here zoomdir += button_attack2; if(spectatee_status > 0 || isdemo()) { @@ -274,7 +274,7 @@ float TrueAimCheck() case WEP_MINSTANEX: mv = MOVE_NORMAL; break; - case WEP_CAMPINGRIFLE: + case WEP_SNIPERRIFLE: ta = trueaim_rifle; mv = MOVE_NORMAL; if(zoomscript_caught) @@ -628,11 +628,11 @@ void CSQC_UpdateView(float w, float h) // the view to go back to normal, so reticle_type would become 0 as we fade out) if(spectatee_status || getstati(STAT_HEALTH) <= 0) reticle_type = 0; // prevent reticle from showing during the respawn zoom effect or for spectators - else if(activeweapon == WEP_NEX && (button_zoom || zoomscript_caught) || activeweapon == WEP_CAMPINGRIFLE && (button_zoom || zoomscript_caught) || activeweapon == WEP_MINSTANEX && (button_zoom || zoomscript_caught)) + else if(activeweapon == WEP_NEX && (button_zoom || zoomscript_caught) || activeweapon == WEP_SNIPERRIFLE && (button_zoom || zoomscript_caught) || activeweapon == WEP_MINSTANEX && (button_zoom || zoomscript_caught)) reticle_type = 2; // nex zoom else if(button_zoom || zoomscript_caught) reticle_type = 1; // normal zoom - else if(activeweapon == WEP_NEX && button_attack2 || activeweapon == WEP_CAMPINGRIFLE && button_attack2) + else if(activeweapon == WEP_NEX && button_attack2 || activeweapon == WEP_SNIPERRIFLE && button_attack2) reticle_type = 2; // nex zoom if(autocvar_cl_reticle_stretch) @@ -941,12 +941,12 @@ void CSQC_UpdateView(float w, float h) nex_charge_movingavg = nex_charge; // ring around crosshair representing bullets left in camping rifle clip - if (activeweapon == WEP_CAMPINGRIFLE && cr_maxbullets) + if (activeweapon == WEP_SNIPERRIFLE && cr_maxbullets) { bullets = getstati(STAT_BULLETS_LOADED); f = bound(0, bullets / cr_maxbullets, 1); - a = autocvar_crosshair_ring_campingrifle_alpha; + a = autocvar_crosshair_ring_sniperrifle_alpha; DrawCircleClippedPic(wcross_origin, wcross_size_x * ring_scale, "gfx/crosshair_ring.tga", f, wcross_color, wcross_alpha * a, DRAWFLAG_ADDITIVE); } else if (activeweapon == WEP_NEX && nex_charge) // ring around crosshair representing velocity-dependent damage for the nex diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index f3d18aa9ff..08ad7b9022 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -105,7 +105,7 @@ float autocvar_crosshair_hittest_showimpact; float autocvar_crosshair_per_weapon; float autocvar_crosshair_pickup; float autocvar_crosshair_pickup_speed; -float autocvar_crosshair_ring_campingrifle_alpha; +float autocvar_crosshair_ring_sniperrifle_alpha; float autocvar_crosshair_ring_nex_currentcharge_movingavg_rate; float autocvar_crosshair_ring_nex_currentcharge_scale; float autocvar_crosshair_ring_nex_inner_alpha; diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 2b3db644eb..9592fe4b67 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1506,7 +1506,7 @@ float GetAmmoTypeForWep(float i) case WEP_HLAC: return 3; case WEP_MINSTANEX: return 3; case WEP_NEX: return 3; - case WEP_CAMPINGRIFLE: return 1; + case WEP_SNIPERRIFLE: return 1; case WEP_HAGAR: return 2; case WEP_ROCKET_LAUNCHER: return 2; case WEP_SEEKER: return 2; @@ -2718,7 +2718,7 @@ void HUD_KillNotify(string s1, string s2, string s3, float type, float msg) // s } else if(msg == MSG_KILL) { w = DEATH_WEAPONOF(type); if(WEP_VALID(w)) { - if((w == WEP_CAMPINGRIFLE || w == WEP_MINSTANEX) && type & HITTYPE_HEADSHOT) // all headshot weapons go here + if((w == WEP_SNIPERRIFLE || w == WEP_MINSTANEX) && type & HITTYPE_HEADSHOT) // all headshot weapons go here HUD_KillNotify_Push(s1, s2, 1, DEATH_HEADSHOT); else HUD_KillNotify_Push(s1, s2, 1, type); diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 50abe9875e..90376b5b96 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -61,7 +61,6 @@ const float TE_CSQC_ANNOUNCE = 110; const float TE_CSQC_TARGET_MUSIC = 111; const float TE_CSQC_NOTIFY = 112; const float TE_CSQC_WEAPONCOMPLAIN = 113; -const float TE_CSQC_CAMPINGRIFLE_SCOPE = 115; const float TE_CSQC_NEX_SCOPE = 116; const float TE_CSQC_CR_MAXBULLETS = 117; diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c index 984ae9b265..4390fb910e 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c @@ -263,7 +263,7 @@ void XonoticMutatorsDialog_fill(entity me) me.TDempty(me, 0.2); me.TD(me, 1, 2, e = makeXonoticRadioButton(1, "g_start_weapon_laser", "0", "No start weapons")); e.cvarOffValue = "-1"; - makeMulti(e, "g_start_weapon_shotgun g_start_weapon_uzi g_start_weapon_grenadelauncher g_start_weapon_minelayer g_start_weapon_electro g_start_weapon_crylink g_start_weapon_nex g_start_weapon_hagar g_start_weapon_rocketlauncher g_start_weapon_campingrifle g_start_weapon_hlac g_start_weapon_seeker g_start_weapon_minstanex g_start_weapon_hook g_start_weapon_porto g_start_weapon_tuba"); + makeMulti(e, "g_start_weapon_shotgun g_start_weapon_uzi g_start_weapon_grenadelauncher g_start_weapon_minelayer g_start_weapon_electro g_start_weapon_crylink g_start_weapon_nex g_start_weapon_hagar g_start_weapon_rocketlauncher g_start_weapon_sniperrifle g_start_weapon_hlac g_start_weapon_seeker g_start_weapon_minstanex g_start_weapon_hook g_start_weapon_porto g_start_weapon_tuba g_start_weapon_minelayer"); me.gotoRC(me, me.rows - 1, 0); me.TD(me, 1, me.columns, e = makeXonoticButton("OK", '0 0 0')); diff --git a/qcsrc/server/autocvars.qh b/qcsrc/server/autocvars.qh index 174265e9d3..fb1b6ee8ab 100644 --- a/qcsrc/server/autocvars.qh +++ b/qcsrc/server/autocvars.qh @@ -82,37 +82,37 @@ float autocvar_g_balance_armor_rot; float autocvar_g_balance_armor_rotlinear; float autocvar_g_balance_armor_rotstable; float autocvar_g_balance_armor_start; -float autocvar_g_balance_campingrifle_auto_reload_on_switch; -float autocvar_g_balance_campingrifle_bursttime; -float autocvar_g_balance_campingrifle_magazinecapacity; -float autocvar_g_balance_campingrifle_primary_ammo; -float autocvar_g_balance_campingrifle_primary_animtime; -float autocvar_g_balance_campingrifle_primary_bulletconstant; -float autocvar_g_balance_campingrifle_primary_bullethail; -float autocvar_g_balance_campingrifle_primary_burstcost; -float autocvar_g_balance_campingrifle_primary_damage; -float autocvar_g_balance_campingrifle_primary_force; -float autocvar_g_balance_campingrifle_primary_headshotaddeddamage; -float autocvar_g_balance_campingrifle_primary_lifetime; -float autocvar_g_balance_campingrifle_primary_refire; -float autocvar_g_balance_campingrifle_primary_speed; -float autocvar_g_balance_campingrifle_primary_spread; -float autocvar_g_balance_campingrifle_primary_tracer; -float autocvar_g_balance_campingrifle_reloadtime; -float autocvar_g_balance_campingrifle_secondary; -float autocvar_g_balance_campingrifle_secondary_ammo; -float autocvar_g_balance_campingrifle_secondary_animtime; -float autocvar_g_balance_campingrifle_secondary_bulletconstant; -float autocvar_g_balance_campingrifle_secondary_bullethail; -float autocvar_g_balance_campingrifle_secondary_burstcost; -float autocvar_g_balance_campingrifle_secondary_damage; -float autocvar_g_balance_campingrifle_secondary_force; -float autocvar_g_balance_campingrifle_secondary_headshotaddeddamage; -float autocvar_g_balance_campingrifle_secondary_lifetime; -float autocvar_g_balance_campingrifle_secondary_refire; -float autocvar_g_balance_campingrifle_secondary_speed; -float autocvar_g_balance_campingrifle_secondary_spread; -float autocvar_g_balance_campingrifle_secondary_tracer; +float autocvar_g_balance_sniperrifle_auto_reload_on_switch; +float autocvar_g_balance_sniperrifle_bursttime; +float autocvar_g_balance_sniperrifle_magazinecapacity; +float autocvar_g_balance_sniperrifle_primary_ammo; +float autocvar_g_balance_sniperrifle_primary_animtime; +float autocvar_g_balance_sniperrifle_primary_bulletconstant; +float autocvar_g_balance_sniperrifle_primary_bullethail; +float autocvar_g_balance_sniperrifle_primary_burstcost; +float autocvar_g_balance_sniperrifle_primary_damage; +float autocvar_g_balance_sniperrifle_primary_force; +float autocvar_g_balance_sniperrifle_primary_headshotaddeddamage; +float autocvar_g_balance_sniperrifle_primary_lifetime; +float autocvar_g_balance_sniperrifle_primary_refire; +float autocvar_g_balance_sniperrifle_primary_speed; +float autocvar_g_balance_sniperrifle_primary_spread; +float autocvar_g_balance_sniperrifle_primary_tracer; +float autocvar_g_balance_sniperrifle_reloadtime; +float autocvar_g_balance_sniperrifle_secondary; +float autocvar_g_balance_sniperrifle_secondary_ammo; +float autocvar_g_balance_sniperrifle_secondary_animtime; +float autocvar_g_balance_sniperrifle_secondary_bulletconstant; +float autocvar_g_balance_sniperrifle_secondary_bullethail; +float autocvar_g_balance_sniperrifle_secondary_burstcost; +float autocvar_g_balance_sniperrifle_secondary_damage; +float autocvar_g_balance_sniperrifle_secondary_force; +float autocvar_g_balance_sniperrifle_secondary_headshotaddeddamage; +float autocvar_g_balance_sniperrifle_secondary_lifetime; +float autocvar_g_balance_sniperrifle_secondary_refire; +float autocvar_g_balance_sniperrifle_secondary_speed; +float autocvar_g_balance_sniperrifle_secondary_spread; +float autocvar_g_balance_sniperrifle_secondary_tracer; float autocvar_g_balance_cloaked_alpha; float autocvar_g_balance_crylink_primary_ammo; float autocvar_g_balance_crylink_primary_animtime; diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index d8287df169..c685735ac8 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -233,7 +233,7 @@ void havocbot_bunnyhop(vector dir) // Don't jump when using some weapons if(self.aistatus & AI_STATUS_ATTACKING) - if(self.weapon & WEP_CAMPINGRIFLE) + if(self.weapon == WEP_SNIPERRIFLE) return; if(self.goalcurrent.classname == "player") @@ -890,7 +890,7 @@ void havocbot_chooseenemy() // I want to do a second scan if no enemy was found or I don't have weapons // TODO: Perform the scan when using the rifle (requires changes on the rifle code) - if(best || self.weapons) // || self.weapon == WEP_CAMPINGRIFLE + if(best || self.weapons) // || self.weapon == WEP_SNIPERRIFLE break; if(i) break; @@ -944,28 +944,12 @@ void havocbot_chooseweapon() return; // Workaround for rifle reloading (..) - if(self.weapon == WEP_CAMPINGRIFLE) - if(i < autocvar_g_balance_campingrifle_reloadtime + 1) + if(self.weapon == WEP_SNIPERRIFLE) + if(i < autocvar_g_balance_sniperrifle_reloadtime + 1) return; local float w; - local float rocket ; rocket =-1000; - local float nex ; nex =-1000; - local float hagar ; hagar =-1000; - local float grenade ; grenade =-1000; - local float mine ; mine =-1000; - local float electro ; electro =-1000; - local float crylink ; crylink =-1000; - local float uzi ; uzi =-1000; - local float shotgun ; shotgun =-1000; - local float campingrifle ; campingrifle =-1000; - local float laser ; laser =-1000; - local float minstanex ; minstanex =-1000; - local float bestscore; bestscore = 0; - local float bestweapon; bestweapon=self.switchweapon; local float distance; distance=bound(10,vlen(self.origin-self.enemy.origin)-200,10000); - local float maxdelaytime=0.5; - local float spreadpenalty=10; // Should it do a weapon combo? local float af, ct, combo_time, combo; diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 15fd10b8ff..cb2d2ed3de 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1105,9 +1105,9 @@ float ClientInit_SendEntity(entity to, float sf) WriteCoord(MSG_ENTITY, self.ebouncefactor); // g_balance_grenadelauncher_bouncefactor WriteCoord(MSG_ENTITY, self.ebouncestop); // g_balance_grenadelauncher_bouncestop WriteByte(MSG_ENTITY, autocvar_g_balance_nex_secondary); // client has to know if it should zoom or not - WriteByte(MSG_ENTITY, autocvar_g_balance_campingrifle_secondary); // client has to know if it should zoom or not + WriteByte(MSG_ENTITY, autocvar_g_balance_sniperrifle_secondary); // client has to know if it should zoom or not WriteByte(MSG_ENTITY, serverflags); // client has to know if it should zoom or not - WriteByte(MSG_ENTITY, autocvar_g_balance_campingrifle_magazinecapacity); // rifle max bullets + WriteByte(MSG_ENTITY, autocvar_g_balance_sniperrifle_magazinecapacity); // rifle max bullets return TRUE; } @@ -2893,7 +2893,7 @@ void PlayerPreThink (void) } if(!zoomstate_set) - SetZoomState(self.BUTTON_ZOOM || (self.BUTTON_ATCK2 && self.weapon == WEP_NEX) || (self.BUTTON_ATCK2 && self.weapon == WEP_CAMPINGRIFLE && autocvar_g_balance_campingrifle_secondary == 0)); + SetZoomState(self.BUTTON_ZOOM || (self.BUTTON_ATCK2 && self.weapon == WEP_NEX) || (self.BUTTON_ATCK2 && self.weapon == WEP_SNIPERRIFLE && autocvar_g_balance_sniperrifle_secondary == 0)); float oldspectatee_status; oldspectatee_status = self.spectatee_status; diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index 4f5e760444..a1d6fed14c 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -138,7 +138,7 @@ void W_SetupShot_Dir_ProjectileSize_Range(entity ent, vector s_forward, vector m local float oldsolid; vector vecs, dv; oldsolid = ent.dphitcontentsmask; - if(ent.weapon == WEP_CAMPINGRIFLE) + if(ent.weapon == WEP_SNIPERRIFLE) ent.dphitcontentsmask = DPCONTENTS_BODY | DPCONTENTS_CORPSE; else ent.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE; diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 86a57d460b..96bc87cd3a 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -612,7 +612,7 @@ float client_cefc_accumulator; float client_cefc_accumulatortime; #endif -.float campingrifle_bulletcounter; +.float sniperrifle_bulletcounter; #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_CORPSE; (e).dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE // when doing this, hagar can go through clones diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 5ac006ef51..496a84bac2 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -816,7 +816,7 @@ void spawnfunc_worldspawn (void) addstat(STAT_FUEL, AS_INT, ammo_fuel); addstat(STAT_SHOTORG, AS_INT, stat_shotorg); addstat(STAT_LEADLIMIT, AS_FLOAT, stat_leadlimit); - addstat(STAT_BULLETS_LOADED, AS_INT, campingrifle_bulletcounter); + addstat(STAT_BULLETS_LOADED, AS_INT, sniperrifle_bulletcounter); addstat(STAT_LAST_PICKUP, AS_FLOAT, last_pickup); addstat(STAT_NEX_CHARGE, AS_FLOAT, nex_charge); diff --git a/qcsrc/server/t_quake3.qc b/qcsrc/server/t_quake3.qc index 44036ade49..11bf880e60 100644 --- a/qcsrc/server/t_quake3.qc +++ b/qcsrc/server/t_quake3.qc @@ -23,7 +23,7 @@ void spawnfunc_weapon_plasmagun() { spawnfunc_weapon_hagar(); } void spawnfunc_ammo_cells() { spawnfunc_item_rockets(); } // Rail -> Rifle -void spawnfunc_weapon_railgun() { spawnfunc_weapon_campingrifle(); } +void spawnfunc_weapon_railgun() { spawnfunc_weapon_sniperrifle(); } void spawnfunc_ammo_slugs() { spawnfunc_item_bullets(); } // BFG -> Crylink diff --git a/qcsrc/server/w_campingrifle.qc b/qcsrc/server/w_campingrifle.qc index 777f0d112b..720ab8f82b 100644 --- a/qcsrc/server/w_campingrifle.qc +++ b/qcsrc/server/w_campingrifle.qc @@ -1,52 +1,52 @@ #ifdef REGISTER_WEAPON -REGISTER_WEAPON(CAMPINGRIFLE, w_campingrifle, IT_NAILS, 7, WEP_FLAG_NORMAL | WEP_TYPE_HITSCAN, BOT_PICKUP_RATING_MID, "campingrifle", "campingrifle", "Sniper Rifle"); +REGISTER_WEAPON(SNIPERRIFLE, w_sniperrifle, IT_NAILS, 7, WEP_FLAG_NORMAL | WEP_TYPE_HITSCAN, BOT_PICKUP_RATING_MID, "campingrifle", "sniperrifle", "Sniper Rifle"); #else #ifdef SVQC -//Camping rifle Primary mode: manually operated bolt*, Secondary: full automatic** +//Sniper rifle Primary mode: manually operated bolt*, Secondary: full automatic** //* Manually operating the bolt means that all the power of the gas is used to propell the bullet. In this mode the bolt is prevented from moving backwards in response to the firing of the bullet. //** In fully automatic mode some of the gas is used to extract and reload the next cartrige, thus there is less power and range. -.float campingrifle_accumulator; +.float sniperrifle_accumulator; -float W_CampingRifle_CheckMaxBullets(float checkammo) +float W_SniperRifle_CheckMaxBullets(float checkammo) { float maxbulls; - maxbulls = autocvar_g_balance_campingrifle_magazinecapacity; + maxbulls = autocvar_g_balance_sniperrifle_magazinecapacity; if(!maxbulls) maxbulls = 8; // match HUD if(checkammo) if not(self.items & IT_UNLIMITED_WEAPON_AMMO) - maxbulls = min(maxbulls, floor(self.ammo_nails / min(autocvar_g_balance_campingrifle_primary_ammo, autocvar_g_balance_campingrifle_secondary_ammo))); - if(self.campingrifle_bulletcounter > maxbulls || !autocvar_g_balance_campingrifle_magazinecapacity) - self.campingrifle_bulletcounter = maxbulls; - return (self.campingrifle_bulletcounter == maxbulls); + maxbulls = min(maxbulls, floor(self.ammo_nails / min(autocvar_g_balance_sniperrifle_primary_ammo, autocvar_g_balance_sniperrifle_secondary_ammo))); + if(self.sniperrifle_bulletcounter > maxbulls || !autocvar_g_balance_sniperrifle_magazinecapacity) + self.sniperrifle_bulletcounter = maxbulls; + return (self.sniperrifle_bulletcounter == maxbulls); } -void W_CampingRifle_ReloadedAndReady() +void W_SniperRifle_ReloadedAndReady() { float t; - self.campingrifle_bulletcounter = autocvar_g_balance_campingrifle_magazinecapacity; - W_CampingRifle_CheckMaxBullets(TRUE); - t = ATTACK_FINISHED(self) - autocvar_g_balance_campingrifle_reloadtime - 1; + self.sniperrifle_bulletcounter = autocvar_g_balance_sniperrifle_magazinecapacity; + W_SniperRifle_CheckMaxBullets(TRUE); + t = ATTACK_FINISHED(self) - autocvar_g_balance_sniperrifle_reloadtime - 1; ATTACK_FINISHED(self) = t; w_ready(); } -float W_CampingRifle_Reload() +float W_SniperRifle_Reload() { float t; - W_CampingRifle_CheckMaxBullets(TRUE); + W_SniperRifle_CheckMaxBullets(TRUE); - if(self.ammo_nails < min(autocvar_g_balance_campingrifle_primary_ammo, autocvar_g_balance_campingrifle_secondary_ammo)) // when we get here, bulletcounter must be 0 or -1 + if(self.ammo_nails < min(autocvar_g_balance_sniperrifle_primary_ammo, autocvar_g_balance_sniperrifle_secondary_ammo)) // when we get here, bulletcounter must be 0 or -1 { print("cannot reload... not enough bullets\n"); - self.campingrifle_bulletcounter = -1; // reload later + self.sniperrifle_bulletcounter = -1; // reload later W_SwitchToOtherWeapon(self); return 0; } - if (self.campingrifle_bulletcounter >= autocvar_g_balance_campingrifle_magazinecapacity) + if (self.sniperrifle_bulletcounter >= autocvar_g_balance_sniperrifle_magazinecapacity) return 0; if (self.weaponentity) @@ -60,33 +60,33 @@ float W_CampingRifle_Reload() sound (self, CHAN_WEAPON2, "weapons/campingrifle_reload.wav", VOL_BASE, ATTN_NORM); - t = max(time, ATTACK_FINISHED(self)) + autocvar_g_balance_campingrifle_reloadtime + 1; + t = max(time, ATTACK_FINISHED(self)) + autocvar_g_balance_sniperrifle_reloadtime + 1; ATTACK_FINISHED(self) = t; - weapon_thinkf(WFRAME_RELOAD, autocvar_g_balance_campingrifle_reloadtime, W_CampingRifle_ReloadedAndReady); + weapon_thinkf(WFRAME_RELOAD, autocvar_g_balance_sniperrifle_reloadtime, W_SniperRifle_ReloadedAndReady); - self.campingrifle_bulletcounter = -1; + self.sniperrifle_bulletcounter = -1; return 1; } -void W_CampingRifle_CheckReloadAndReady() +void W_SniperRifle_CheckReloadAndReady() { w_ready(); - if(self.campingrifle_bulletcounter <= 0) - if(W_CampingRifle_Reload()) + if(self.sniperrifle_bulletcounter <= 0) + if(W_SniperRifle_Reload()) return; } -void W_CampingRifle_FireBullet(float pSpread, float pDamage, float pHeadshotAddedDamage, float pForce, float pSpeed, float pLifetime, float pAmmo, float deathtype, float pBulletConstant) +void W_SniperRifle_FireBullet(float pSpread, float pDamage, float pHeadshotAddedDamage, float pForce, float pSpeed, float pLifetime, float pAmmo, float deathtype, float pBulletConstant) { if not(self.items & IT_UNLIMITED_WEAPON_AMMO) self.ammo_nails -= pAmmo; if(deathtype & HITTYPE_SECONDARY) - W_SetupShot (self, autocvar_g_antilag_bullets && pSpeed >= autocvar_g_antilag_bullets, 2, "weapons/campingrifle_fire2.wav", CHAN_WEAPON, autocvar_g_balance_campingrifle_secondary_damage + autocvar_g_balance_campingrifle_secondary_headshotaddeddamage); + W_SetupShot (self, autocvar_g_antilag_bullets && pSpeed >= autocvar_g_antilag_bullets, 2, "weapons/campingrifle_fire2.wav", CHAN_WEAPON, autocvar_g_balance_sniperrifle_secondary_damage + autocvar_g_balance_sniperrifle_secondary_headshotaddeddamage); else - W_SetupShot (self, autocvar_g_antilag_bullets && pSpeed >= autocvar_g_antilag_bullets, 2, "weapons/campingrifle_fire.wav", CHAN_WEAPON, autocvar_g_balance_campingrifle_primary_damage + autocvar_g_balance_campingrifle_primary_headshotaddeddamage); + W_SetupShot (self, autocvar_g_antilag_bullets && pSpeed >= autocvar_g_antilag_bullets, 2, "weapons/campingrifle_fire.wav", CHAN_WEAPON, autocvar_g_balance_sniperrifle_primary_damage + autocvar_g_balance_sniperrifle_primary_headshotaddeddamage); pointparticles(particleeffectnum("shotgun_muzzleflash"), w_shotorg, w_shotdir * 2000, 1); @@ -97,55 +97,61 @@ void W_CampingRifle_FireBullet(float pSpread, float pDamage, float pHeadshotAdde } if(deathtype & HITTYPE_SECONDARY) - fireBallisticBullet(w_shotorg, w_shotdir, pSpread, pSpeed, pLifetime, pDamage, pHeadshotAddedDamage / pDamage, pForce, deathtype, (autocvar_g_balance_campingrifle_secondary_tracer ? EF_RED : EF_BLUE), 1, pBulletConstant); + fireBallisticBullet(w_shotorg, w_shotdir, pSpread, pSpeed, pLifetime, pDamage, pHeadshotAddedDamage / pDamage, pForce, deathtype, (autocvar_g_balance_sniperrifle_secondary_tracer ? EF_RED : EF_BLUE), 1, pBulletConstant); else - fireBallisticBullet(w_shotorg, w_shotdir, pSpread, pSpeed, pLifetime, pDamage, pHeadshotAddedDamage / pDamage, pForce, deathtype, (autocvar_g_balance_campingrifle_primary_tracer ? EF_RED : EF_BLUE), 1, pBulletConstant); + fireBallisticBullet(w_shotorg, w_shotdir, pSpread, pSpeed, pLifetime, pDamage, pHeadshotAddedDamage / pDamage, pForce, deathtype, (autocvar_g_balance_sniperrifle_primary_tracer ? EF_RED : EF_BLUE), 1, pBulletConstant); endFireBallisticBullet(); if (autocvar_g_casings >= 2) SpawnCasing (((random () * 50 + 50) * v_right) - (v_forward * (random () * 25 + 25)) - ((random () * 5 - 70) * v_up), 2, vectoangles(v_forward),'0 250 0', 100, 3, self); - self.campingrifle_bulletcounter = self.campingrifle_bulletcounter - 1; - W_CampingRifle_CheckMaxBullets(TRUE); + self.sniperrifle_bulletcounter = self.sniperrifle_bulletcounter - 1; + W_SniperRifle_CheckMaxBullets(TRUE); } -void W_CampingRifle_Attack() +void W_SniperRifle_Attack() { - W_CampingRifle_FireBullet(autocvar_g_balance_campingrifle_primary_spread, autocvar_g_balance_campingrifle_primary_damage, autocvar_g_balance_campingrifle_primary_headshotaddeddamage, autocvar_g_balance_campingrifle_primary_force, autocvar_g_balance_campingrifle_primary_speed, autocvar_g_balance_campingrifle_primary_lifetime, autocvar_g_balance_campingrifle_primary_ammo, WEP_CAMPINGRIFLE, autocvar_g_balance_campingrifle_primary_bulletconstant); + W_SniperRifle_FireBullet(autocvar_g_balance_sniperrifle_primary_spread, autocvar_g_balance_sniperrifle_primary_damage, autocvar_g_balance_sniperrifle_primary_headshotaddeddamage, autocvar_g_balance_sniperrifle_primary_force, autocvar_g_balance_sniperrifle_primary_speed, autocvar_g_balance_sniperrifle_primary_lifetime, autocvar_g_balance_sniperrifle_primary_ammo, WEP_SNIPERRIFLE, autocvar_g_balance_sniperrifle_primary_bulletconstant); } -void W_CampingRifle_Attack2() +void W_SniperRifle_Attack2() { - W_CampingRifle_FireBullet(autocvar_g_balance_campingrifle_secondary_spread, autocvar_g_balance_campingrifle_secondary_damage, autocvar_g_balance_campingrifle_secondary_headshotaddeddamage, autocvar_g_balance_campingrifle_secondary_force, autocvar_g_balance_campingrifle_secondary_speed, autocvar_g_balance_campingrifle_secondary_lifetime, autocvar_g_balance_campingrifle_secondary_ammo, WEP_CAMPINGRIFLE | HITTYPE_SECONDARY, autocvar_g_balance_campingrifle_secondary_bulletconstant); + W_SniperRifle_FireBullet(autocvar_g_balance_sniperrifle_secondary_spread, autocvar_g_balance_sniperrifle_secondary_damage, autocvar_g_balance_sniperrifle_secondary_headshotaddeddamage, autocvar_g_balance_sniperrifle_secondary_force, autocvar_g_balance_sniperrifle_secondary_speed, autocvar_g_balance_sniperrifle_secondary_lifetime, autocvar_g_balance_sniperrifle_secondary_ammo, WEP_SNIPERRIFLE | HITTYPE_SECONDARY, autocvar_g_balance_sniperrifle_secondary_bulletconstant); } +void spawnfunc_weapon_sniperrifle (void) +{ + weapon_defaultspawnfunc(WEP_SNIPERRIFLE); +} + +// compatibility alias void spawnfunc_weapon_campingrifle (void) { - weapon_defaultspawnfunc(WEP_CAMPINGRIFLE); + spawnfunc_weapon_sniperrifle(); } -.void(void) campingrifle_bullethail_attackfunc; -.float campingrifle_bullethail_frame; -.float campingrifle_bullethail_animtime; -.float campingrifle_bullethail_refire; -void W_CampingRifle_BulletHail_Continue() +.void(void) sniperrifle_bullethail_attackfunc; +.float sniperrifle_bullethail_frame; +.float sniperrifle_bullethail_animtime; +.float sniperrifle_bullethail_refire; +void W_SniperRifle_BulletHail_Continue() { float r, sw, af; - W_CampingRifle_CheckReloadAndReady(); - if(self.campingrifle_bulletcounter < 0) + W_SniperRifle_CheckReloadAndReady(); + if(self.sniperrifle_bulletcounter < 0) return; // reloading, so we are done sw = self.switchweapon; // make it not detect weapon changes as reason to abort firing af = ATTACK_FINISHED(self); self.switchweapon = self.weapon; ATTACK_FINISHED(self) = time; print(ftos(self.ammo_nails), "\n"); - r = weapon_prepareattack(self.campingrifle_bullethail_frame == WFRAME_FIRE2, self.campingrifle_bullethail_refire); + r = weapon_prepareattack(self.sniperrifle_bullethail_frame == WFRAME_FIRE2, self.sniperrifle_bullethail_refire); if(self.switchweapon == self.weapon) self.switchweapon = sw; if(r) { - self.campingrifle_bullethail_attackfunc(); - weapon_thinkf(self.campingrifle_bullethail_frame, self.campingrifle_bullethail_animtime, W_CampingRifle_BulletHail_Continue); + self.sniperrifle_bullethail_attackfunc(); + weapon_thinkf(self.sniperrifle_bullethail_frame, self.sniperrifle_bullethail_animtime, W_SniperRifle_BulletHail_Continue); print("thinkf set\n"); } else @@ -155,28 +161,28 @@ void W_CampingRifle_BulletHail_Continue() } } -void W_CampingRifle_BulletHail(float mode, void(void) AttackFunc, float fr, float animtime, float refire) +void W_SniperRifle_BulletHail(float mode, void(void) AttackFunc, float fr, float animtime, float refire) { // if we get here, we have at least one bullet to fire AttackFunc(); if(mode) { // continue hail - self.campingrifle_bullethail_attackfunc = AttackFunc; - self.campingrifle_bullethail_frame = fr; - self.campingrifle_bullethail_animtime = animtime; - self.campingrifle_bullethail_refire = refire; - weapon_thinkf(fr, animtime, W_CampingRifle_BulletHail_Continue); + self.sniperrifle_bullethail_attackfunc = AttackFunc; + self.sniperrifle_bullethail_frame = fr; + self.sniperrifle_bullethail_animtime = animtime; + self.sniperrifle_bullethail_refire = refire; + weapon_thinkf(fr, animtime, W_SniperRifle_BulletHail_Continue); } else { // just one shot - weapon_thinkf(fr, animtime, W_CampingRifle_CheckReloadAndReady); + weapon_thinkf(fr, animtime, W_SniperRifle_CheckReloadAndReady); } } -.float bot_secondary_campingriflemooth; -float w_campingrifle(float req) +.float bot_secondary_sniperriflemooth; +float w_sniperrifle(float req) { float full; if (req == WR_AIM) @@ -184,53 +190,53 @@ float w_campingrifle(float req) self.BUTTON_ATCK=FALSE; self.BUTTON_ATCK2=FALSE; if(vlen(self.origin-self.enemy.origin) > 1000) - self.bot_secondary_campingriflemooth = 0; - if(self.bot_secondary_campingriflemooth == 0) + self.bot_secondary_sniperriflemooth = 0; + if(self.bot_secondary_sniperriflemooth == 0) { - if(bot_aim(autocvar_g_balance_campingrifle_primary_speed, 0, autocvar_g_balance_campingrifle_primary_lifetime, TRUE)) + if(bot_aim(autocvar_g_balance_sniperrifle_primary_speed, 0, autocvar_g_balance_sniperrifle_primary_lifetime, TRUE)) { self.BUTTON_ATCK = TRUE; - if(random() < 0.01) self.bot_secondary_campingriflemooth = 1; + if(random() < 0.01) self.bot_secondary_sniperriflemooth = 1; } } else { - if(bot_aim(autocvar_g_balance_campingrifle_secondary_speed, 0, autocvar_g_balance_campingrifle_secondary_lifetime, TRUE)) + if(bot_aim(autocvar_g_balance_sniperrifle_secondary_speed, 0, autocvar_g_balance_sniperrifle_secondary_lifetime, TRUE)) { self.BUTTON_ATCK2 = TRUE; - if(random() < 0.03) self.bot_secondary_campingriflemooth = 0; + if(random() < 0.03) self.bot_secondary_sniperriflemooth = 0; } } } else if (req == WR_THINK) { - if(self.campingrifle_bulletcounter < 0) // forced reload (e.g. because interrupted) + if(self.sniperrifle_bulletcounter < 0) // forced reload (e.g. because interrupted) { if(self.switchweapon == self.weapon) if(self.weaponentity.state == WS_READY) - W_CampingRifle_Reload(); + W_SniperRifle_Reload(); } else { - self.campingrifle_accumulator = bound(time - autocvar_g_balance_campingrifle_bursttime, self.campingrifle_accumulator, time); + self.sniperrifle_accumulator = bound(time - autocvar_g_balance_sniperrifle_bursttime, self.sniperrifle_accumulator, time); if (self.BUTTON_ATCK) - if (weapon_prepareattack_check(0, autocvar_g_balance_campingrifle_primary_refire)) - if (time >= self.campingrifle_accumulator + autocvar_g_balance_campingrifle_primary_burstcost) + if (weapon_prepareattack_check(0, autocvar_g_balance_sniperrifle_primary_refire)) + if (time >= self.sniperrifle_accumulator + autocvar_g_balance_sniperrifle_primary_burstcost) { - weapon_prepareattack_do(0, autocvar_g_balance_campingrifle_primary_refire); - W_CampingRifle_BulletHail(autocvar_g_balance_campingrifle_primary_bullethail, W_CampingRifle_Attack, WFRAME_FIRE1, autocvar_g_balance_campingrifle_primary_animtime, autocvar_g_balance_campingrifle_primary_refire); - self.campingrifle_accumulator += autocvar_g_balance_campingrifle_primary_burstcost; + weapon_prepareattack_do(0, autocvar_g_balance_sniperrifle_primary_refire); + W_SniperRifle_BulletHail(autocvar_g_balance_sniperrifle_primary_bullethail, W_SniperRifle_Attack, WFRAME_FIRE1, autocvar_g_balance_sniperrifle_primary_animtime, autocvar_g_balance_sniperrifle_primary_refire); + self.sniperrifle_accumulator += autocvar_g_balance_sniperrifle_primary_burstcost; } if (self.BUTTON_ATCK2) { - if (autocvar_g_balance_campingrifle_secondary) + if (autocvar_g_balance_sniperrifle_secondary) { - if (weapon_prepareattack_check(1, autocvar_g_balance_campingrifle_secondary_refire)) - if (time >= self.campingrifle_accumulator + autocvar_g_balance_campingrifle_secondary_burstcost) + if (weapon_prepareattack_check(1, autocvar_g_balance_sniperrifle_secondary_refire)) + if (time >= self.sniperrifle_accumulator + autocvar_g_balance_sniperrifle_secondary_burstcost) { - weapon_prepareattack_do(1, autocvar_g_balance_campingrifle_secondary_refire); - W_CampingRifle_BulletHail(autocvar_g_balance_campingrifle_secondary_bullethail, W_CampingRifle_Attack2, WFRAME_FIRE2, autocvar_g_balance_campingrifle_secondary_animtime, autocvar_g_balance_campingrifle_primary_refire); - self.campingrifle_accumulator += autocvar_g_balance_campingrifle_secondary_burstcost; + weapon_prepareattack_do(1, autocvar_g_balance_sniperrifle_secondary_refire); + W_SniperRifle_BulletHail(autocvar_g_balance_sniperrifle_secondary_bullethail, W_SniperRifle_Attack2, WFRAME_FIRE2, autocvar_g_balance_sniperrifle_secondary_animtime, autocvar_g_balance_sniperrifle_primary_refire); + self.sniperrifle_accumulator += autocvar_g_balance_sniperrifle_secondary_burstcost; } } } @@ -247,32 +253,32 @@ float w_campingrifle(float req) } else if (req == WR_SETUP) { - weapon_setup(WEP_CAMPINGRIFLE); + weapon_setup(WEP_SNIPERRIFLE); - full = W_CampingRifle_CheckMaxBullets(TRUE); - if(autocvar_g_balance_campingrifle_auto_reload_on_switch) + full = W_SniperRifle_CheckMaxBullets(TRUE); + if(autocvar_g_balance_sniperrifle_auto_reload_on_switch) if(!full) - self.campingrifle_bulletcounter = -1; + self.sniperrifle_bulletcounter = -1; } else if (req == WR_CHECKAMMO1) - return self.ammo_nails >= autocvar_g_balance_campingrifle_primary_ammo; + return self.ammo_nails >= autocvar_g_balance_sniperrifle_primary_ammo; else if (req == WR_CHECKAMMO2) - return self.ammo_nails >= autocvar_g_balance_campingrifle_secondary_ammo; + return self.ammo_nails >= autocvar_g_balance_sniperrifle_secondary_ammo; else if (req == WR_RELOAD) { - W_CampingRifle_Reload(); + W_SniperRifle_Reload(); } else if (req == WR_RESETPLAYER) { - self.campingrifle_accumulator = time - autocvar_g_balance_campingrifle_bursttime; - self.campingrifle_bulletcounter = autocvar_g_balance_campingrifle_magazinecapacity; - W_CampingRifle_CheckMaxBullets(FALSE); + self.sniperrifle_accumulator = time - autocvar_g_balance_sniperrifle_bursttime; + self.sniperrifle_bulletcounter = autocvar_g_balance_sniperrifle_magazinecapacity; + W_SniperRifle_CheckMaxBullets(FALSE); } return TRUE; }; #endif #ifdef CSQC -float w_campingrifle(float req) +float w_sniperrifle(float req) { if(req == WR_IMPACTEFFECT) { diff --git a/qcsrc/server/w_common.qc b/qcsrc/server/w_common.qc index 62d3dd8093..2d9ecfd8b3 100644 --- a/qcsrc/server/w_common.qc +++ b/qcsrc/server/w_common.qc @@ -184,7 +184,7 @@ void W_BallisticBullet_Hit (void) if(headshot) f *= q; - if(DEATH_WEAPONOF(self.projectiledeathtype) == WEP_CAMPINGRIFLE) + if(DEATH_WEAPONOF(self.projectiledeathtype) == WEP_SNIPERRIFLE) { if(headshot) AnnounceTo(self.owner, "headshot");