]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
More descriptive stuff, better naming
authorSamual Lenks <samual@xonotic.org>
Thu, 2 Jan 2014 23:03:21 +0000 (18:03 -0500)
committerSamual Lenks <samual@xonotic.org>
Thu, 2 Jan 2014 23:03:21 +0000 (18:03 -0500)
22 files changed:
qcsrc/common/weapons/w_arc.qc
qcsrc/common/weapons/w_blaster.qc
qcsrc/common/weapons/w_crylink.qc
qcsrc/common/weapons/w_devastator.qc
qcsrc/common/weapons/w_electro.qc
qcsrc/common/weapons/w_fireball.qc
qcsrc/common/weapons/w_hagar.qc
qcsrc/common/weapons/w_hlac.qc
qcsrc/common/weapons/w_hook.qc
qcsrc/common/weapons/w_machinegun.qc
qcsrc/common/weapons/w_minelayer.qc
qcsrc/common/weapons/w_mortar.qc
qcsrc/common/weapons/w_porto.qc
qcsrc/common/weapons/w_rifle.qc
qcsrc/common/weapons/w_seeker.qc
qcsrc/common/weapons/w_shockwave.qc
qcsrc/common/weapons/w_shotgun.qc
qcsrc/common/weapons/w_tuba.qc
qcsrc/common/weapons/w_vaporizer.qc
qcsrc/common/weapons/w_vortex.qc
qcsrc/common/weapons/weapons.qc
qcsrc/common/weapons/weapons.qh

index bc316b09bff30f32cf21d0089b492d18d01c543c..15679e38fd7b99c08cf511ce1932dc30e58dd4c0 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '1 1 1',
 /* model     */ "arc",
 /* crosshair */ "gfx/crosshairhlac 0.7",
-/* netname   */ "arc",
-/* fullname  */ _("Arc")
+/* refname   */ "arc",
+/* wepname   */ _("Arc")
 );
 
 #define ARC_SETTINGS(w_cvar,w_prop) ARC_SETTINGS_LIST(w_cvar, w_prop, ARC, arc)
index cd4e7ee283f8da543cfe47ff415300e7907fbc8a..7db42548f68705b0817290c9d4fd9ab01319338c 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '1 0.5 0.5',
 /* model     */ "laser",
 /* crosshair */ "gfx/crosshairlaser 0.4",
-/* netname   */ "laser",
-/* fullname  */ _("Blaster")
+/* refname   */ "laser",
+/* wepname   */ _("Blaster")
 );
 
 #define BLASTER_SETTINGS(w_cvar,w_prop) BLASTER_SETTINGS_LIST(w_cvar, w_prop, BLASTER, blaster)
index fa67c7e7b9813532eb5ed374abf5853412556f46..43436c18d8850c7ac7ad432c5af42325760bfea0 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '1 0.5 1',
 /* model     */ "crylink",
 /* crosshair */ "gfx/crosshaircrylink 0.4",
-/* netname   */ "crylink",
-/* fullname  */ _("Crylink")
+/* refname   */ "crylink",
+/* wepname   */ _("Crylink")
 );
 
 #define CRYLINK_SETTINGS(w_cvar,w_prop) CRYLINK_SETTINGS_LIST(w_cvar, w_prop, CRYLINK, crylink)
index 22e8f9f29417aa9df08e6413ba7f7eaedcceb3bb..ac2ec9cfed6ee72df9a7b8996be272955b1b8667 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '1 1 0',
 /* model     */ "rl",
 /* crosshair */ "gfx/crosshairrocketlauncher 0.5875",
-/* netname   */ "devastator",
-/* fullname  */ _("Devastator")
+/* refname   */ "devastator",
+/* wepname   */ _("Devastator")
 );
 
 #define DEVASTATOR_SETTINGS(w_cvar,w_prop) DEVASTATOR_SETTINGS_LIST(w_cvar, w_prop, DEVASTATOR, devastator)
