]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add shotgun spawnfunc
authorSamual Lenks <samual@xonotic.org>
Sun, 5 Jan 2014 17:37:22 +0000 (12:37 -0500)
committerSamual Lenks <samual@xonotic.org>
Sun, 5 Jan 2014 17:37:22 +0000 (12:37 -0500)
qcsrc/common/weapons/w_shotgun.qc

index 2983f4db37f496b09cdd1df12f2843c13f4e04ec..a304240bf18e0f239de972284d615f11f6da30a7 100644 (file)
@@ -48,6 +48,7 @@ SHOTGUN_SETTINGS(WEP_ADD_CVAR, WEP_ADD_PROP)
 #endif
 #else
 #ifdef SVQC
+void spawnfunc_weapon_shotgun(void) { weapon_defaultspawnfunc(WEP_SHOTGUN); }
 
 void W_Shotgun_Attack (void)
 {
@@ -187,8 +188,6 @@ void W_Shotgun_Attack2 (void)
        W_SetupShot_Range(self, TRUE, 0, "", 0, WEP_CVAR_SEC(shotgun, damage), WEP_CVAR_SEC(shotgun, melee_range));
 }
 
-void spawnfunc_weapon_shotgun(); // defined in t_items.qc
-
 .float shotgun_primarytime;
 
 float W_Shotgun(float req)