I would like to know if there is a (not to complicated
Thanks in advance!
Code: Select all
	
client->ps.stats[STAT_WEAPONS] = ( 1 << WP_MACHINEGUN );
	if ( g_gametype.integer == GT_TEAM ) {
		client->ps.ammo[WP_MACHINEGUN] = 0;//WW was 50
	} else {
		client->ps.ammo[WP_MACHINEGUN] = 0;//WW was 100
	}
Code: Select all
client->ps.weapon = WP_GAUNTLET;//WW was WP_MACHINEGUN
The one way would be to create a cvar in the code.Perle wrote:Okay. This post is "only" 12 Years old. Is there a way to "disable" the gauntlet?
Code: Select all
vmCvar_t	g_disableGauntlet;Code: Select all
{ &g_disableGauntlet, "g_disableGauntlet", "0", CVAR_SERVERINFO | CVAR_USERINFO | CVAR_LATCH, 0, qfalse  },Code: Select all
if ( g_disableGauntlet.integer >= 1 )
{
	G_Printf( "Gauntlet weapon disabled, to enable: 'g_disableGauntlet 0' and restart \n" );
	va("print \"Gauntlet weapon disabled, to enable: 'g_disableGauntlet 0' and restart.\n\"");
	trap_Cvar_Set( "g_disableGauntlet", "1" );
	trap_Cvar_Update( &g_disableGauntlet );
}Code: Select all
extern vmCvar_t g_disableGauntlet;Code: Select all
	client->ps.stats[STAT_WEAPONS] |= ( 1 << WP_GAUNTLET );
	client->ps.ammo[WP_GAUNTLET] = -1;Code: Select all
if( g_disableGauntlet.integer <= 0 )
{
	client->ps.stats[STAT_WEAPONS] |= ( 1 << WP_GAUNTLET );
	client->ps.ammo[WP_GAUNTLET] = -1;
}