index 739487cb9222f888ac215f82144b276f88d076c0..f4e7d5335b3c2333939cd24d51d42dea0f664d45 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0 0.5 1',
 /* model     */ "electro",
 /* crosshair */ "gfx/crosshairelectro 0.5",
-/* netname   */ "electro",
-/* fullname  */ _("Electro")
+/* refname   */ "electro",
+/* wepname   */ _("Electro")
 );
 
 #define ELECTRO_SETTINGS(w_cvar,w_prop) ELECTRO_SETTINGS_LIST(w_cvar, w_prop, ELECTRO, electro)
index 07537108ab22581dbac2c8f401399d8b7b488d06..e1cbefad208e0bc2c16d72d019e838d9350eb525 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '1 0.5 0',
 /* model     */ "fireball",
 /* crosshair */ "gfx/crosshairfireball",
-/* netname   */ "fireball",
-/* fullname  */ _("Fireball")
+/* refname   */ "fireball",
+/* wepname   */ _("Fireball")
 );
 
 #define FIREBALL_SETTINGS(w_cvar,w_prop) FIREBALL_SETTINGS_LIST(w_cvar, w_prop, FIREBALL, fireball)
index b45bdc4c5d1d444f1c545b72910fe4dbfc4541db..8aea670d89f8d50ff811756dd1bc2809e0b92617 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '1 1 0.5',
 /* model     */ "hagar",
 /* crosshair */ "gfx/crosshairhagar 0.8",
-/* netname   */ "hagar",
-/* fullname  */ _("Hagar")
+/* refname   */ "hagar",
+/* wepname   */ _("Hagar")
 );
 
 #define HAGAR_SETTINGS(w_cvar,w_prop) HAGAR_SETTINGS_LIST(w_cvar, w_prop, HAGAR, hagar)
index 848ebbf6800a0467cc7fda1ffd95423fb00ee21d..c60a48b4d8ee5123b3e89ae6a247cf0b46860c59 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0 1 0',
 /* model     */ "hlac",
 /* crosshair */ "gfx/crosshairhlac 0.6",
-/* netname   */ "hlac",
-/* fullname  */ _("Heavy Laser Assault Cannon")
+/* refname   */ "hlac",
+/* wepname   */ _("Heavy Laser Assault Cannon")
 );
 
 #define HLAC_SETTINGS(w_cvar,w_prop) HLAC_SETTINGS_LIST(w_cvar, w_prop, HLAC, hlac)
index ae1f519f5043d86dc4cbc1116bc2659720994e7a..0ea8f680b78432e52f8cb76eb85438af5c3a32a8 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0 0.5 0',
 /* model     */ "hookgun",
 /* crosshair */ "gfx/crosshairhook 0.5",
-/* netname   */ "hook",
-/* fullname  */ _("Grappling Hook")
+/* refname   */ "hook",
+/* wepname   */ _("Grappling Hook")
 );
 
 #define HOOK_SETTINGS(w_cvar,w_prop) HOOK_SETTINGS_LIST(w_cvar, w_prop, HOOK, hook)
index 35dcfab61208c0b485df3644e91bdd5425c4275d..f242a8b9d70f01c4c147170466b953ed1968b140 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '1 1 0',
 /* model     */ "uzi",
 /* crosshair */ "gfx/crosshairuzi 0.6",
-/* netname   */ "uzi",
-/* fullname  */ _("Machine Gun")
+/* refname   */ "uzi",
+/* wepname   */ _("Machine Gun")
 );
 
 #define MACHINEGUN_SETTINGS(w_cvar,w_prop) MACHINEGUN_SETTINGS_LIST(w_cvar, w_prop, MACHINEGUN, machinegun)
index e1ff57239972335cd2fc954ee793a3fd50acbeb1..0e5b0f20e70637d2c276304b04364188e0063456 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0.75 1 0',
 /* model     */ "minelayer",
 /* crosshair */ "gfx/crosshairminelayer 0.9",
