r5024 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Nov 9 05:23:22 EST 2008


Author: div0
Date: 2008-11-09 05:23:22 -0500 (Sun, 09 Nov 2008)
New Revision: 5024

Modified:
   trunk/data/qcsrc/common/items.qc
Log:
make it not depend on an uncommitted fix to fteqcc yet... yes, I know there are now 28 more warnings. Can't help it.


Modified: trunk/data/qcsrc/common/items.qc
===================================================================
--- trunk/data/qcsrc/common/items.qc	2008-11-09 10:18:32 UTC (rev 5023)
+++ trunk/data/qcsrc/common/items.qc	2008-11-09 10:23:22 UTC (rev 5024)
@@ -84,15 +84,33 @@
 	return fixPriorityList(order, WEP_FIRST, WEP_LAST, complete);
 }
 
-#ifdef SVQC
-#define register_weapon(id,func,ammotype,i,normalweapon,canclimb,pickupbasevalue,modelname,shortname,wname) \
-	register_weapon_real(id,func,ammotype,i,normalweapon,canclimb,pickupbasevalue,modelname,shortname,wname)
-#else
-// no weapon funcs here!
-#define register_weapon(id,func,ammotype,i,normalweapon,canclimb,pickupbasevalue,modelname,shortname,wname) \
-	register_weapon_real(id,w_null,ammotype,i,normalweapon,canclimb,pickupbasevalue,modelname,shortname,wname)
-#endif
+// FTEQCC SUCKS // #ifdef SVQC
+// FTEQCC SUCKS // #define register_weapon(id,func,ammotype,i,normalweapon,canclimb,pickupbasevalue,modelname,shortname,wname) \
+// FTEQCC SUCKS // 	register_weapon_real(id,func,ammotype,i,normalweapon,canclimb,pickupbasevalue,modelname,shortname,wname)
+// FTEQCC SUCKS // #else
+// FTEQCC SUCKS // // no weapon funcs here!
+// FTEQCC SUCKS // #define register_weapon(id,func,ammotype,i,normalweapon,canclimb,pickupbasevalue,modelname,shortname,wname) \
+// FTEQCC SUCKS // 	register_weapon_real(id,w_null,ammotype,i,normalweapon,canclimb,pickupbasevalue,modelname,shortname,wname)
+// FTEQCC SUCKS // #endif
+// put this code back in if fteqcc gets fixed
 
+#define register_weapon register_weapon_real
+float(float) w_laser;
+float(float) w_shotgun;
+float(float) w_uzi;
+float(float) w_glauncher;
+float(float) w_electro;
+float(float) w_crylink;
+float(float) w_nex;
+float(float) w_hagar;
+float(float) w_rlauncher;
+float(float) w_porto;
+float(float) w_minstanex;
+float(float) w_hook;
+float(float) w_seeker;
+float(float) w_hlac;
+// I know this causes lots of warnings, but well, alternative code is above - use that code if fteqcc got fixed
+
 void RegisterWeapons()
 {
 	// %weaponaddpoint




More information about the nexuiz-commits mailing list