From a6ac7de859b998f277f44c2b1dbd61b65acdca4d Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 13:03:11 +0000 Subject: Make humans raise their weapon when they spawn This is a purely cosmetic change that I thought I'd experiment with. Note that the previous resetting of ps.weapon was redundant. --- src/game/g_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game/g_client.c') diff --git a/src/game/g_client.c b/src/game/g_client.c index 51972395..ea4aab82 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1590,7 +1590,9 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles trap_LinkEntity( ent ); // force the base weapon up - client->ps.weapon = WP_NONE; + if( client->pers.teamSelection == TEAM_HUMANS ) + G_ForceWeaponChange( ent, weapon ); + client->ps.weaponstate = WEAPON_READY; } -- cgit