-/* netname   */ "minelayer",
-/* fullname  */ _("Mine Layer")
+/* refname   */ "minelayer",
+/* wepname   */ _("Mine Layer")
 );
 
 #define MINELAYER_SETTINGS(w_cvar,w_prop) MINELAYER_SETTINGS_LIST(w_cvar, w_prop, MINE_LAYER, minelayer)
index a69f36012fab8bee3f7ad4d82b0711be2ccfa12f..1e2032823830d6696166bd2c74e12b2c40297de5 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '1 0 0',
 /* model     */ "gl",
 /* crosshair */ "gfx/crosshairgrenadelauncher 0.7",
-/* netname   */ "grenadelauncher",
-/* fullname  */ _("Mortar")
+/* refname   */ "grenadelauncher",
+/* wepname   */ _("Mortar")
 );
 
 #define MORTAR_SETTINGS(w_cvar,w_prop) MORTAR_SETTINGS_LIST(w_cvar, w_prop, MORTAR, mortar)
index aa1a9b6cadc18069e9c92851aa193ad610fbf4c4..e68f37c3aa052ad0d0a78d650cc1e0f0d172570f 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0.5 0.5 0.5',
 /* model     */ "porto" ,
 /* crosshair */ "gfx/crosshairporto 0.6",
-/* netname   */ "porto",
-/* fullname  */ _("Port-O-Launch")
+/* refname   */ "porto",
+/* wepname   */ _("Port-O-Launch")
 );
 
 #define PORTO_SETTINGS(w_cvar,w_prop) PORTO_SETTINGS_LIST(w_cvar, w_prop, PORTO, porto)
index fc2602d5f6b8ecf24337be661974f8d8ab582bc6..b3feb2cc7e531fed7c2c255e03305e04a67d2bb2 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0.5 1 0',
 /* model     */ "campingrifle",
 /* crosshair */ "gfx/crosshairrifle 0.5",
-/* netname   */ "rifle",
-/* fullname  */ _("Rifle")
+/* refname   */ "rifle",
+/* wepname   */ _("Rifle")
 );
 
 #define RIFLE_SETTINGS(w_cvar,w_prop) RIFLE_SETTINGS_LIST(w_cvar, w_prop, RIFLE, rifle)
index b92e6800c105f6f739b45a3bd143c09436b0dd36..aabac65a9250b4b01daa6464ce5425ca7db751b7 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0.5 1 0',
 /* model     */ "seeker",
 /* crosshair */ "gfx/crosshairseeker 0.8",
-/* netname   */ "seeker",
-/* fullname  */ _("T.A.G. Seeker")
+/* refname   */ "seeker",
+/* wepname   */ _("T.A.G. Seeker")
 );
 
 #define SEEKER_SETTINGS(w_cvar,w_prop) SEEKER_SETTINGS_LIST(w_cvar, w_prop, SEEKER, seeker)
index 060b9e2e5ee832fdfb0edc6bd6c30a3513dec9a1..752e43b335808a38b16093efa776d2f73ae9a736 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0.5 0.25 0',
 /* model     */ "shotgun",
 /* crosshair */ "gfx/crosshairshotgun 0.7",
-/* netname   */ "shockwave",
-/* fullname  */ _("Shockwave")
+/* refname   */ "shockwave",
+/* wepname   */ _("Shockwave")
 );
 
 #define SHOCKWAVE_SETTINGS(w_cvar,w_prop) SHOCKWAVE_SETTINGS_LIST(w_cvar, w_prop, SHOCKWAVE, shockwave)
index f8854f2509f3d00a6109ecff0968016b2ffa3643..5db2380aaf83248bd7fd6447af5935bbca214462 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0.5 0.25 0',
 /* model     */ "shotgun",
 /* crosshair */ "gfx/crosshairshotgun 0.65",
-/* shortname */ "shotgun",
-/* fullname  */ _("Shotgun")
+/* refname   */ "shotgun",
+/* wepname   */ _("Shotgun")
 );
 
 #define SHOTGUN_SETTINGS(w_cvar,w_prop) SHOTGUN_SETTINGS_LIST(w_cvar, w_prop, SHOTGUN, shotgun)
