summaryrefslogtreecommitdiff
path: root/src/game/bg_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r--src/game/bg_misc.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c
index a7f4d440..d9dedb63 100644
--- a/src/game/bg_misc.c
+++ b/src/game/bg_misc.c
@@ -2039,6 +2039,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2060,6 +2061,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2081,6 +2083,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2102,6 +2105,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2123,6 +2127,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2144,6 +2149,7 @@ weaponAttributes_t bg_weapons[ ] =
qtrue, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2165,6 +2171,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2186,6 +2193,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2207,6 +2215,7 @@ weaponAttributes_t bg_weapons[ ] =
qtrue, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 10000, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2228,6 +2237,7 @@ weaponAttributes_t bg_weapons[ ] =
qtrue, //qboolean hasAltMode;
qfalse, //qboolean synced;
qtrue, //qboolean purchasable;
+ 5000, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2249,6 +2259,7 @@ weaponAttributes_t bg_weapons[ ] =
qtrue, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 10000, //int buildDelay;
WUT_ALIENS //WUTeam_t team;
},
{
@@ -2270,6 +2281,7 @@ weaponAttributes_t bg_weapons[ ] =
qtrue, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 5000, //int buildDelay;
WUT_ALIENS //WUTeam_t team;
},
{
@@ -2291,6 +2303,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_ALIENS //WUTeam_t team;
},
{
@@ -2312,6 +2325,7 @@ weaponAttributes_t bg_weapons[ ] =
qtrue, //qboolean hasAltMode;
qtrue, //qboolean synced;
qfalse, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_ALIENS //WUTeam_t team;
},
{
@@ -2333,6 +2347,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_ALIENS //WUTeam_t team;
},
{
@@ -2354,6 +2369,7 @@ weaponAttributes_t bg_weapons[ ] =
qtrue, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_ALIENS //WUTeam_t team;
},
{
@@ -2375,6 +2391,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_ALIENS //WUTeam_t team;
},
{
@@ -2396,6 +2413,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_ALIENS //WUTeam_t team;
},
{
@@ -2417,6 +2435,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
},
{
@@ -2438,6 +2457,7 @@ weaponAttributes_t bg_weapons[ ] =
qfalse, //qboolean hasAltMode;
qfalse, //qboolean synced;
qfalse, //qboolean purchasable;
+ 0, //int buildDelay;
WUT_HUMANS //WUTeam_t team;
}
};
@@ -2770,6 +2790,26 @@ qboolean BG_FindPurchasableForWeapon( int weapon )
/*
==============
+BG_FindBuildDelayForWeapon
+==============
+*/
+int BG_FindBuildDelayForWeapon( int weapon )
+{
+ int i;
+
+ for( i = 0; i < bg_numWeapons; i++ )
+ {
+ if( bg_weapons[ i ].weaponNum == weapon )
+ {
+ return bg_weapons[ i ].buildDelay;
+ }
+ }
+
+ return 0;
+}
+
+/*
+==============
BG_FindTeamForWeapon
==============
*/