From: Samual Lenks Date: Mon, 9 Dec 2013 22:37:10 +0000 (-0500) Subject: Don't do the full WEP_id for these, not necessary X-Git-Tag: xonotic-v0.8.0~152^2~267 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=38ecc5382483bb154c49f90fc54504ef949fe656;p=xonotic%2Fxonotic-data.pk3dir.git Don't do the full WEP_id for these, not necessary --- diff --git a/qcsrc/common/weapons/w_arc.qc b/qcsrc/common/weapons/w_arc.qc index 1ed5faae20..6ce4a90d0b 100644 --- a/qcsrc/common/weapons/w_arc.qc +++ b/qcsrc/common/weapons/w_arc.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Arc") ); -#define ARC_SETTINGS(w_cvar,w_prop) ARC_SETTINGS_LIST(w_cvar, w_prop, WEP_ARC, arc) +#define ARC_SETTINGS(w_cvar,w_prop) ARC_SETTINGS_LIST(w_cvar, w_prop, ARC, arc) #define ARC_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, ammo) \ w_cvar(id, sn, MO_PRI, animtime) \ diff --git a/qcsrc/common/weapons/w_blaster.qc b/qcsrc/common/weapons/w_blaster.qc index cd8ba5d207..24cc175d81 100644 --- a/qcsrc/common/weapons/w_blaster.qc +++ b/qcsrc/common/weapons/w_blaster.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Blaster") ); -#define BLASTER_SETTINGS(w_cvar,w_prop) BLASTER_SETTINGS_LIST(w_cvar, w_prop, WEP_BLASTER, blaster) +#define BLASTER_SETTINGS(w_cvar,w_prop) BLASTER_SETTINGS_LIST(w_cvar, w_prop, BLASTER, blaster) #define BLASTER_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, animtime) \ w_cvar(id, sn, MO_BOTH, damage) \ diff --git a/qcsrc/common/weapons/w_crylink.qc b/qcsrc/common/weapons/w_crylink.qc index a47feb19a2..8d25c6b7e2 100644 --- a/qcsrc/common/weapons/w_crylink.qc +++ b/qcsrc/common/weapons/w_crylink.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Crylink") ); -#define CRYLINK_SETTINGS(w_cvar,w_prop) CRYLINK_SETTINGS_LIST(w_cvar, w_prop, WEP_CRYLINK, crylink) +#define CRYLINK_SETTINGS(w_cvar,w_prop) CRYLINK_SETTINGS_LIST(w_cvar, w_prop, CRYLINK, crylink) #define CRYLINK_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, ammo) \ w_cvar(id, sn, MO_BOTH, animtime) \ diff --git a/qcsrc/common/weapons/w_devastator.qc b/qcsrc/common/weapons/w_devastator.qc index e9833f5980..43e5359acf 100644 --- a/qcsrc/common/weapons/w_devastator.qc +++ b/qcsrc/common/weapons/w_devastator.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Devastator") ); -#define DEVASTATOR_SETTINGS(w_cvar,w_prop) DEVASTATOR_SETTINGS_LIST(w_cvar, w_prop, WEP_DEVASTATOR, devastator) +#define DEVASTATOR_SETTINGS(w_cvar,w_prop) DEVASTATOR_SETTINGS_LIST(w_cvar, w_prop, DEVASTATOR, devastator) #define DEVASTATOR_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_NONE, ammo) \ w_cvar(id, sn, MO_NONE, animtime) \ diff --git a/qcsrc/common/weapons/w_electro.qc b/qcsrc/common/weapons/w_electro.qc index 4982e051e1..47bffb0af4 100644 --- a/qcsrc/common/weapons/w_electro.qc +++ b/qcsrc/common/weapons/w_electro.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Electro") ); -#define ELECTRO_SETTINGS(w_cvar,w_prop) ELECTRO_SETTINGS_LIST(w_cvar, w_prop, WEP_ELECTRO, electro) +#define ELECTRO_SETTINGS(w_cvar,w_prop) ELECTRO_SETTINGS_LIST(w_cvar, w_prop, ELECTRO, electro) #define ELECTRO_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, ammo) \ w_cvar(id, sn, MO_BOTH, animtime) \ diff --git a/qcsrc/common/weapons/w_fireball.qc b/qcsrc/common/weapons/w_fireball.qc index a3a144279a..83b69a7008 100644 --- a/qcsrc/common/weapons/w_fireball.qc +++ b/qcsrc/common/weapons/w_fireball.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Fireball") ); -#define FIREBALL_SETTINGS(w_cvar,w_prop) FIREBALL_SETTINGS_LIST(w_cvar, w_prop, WEP_FIREBALL, fireball) +#define FIREBALL_SETTINGS(w_cvar,w_prop) FIREBALL_SETTINGS_LIST(w_cvar, w_prop, FIREBALL, fireball) #define FIREBALL_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, animtime) \ w_cvar(id, sn, MO_BOTH, refire) \ diff --git a/qcsrc/common/weapons/w_hagar.qc b/qcsrc/common/weapons/w_hagar.qc index ef334d9df4..02554970cf 100644 --- a/qcsrc/common/weapons/w_hagar.qc +++ b/qcsrc/common/weapons/w_hagar.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Hagar") ); -#define HAGAR_SETTINGS(w_cvar,w_prop) HAGAR_SETTINGS_LIST(w_cvar, w_prop, WEP_HAGAR, hagar) +#define HAGAR_SETTINGS(w_cvar,w_prop) HAGAR_SETTINGS_LIST(w_cvar, w_prop, HAGAR, hagar) #define HAGAR_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, ammo) \ w_cvar(id, sn, MO_BOTH, damage) \ diff --git a/qcsrc/common/weapons/w_hlac.qc b/qcsrc/common/weapons/w_hlac.qc index b49274c651..509a0eabbf 100644 --- a/qcsrc/common/weapons/w_hlac.qc +++ b/qcsrc/common/weapons/w_hlac.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Heavy Laser Assault Cannon") ); -#define HLAC_SETTINGS(w_cvar,w_prop) HLAC_SETTINGS_LIST(w_cvar, w_prop, WEP_HLAC, hlac) +#define HLAC_SETTINGS(w_cvar,w_prop) HLAC_SETTINGS_LIST(w_cvar, w_prop, HLAC, hlac) #define HLAC_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, ammo) \ w_cvar(id, sn, MO_BOTH, animtime) \ diff --git a/qcsrc/common/weapons/w_hook.qc b/qcsrc/common/weapons/w_hook.qc index a45fa6b5db..3deabd127f 100644 --- a/qcsrc/common/weapons/w_hook.qc +++ b/qcsrc/common/weapons/w_hook.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Grappling Hook") ); -#define HOOK_SETTINGS(w_cvar,w_prop) HOOK_SETTINGS_LIST(w_cvar, w_prop, WEP_HOOK, hook) +#define HOOK_SETTINGS(w_cvar,w_prop) HOOK_SETTINGS_LIST(w_cvar, w_prop, HOOK, hook) #define HOOK_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, animtime) \ w_cvar(id, sn, MO_BOTH, ammo) \ diff --git a/qcsrc/common/weapons/w_machinegun.qc b/qcsrc/common/weapons/w_machinegun.qc index f2c28d771f..a8e5a756b2 100644 --- a/qcsrc/common/weapons/w_machinegun.qc +++ b/qcsrc/common/weapons/w_machinegun.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Machine Gun") ); -#define UZI_SETTINGS(w_cvar,w_prop) UZI_SETTINGS_LIST(w_cvar, w_prop, WEP_UZI, uzi) +#define UZI_SETTINGS(w_cvar,w_prop) UZI_SETTINGS_LIST(w_cvar, w_prop, UZI, uzi) #define UZI_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_NONE, speed) \ w_cvar(id, sn, MO_NONE, spread_min) \ diff --git a/qcsrc/common/weapons/w_minelayer.qc b/qcsrc/common/weapons/w_minelayer.qc index ec6d8bcc44..49d2605b42 100644 --- a/qcsrc/common/weapons/w_minelayer.qc +++ b/qcsrc/common/weapons/w_minelayer.qc @@ -10,7 +10,8 @@ REGISTER_WEAPON( /* netname */ "minelayer", /* fullname */ _("Mine Layer") ); -#define MINELAYER_SETTINGS(w_cvar,w_prop) MINELAYER_SETTINGS_LIST(w_cvar, w_prop, WEP_MINE_LAYER, minelayer) + +#define MINELAYER_SETTINGS(w_cvar,w_prop) MINELAYER_SETTINGS_LIST(w_cvar, w_prop, MINE_LAYER, minelayer) #define MINELAYER_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_NONE, ammo) \ w_cvar(id, sn, MO_NONE, animtime) \ diff --git a/qcsrc/common/weapons/w_minstanex.qc b/qcsrc/common/weapons/w_minstanex.qc index a8e238197c..2869128dc1 100644 --- a/qcsrc/common/weapons/w_minstanex.qc +++ b/qcsrc/common/weapons/w_minstanex.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("MinstaNex") ); -#define MINSTANEX_SETTINGS(w_cvar,w_prop) MINSTANEX_SETTINGS_LIST(w_cvar, w_prop, WEP_MINSTANEX, minstanex) +#define MINSTANEX_SETTINGS(w_cvar,w_prop) MINSTANEX_SETTINGS_LIST(w_cvar, w_prop, MINSTANEX, minstanex) #define MINSTANEX_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_PRI, ammo) \ w_cvar(id, sn, MO_PRI, animtime) \ diff --git a/qcsrc/common/weapons/w_mortar.qc b/qcsrc/common/weapons/w_mortar.qc index dc61caa78a..3ac46814c5 100644 --- a/qcsrc/common/weapons/w_mortar.qc +++ b/qcsrc/common/weapons/w_mortar.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Mortar") ); -#define MORTAR_SETTINGS(w_cvar,w_prop) MORTAR_SETTINGS_LIST(w_cvar, w_prop, WEP_MORTAR, mortar) +#define MORTAR_SETTINGS(w_cvar,w_prop) MORTAR_SETTINGS_LIST(w_cvar, w_prop, MORTAR, mortar) #define MORTAR_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, ammo) \ w_cvar(id, sn, MO_BOTH, animtime) \ diff --git a/qcsrc/common/weapons/w_nex.qc b/qcsrc/common/weapons/w_nex.qc index 9c364113b6..b36da57d7e 100644 --- a/qcsrc/common/weapons/w_nex.qc +++ b/qcsrc/common/weapons/w_nex.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Nex") ); -#define NEX_SETTINGS(w_cvar,w_prop) NEX_SETTINGS_LIST(w_cvar, w_prop, WEP_NEX, nex) +#define NEX_SETTINGS(w_cvar,w_prop) NEX_SETTINGS_LIST(w_cvar, w_prop, NEX, nex) #define NEX_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, ammo) \ w_cvar(id, sn, MO_BOTH, animtime) \ diff --git a/qcsrc/common/weapons/w_porto.qc b/qcsrc/common/weapons/w_porto.qc index c11f2e640b..b22e5471d2 100644 --- a/qcsrc/common/weapons/w_porto.qc +++ b/qcsrc/common/weapons/w_porto.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Port-O-Launch") ); -#define PORTO_SETTINGS(w_cvar,w_prop) PORTO_SETTINGS_LIST(w_cvar, w_prop, WEP_PORTO, porto) +#define PORTO_SETTINGS(w_cvar,w_prop) PORTO_SETTINGS_LIST(w_cvar, w_prop, PORTO, porto) #define PORTO_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, animtime) \ w_cvar(id, sn, MO_BOTH, lifetime) \ diff --git a/qcsrc/common/weapons/w_rifle.qc b/qcsrc/common/weapons/w_rifle.qc index a7433b47cd..4248747687 100644 --- a/qcsrc/common/weapons/w_rifle.qc +++ b/qcsrc/common/weapons/w_rifle.qc @@ -10,7 +10,8 @@ REGISTER_WEAPON( /* netname */ "rifle", /* fullname */ _("Rifle") ); -#define RIFLE_SETTINGS(w_cvar,w_prop) RIFLE_SETTINGS_LIST(w_cvar, w_prop, WEP_RIFLE, rifle) + +#define RIFLE_SETTINGS(w_cvar,w_prop) RIFLE_SETTINGS_LIST(w_cvar, w_prop, RIFLE, rifle) #define RIFLE_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_BOTH, ammo) \ w_cvar(id, sn, MO_BOTH, animtime) \ diff --git a/qcsrc/common/weapons/w_seeker.qc b/qcsrc/common/weapons/w_seeker.qc index 9444723aec..63385c67a0 100644 --- a/qcsrc/common/weapons/w_seeker.qc +++ b/qcsrc/common/weapons/w_seeker.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("T.A.G. Seeker") ); -#define SEEKER_SETTINGS(w_cvar,w_prop) SEEKER_SETTINGS_LIST(w_cvar, w_prop, WEP_SEEKER, seeker) +#define SEEKER_SETTINGS(w_cvar,w_prop) SEEKER_SETTINGS_LIST(w_cvar, w_prop, SEEKER, seeker) #define SEEKER_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_NONE, type) \ w_cvar(id, sn, MO_NONE, flac_ammo) \ diff --git a/qcsrc/common/weapons/w_shockwave.qc b/qcsrc/common/weapons/w_shockwave.qc index d859f62e81..d06fd443f0 100644 --- a/qcsrc/common/weapons/w_shockwave.qc +++ b/qcsrc/common/weapons/w_shockwave.qc @@ -11,7 +11,7 @@ REGISTER_WEAPON( /* fullname */ _("Shockwave") ); -#define SHOCKWAVE_SETTINGS(w_cvar,w_prop) SHOCKWAVE_SETTINGS_LIST(w_cvar, w_prop, WEP_SHOCKWAVE, shockwave) +#define SHOCKWAVE_SETTINGS(w_cvar,w_prop) SHOCKWAVE_SETTINGS_LIST(w_cvar, w_prop, SHOCKWAVE, shockwave) #define SHOCKWAVE_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_NONE, blast_damage) \ w_cvar(id, sn, MO_NONE, blast_distance) \ diff --git a/qcsrc/common/weapons/w_tuba.qc b/qcsrc/common/weapons/w_tuba.qc index 08d5e9d969..a68ba575af 100644 --- a/qcsrc/common/weapons/w_tuba.qc +++ b/qcsrc/common/weapons/w_tuba.qc @@ -12,7 +12,7 @@ REGISTER_WEAPON( /* fullname */ _("@!#%'n Tuba") ); -#define TUBA_SETTINGS(w_cvar,w_prop) TUBA_SETTINGS_LIST(w_cvar, w_prop, WEP_TUBA, tuba) +#define TUBA_SETTINGS(w_cvar,w_prop) TUBA_SETTINGS_LIST(w_cvar, w_prop, TUBA, tuba) #define TUBA_SETTINGS_LIST(w_cvar,w_prop,id,sn) \ w_cvar(id, sn, MO_NONE, animtime) \ w_cvar(id, sn, MO_NONE, attenuation) \ diff --git a/qcsrc/common/weapons/weapons.qh b/qcsrc/common/weapons/weapons.qh index 1982f047c1..bf768411c9 100644 --- a/qcsrc/common/weapons/weapons.qh +++ b/qcsrc/common/weapons/weapons.qh @@ -169,7 +169,7 @@ float W_AmmoItemCode(float wpn); // set initialization values for weapon settings #define WEP_SKIPCVAR(unuseda,unusedb,unusedc,unusedd) /* skip cvars */ -#define WEP_SET_PROP(wepid,wepname,type,prop,name) get_weaponinfo(##wepid).##prop = autocvar_g_balance_##wepname##_##name; +#define WEP_SET_PROP(wepid,wepname,type,prop,name) get_weaponinfo(WEP_##wepid).##prop = autocvar_g_balance_##wepname##_##name; float w_null(float dummy); void register_weapon(float id, WepSet bit, float(float) func, float ammotype, float i, float weapontype, float pickupbasevalue, string modelname, string shortname, string wname);