index ab5a24edb0c023588f08ffd5aa2918cd8a90fa8d..eb7dfa774195d0646e564e3db4b3e7ba61ff421d 100644 (file)
@@ -9,9 +9,9 @@ REGISTER_WEAPON(
 /* color     */ '0 1 0',
 /* model     */ "tuba",
 /* crosshair */ "gfx/crosshairtuba",
-/* netname   */ "tuba",
+/* refname   */ "tuba",
 /* xgettext:no-c-format */
-/* fullname  */ _("@!#%'n Tuba")
+/* wepname   */ _("@!#%'n Tuba")
 );
 
 #define TUBA_SETTINGS(w_cvar,w_prop) TUBA_SETTINGS_LIST(w_cvar, w_prop, TUBA, tuba)
index 40b7668ce96a82aa377c6934d833b1aa3bbbebeb..ce9bc6b1027479ce39e2ce446cb3d8810eea1283 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0.5 1 1',
 /* model     */ "minstanex",
 /* crosshair */ "gfx/crosshairminstanex 0.4",
-/* netname   */ "minstanex",
-/* fullname  */ _("Vaporizer")
+/* refname   */ "minstanex",
+/* wepname   */ _("Vaporizer")
 );
 
 #define VAPORIZER_SETTINGS(w_cvar,w_prop) VAPORIZER_SETTINGS_LIST(w_cvar, w_prop, VAPORIZER, vaporizer)
index 43cbd4ef8fd17f07d14fd8bade6d507b33ab608c..9935f855f83a10d27159d5f1f730c57cd753ec6c 100644 (file)
@@ -9,8 +9,8 @@ REGISTER_WEAPON(
 /* color     */ '0.5 1 1',
 /* model     */ "nex",
 /* crosshair */ "gfx/crosshairnex 0.65",
-/* netname   */ "nex",
-/* fullname  */ _("Vortex")
+/* refname   */ "nex",
+/* wepname   */ _("Vortex")
 );
 
 #define VORTEX_SETTINGS(w_cvar,w_prop) VORTEX_SETTINGS_LIST(w_cvar, w_prop, VORTEX, vortex)
index b7ecf1c739663e3683ec921ee6123b72a8a19bee..c0033cb8254af026abb8013a854878636bb59fdd 100644 (file)
@@ -85,8 +85,8 @@ void register_weapon(
        vector clr,
        string modelname,
        string crosshair,
-       string shortname,
-       string wname)
+       string refname,
+       string wepname)
 {
        entity e;
        weapon_info[id - 1] = e = spawn();
@@ -105,8 +105,8 @@ void register_weapon(
        string s = cdr(crosshair);
        e.w_crosshair_size = ((s != "") ? stof(s) : 1); // so that we can scale the crosshair from code (for compat)
        e.model2 = strzone(strcat("wpn-", ftos(id)));
-       e.netname = shortname;
-       e.message = wname;
+       e.netname = refname;
+       e.message = wepname;
 
        #ifndef MENUQC
        func(WR_INIT);
index 3c0ac8577024e3a2139761d0f2194f64678ebb2e..ad7b351f7d5a24ddf56014bee04a139b859e46e1 100644 (file)
@@ -158,10 +158,10 @@ void register_weapons_done();
 .string model2;             // A: wpn-id     // wpn- sprite name
 .string mdl;                // M: model      // modelname without g_, v_, w_
 .string model;              // A: model      // full name of g_ model
-.string w_crosshair;
-.float w_crosshair_size;
+.string w_crosshair;        // M: crosshair  // per-weapon crosshair: "CrosshairImage Size"
+.float w_crosshair_size;    // A: crosshair  // per-weapon crosshair size (argument two of "crosshair" field)
 .string netname;            // M: refname    // reference name name
-.string message;            // M: fullname   // human readable name
+.string message;            // M: wepname    // human readable name
 
 
 // note: the fabs call is just there to hide "if result is constant" warning