]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update shotgun function names
authorMario <mario.mario@y7mail.com>
Mon, 30 Dec 2013 11:44:10 +0000 (22:44 +1100)
committerMario <mario.mario@y7mail.com>
Mon, 30 Dec 2013 11:44:10 +0000 (22:44 +1100)
qcsrc/common/weapons/w_shotgun.qc

index 4878017d7f26f63303dae60969ca8d61ebe3a4a3..2d92ffda8c4dee75e27286e1842058e9ac1233a6 100644 (file)
@@ -1,7 +1,7 @@
 #ifdef REGISTER_WEAPON
 REGISTER_WEAPON(
 /* WEP_##id  */ SHOTGUN,
-/* function  */ w_shotgun,
+/* function  */ W_Shotgun,
 /* ammotype  */ ammo_none,
 /* impulse   */ 2,
 /* flags     */ WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN | WEP_FLAG_MUTATORBLOCKED,
@@ -75,7 +75,7 @@ void W_Shotgun_Attack (void)
 
 .float swing_prev;
 .entity swing_alreadyhit;
-void shotgun_meleethink (void)
+void W_Shotgun_Melee_Think()
 {
        // declarations
        float i, f, swing, swing_factor, swing_damage, meleetime, is_player;
@@ -179,7 +179,7 @@ void W_Shotgun_Attack2 (void)
        entity meleetemp;
        meleetemp = spawn();
        meleetemp.realowner = self;
-       meleetemp.think = shotgun_meleethink;
+       meleetemp.think = W_Shotgun_Melee_Think;
        meleetemp.nextthink = time + WEP_CVAR_SEC(shotgun, melee_delay) * W_WeaponRateFactor();
        W_SetupShot_Range(self, TRUE, 0, "", 0, WEP_CVAR_SEC(shotgun, damage), WEP_CVAR_SEC(shotgun, melee_range));
 }
@@ -188,7 +188,7 @@ void spawnfunc_weapon_shotgun(); // defined in t_items.qc
 
 .float shotgun_primarytime;
 
-float w_shotgun(float req)
+float W_Shotgun(float req)
 {
        switch(req)
        {
@@ -286,7 +286,7 @@ float w_shotgun(float req)
 #endif
 #ifdef CSQC
 .float prevric;
-float w_shotgun(float req)
+float W_Shotgun(float req)
 {
        switch(req)
        {