diff options
author | Tony J. White <tjw@tjw.org> | 2007-03-21 22:02:57 +0000 |
---|---|---|
committer | Tony J. White <tjw@tjw.org> | 2007-03-21 22:02:57 +0000 |
commit | 426e5df1d31265646f193c5f345efcdd6fc93779 (patch) | |
tree | 3c12d42a4bd5e8f625d9f760aab9399678d67312 /src/game/bg_misc.c | |
parent | 81be9016078b1222a778005d409344f74bfcbd9b (diff) |
* new 2D status bars for buildings
* spawns never show the ¨no power¨ icon since they don't need reactor/overmind
* alien buildings that require the overmind to function will now show
the "no power¨ icon when the overmind is down
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r-- | src/game/bg_misc.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index 322aaa3b..fd8b87d7 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -67,6 +67,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; ASPAWN_CREEPSIZE, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -102,6 +103,7 @@ buildableAttributes_t bg_buildableList[ ] = qtrue, //qboolean creepTest; BARRICADE_CREEPSIZE, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -137,6 +139,7 @@ buildableAttributes_t bg_buildableList[ ] = qtrue, //qboolean creepTest; BOOSTER_CREEPSIZE, //int creepSize; qfalse, //qboolean dccTest; + qtrue, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -172,6 +175,7 @@ buildableAttributes_t bg_buildableList[ ] = qtrue, //qboolean creepTest; ACIDTUBE_CREEPSIZE, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -207,6 +211,7 @@ buildableAttributes_t bg_buildableList[ ] = qtrue, //qboolean creepTest; HIVE_CREEPSIZE, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -242,6 +247,7 @@ buildableAttributes_t bg_buildableList[ ] = qtrue, //qboolean creepTest; TRAPPER_CREEPSIZE, //int creepSize; qfalse, //qboolean dccTest; + qtrue, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -277,6 +283,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; OVERMIND_CREEPSIZE, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qtrue //qboolean reactorTest; }, { @@ -312,6 +319,7 @@ buildableAttributes_t bg_buildableList[ ] = qtrue, //qboolean creepTest; HOVEL_CREEPSIZE, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qtrue //qboolean reactorTest; }, { @@ -347,6 +355,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; 0, //int creepSize; qfalse, //qboolean dccTest; + qtrue, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -382,6 +391,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; 0, //int creepSize; qfalse, //qboolean dccTest; + qtrue, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -419,6 +429,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; 0, //int creepSize; qfalse, //qboolean dccTest; + qtrue, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -454,6 +465,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; 0, //int creepSize; qtrue, //qboolean dccTest; + qtrue, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -489,6 +501,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; 0, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -524,6 +537,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; 0, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qfalse //qboolean reactorTest; }, { @@ -559,6 +573,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; 0, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qtrue //qboolean reactorTest; }, { @@ -594,6 +609,7 @@ buildableAttributes_t bg_buildableList[ ] = qfalse, //qboolean creepTest; 0, //int creepSize; qfalse, //qboolean dccTest; + qfalse, //qboolean transparentTest; qfalse //qboolean reactorTest; } }; @@ -1299,6 +1315,25 @@ static buildableAttributeOverrides_t *BG_FindOverrideForBuildable( int bclass ) } /* +============== +BG_FindTransparentTestForBuildable +============== +*/ +qboolean BG_FindTransparentTestForBuildable( int bclass ) +{ + int i; + + for( i = 0; i < bg_numBuildables; i++ ) + { + if( bg_buildableList[ i ].buildNum == bclass ) + { + return bg_buildableList[ i ].transparentTest; + } + } + return qfalse; +} + +/* ====================== BG_ParseBuildableFile |