diff options
author | Tim Angus <tim@ngus.net> | 2004-01-04 03:29:06 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2004-01-04 03:29:06 +0000 |
commit | 5fbfe75aa0cdf3a38b0e30a23156fa5affc33996 (patch) | |
tree | ae9e5782776c39c8a179331d34eb7956b1273802 /src/game/bg_misc.c | |
parent | 48342c98ae336ca268ddbf5acf66bfeb0b18a91b (diff) |
* Rather serious remote client particle system bug fixed
* Buildable overrides now actually work
* Helmet is now a skin replacement instead of model
* Model destinations fixed up in the entities.def file
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r-- | src/game/bg_misc.c | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index 4eb0e9d9..185d58b7 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -22,10 +22,10 @@ buildableAttributes_t bg_buildableList[ ] = { { BA_A_SPAWN, //int buildNum; - "bioegg", //char *buildName; + "eggpod", //char *buildName; "Egg", //char *humanName; "team_alien_spawn", //char *entityName; - { "models/buildables/bioegg/bioegg.md3", 0, 0, 0 }, + { "models/buildables/eggpod/eggpod.md3", 0, 0, 0 }, { -15, -15, -15 }, //vec3_t mins; { 15, 15, 15 }, //vec3_t maxs; 0.0f, //float zOffset; @@ -229,7 +229,7 @@ buildableAttributes_t bg_buildableList[ ] = "overmind", //char *buildName; "Overmind", //char *humanName; "team_alien_overmind", //char *entityName; - { "models/buildables/hivemind/hivemind.md3", 0, 0, 0 }, + { "models/buildables/overmind/overmind.md3", 0, 0, 0 }, { -45, -45, -15 }, //vec3_t mins; { 45, 45, 95 }, //vec3_t maxs; 0.0f, //float zOffset; @@ -294,10 +294,10 @@ buildableAttributes_t bg_buildableList[ ] = }, { BA_H_SPAWN, //int buildNum; - "replicator", //char *buildName; - "Replicator", //char *humanName; + "telenode", //char *buildName; + "Telenode", //char *humanName; "team_human_spawn", //char *entityName; - { "models/buildables/replicator/replicator.md3", 0, 0, 0 }, + { "models/buildables/telenode/telenode.md3", 0, 0, 0 }, { -40, -40, -4 }, //vec3_t mins; { 40, 40, 4 }, //vec3_t maxs; 0.0f, //float zOffset; @@ -466,10 +466,10 @@ buildableAttributes_t bg_buildableList[ ] = }, { BA_H_ARMOURY, //int buildNum; - "mcu", //char *buildName; + "arm", //char *buildName; "Armoury", //char *humanName; "team_human_armoury", //char *entityName; - { "models/buildables/mcu/mcu.md3", 0, 0, 0 }, + { "models/buildables/arm/arm.md3", 0, 0, 0 }, { -40, -40, -13 }, //vec3_t mins; { 40, 40, 50 }, //vec3_t maxs; 0.0f, //float zOffset; @@ -677,6 +677,9 @@ char *BG_FindModelsForBuildable( int bclass, int modelNum ) { int i; + if( bg_buildableOverrideList[ bclass ].models[ modelNum ][ 0 ] != 0 ) + return bg_buildableOverrideList[ bclass ].models[ modelNum ]; + for( i = 0; i < bg_numBuildables; i++ ) { if( bg_buildableList[ i ].buildNum == bclass ) @@ -701,10 +704,20 @@ void BG_FindBBoxForBuildable( int bclass, vec3_t mins, vec3_t maxs ) if( bg_buildableList[ i ].buildNum == bclass ) { if( mins != NULL ) + { VectorCopy( bg_buildableList[ i ].mins, mins ); + + if( VectorLength( bg_buildableOverrideList[ bclass ].mins ) ) + VectorCopy( bg_buildableOverrideList[ bclass ].mins, mins ); + } if( maxs != NULL ) + { VectorCopy( bg_buildableList[ i ].maxs, maxs ); + + if( VectorLength( bg_buildableOverrideList[ bclass ].maxs ) ) + VectorCopy( bg_buildableOverrideList[ bclass ].maxs, maxs ); + } return; } @@ -726,6 +739,9 @@ float BG_FindZOffsetForBuildable( int bclass ) { int i; + if( bg_buildableOverrideList[ bclass ].zOffset != 0.0f ) + return bg_buildableOverrideList[ bclass ].zOffset; + for( i = 0; i < bg_numBuildables; i++ ) { if( bg_buildableList[ i ].buildNum == bclass ) @@ -1780,7 +1796,6 @@ classAttributes_t bg_classList[ ] = 100.0f, //float stopSpeed; 170.0f, //float jumpMagnitude; { PCL_NONE, PCL_NONE, PCL_NONE }, //int children[ 3 ]; - 0, //int timetoevolve; BMOFO_VALUE //int value; }, { @@ -1818,7 +1833,6 @@ classAttributes_t bg_classList[ ] = 100.0f, //float stopSpeed; 220.0f, //float jumpMagnitude; { PCL_NONE, PCL_NONE, PCL_NONE }, //int children[ 3 ]; - 0, //int timetoevolve; 0 //int value; }, { @@ -1833,7 +1847,7 @@ classAttributes_t bg_classList[ ] = "bsuit", ( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), { 0, 0, 0 }, { 0, 0, 0, }, { 0, 0, 0, }, { 0, 0, 0, }, { 0, 0, 0, }, 0.0f, 0, 0, 0, 0.0f, 0, 0, WP_NONE, 0.0f, 0, - 0.0f, 1.0f, 0, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 270.0f, { PCL_NONE, PCL_NONE, PCL_NONE }, 0, 0 + 0.0f, 1.0f, 0, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 270.0f, { PCL_NONE, PCL_NONE, PCL_NONE }, 0 } }; @@ -3084,8 +3098,8 @@ weaponAttributes_t bg_weapons[ ] = 0, //int price; ( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages SLOT_WEAPON, //int slots; - "venom", //char *weaponName; - "Venom", //char *weaponHumanName; + "bite", //char *weaponName; + "Bite", //char *weaponHumanName; 0, //int quan; 0, //int clips; 0, //int maxClips; |