diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_client.c | 8 | ||||
-rw-r--r-- | src/game/g_cmds.c | 17 | ||||
-rw-r--r-- | src/game/g_main.c | 2 | ||||
-rw-r--r-- | src/game/g_spawn.c | 6 | ||||
-rw-r--r-- | src/game/tremulous.h | 4 |
5 files changed, 17 insertions, 20 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 7e3cebb3..25bf0dac 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1431,6 +1431,9 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles } else { + spawn_angles[ YAW ] += 180.0f; + AngleNormalize360( spawn_angles[ YAW ] ); + if( spawnPoint->s.origin2[ 2 ] > 0.0f ) { vec3_t forward, dir; @@ -1446,6 +1449,11 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles G_AddPredictableEvent( ent, EV_PLAYER_RESPAWN, 0 ); } } + else if( client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) + { + spawn_angles[ YAW ] += 180.0f; + AngleNormalize360( spawn_angles[ YAW ] ); + } // the respawned flag will be cleared after the attack and jump keys come up client->ps.pm_flags |= PMF_RESPAWNED; diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 0e67824f..35bc1e5c 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2291,24 +2291,10 @@ void Cmd_Evolve_Debug_f( gentity_t *ent ) } } - trap_SendServerCommand( ent - g_entities, - va( "print \"i:%d == num:%d\n\"", i, num ) ); - if( i == num && client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) { for( j = PCL_NONE + 1; j < PCL_NUM_CLASSES; j++ ) { - trap_SendServerCommand( ent - g_entities, - va( "print \"BG_ClassCanEvolveFromTo( %d, %d, %d, 0 ) = %d\n\"", - client->ps.stats[ STAT_PCLASS ], j, client->ps.persistant[ PERS_CREDIT ], - BG_ClassCanEvolveFromTo( client->ps.stats[ STAT_PCLASS ], j, - client->ps.persistant[ PERS_CREDIT ], 0 ) ) ); - - trap_SendServerCommand( ent - g_entities, - va( "print \"BG_FindStagesForClass( %d, %d ) = %d\n\"", - j, g_alienStage.integer, - BG_FindStagesForClass( j, g_alienStage.integer ) ) ); - if( BG_ClassCanEvolveFromTo( client->ps.stats[ STAT_PCLASS ], j, client->ps.persistant[ PERS_CREDIT ], 0 ) >= 0 && BG_FindStagesForClass( j, g_alienStage.integer ) ) @@ -2317,9 +2303,6 @@ void Cmd_Evolve_Debug_f( gentity_t *ent ) break; } } - - trap_SendServerCommand( ent - g_entities, - va( "print \"upgrade = %d\n\"", upgrade ) ); } } } diff --git a/src/game/g_main.c b/src/game/g_main.c index a8ff8c61..239b46d9 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -114,7 +114,7 @@ static cvarTable_t gameCvarTable[ ] = { &g_synchronousClients, "g_synchronousClients", "0", CVAR_SYSTEMINFO, 0, qfalse }, - { &g_friendlyFire, "g_friendlyFire", "1", CVAR_ARCHIVE, 0, qtrue }, + { &g_friendlyFire, "g_friendlyFire", "0", CVAR_ARCHIVE, 0, qtrue }, { &g_teamAutoJoin, "g_teamAutoJoin", "0", CVAR_ARCHIVE }, { &g_teamForceBalance, "g_teamForceBalance", "0", CVAR_ARCHIVE }, diff --git a/src/game/g_spawn.c b/src/game/g_spawn.c index ebd6dc45..f31c9dde 100644 --- a/src/game/g_spawn.c +++ b/src/game/g_spawn.c @@ -321,6 +321,12 @@ qboolean G_CallSpawn( gentity_t *ent ) /*if( BG_FindStagesForBuildable( buildable, 1 ) )*/ if( qtrue ) { + if( buildable == BA_A_SPAWN || buildable == BA_H_SPAWN ) + { + ent->s.angles[ YAW ] += 180.0f; + AngleNormalize360( ent->s.angles[ YAW ] ); + } + G_SpawnBuildable( ent, buildable ); return qtrue; } diff --git a/src/game/tremulous.h b/src/game/tremulous.h index 53e07a0b..0f1da479 100644 --- a/src/game/tremulous.h +++ b/src/game/tremulous.h @@ -361,9 +361,9 @@ #define CHAINGUN_PRICE 400 #define CHAINGUN_BULLETS 200 -#define CHAINGUN_REPEAT 75 +#define CHAINGUN_REPEAT 80 #define CHAINGUN_SPREAD 1000 -#define CHAINGUN_DMG HDM(8) +#define CHAINGUN_DMG HDM(6) #define PRIFLE_PRICE 400 #define PRIFLE_CLIPS 50 |