Well, i got work but:
WARNING: Held items conflict with weapon 11
And code i edited:
g_cmds_c
else if( ent->client->pers.teamSelection == PTE_HUMANS )
{
//set the item to spawn with
if( !Q_stricmp( s, BG_FindNameForWeapon( WP_MACHINEGUN ) ) &&
BG_WeaponIsAllowed( WP_MACHINEGUN ) )
{
ent->client->pers.humanItemSelection = WP_PAIN_SAW;
}
else if( !Q_stricmp( s, BG_FindNameForWeapon( WP_HBUILD ) ) &&
BG_WeaponIsAllowed( WP_HBUILD ) )
{
ent->client->pers.humanItemSelection = WP_PAIN_SAW;
}
else if( !Q_stricmp( s, BG_FindNameForWeapon( WP_HBUILD2 ) ) &&
BG_WeaponIsAllowed( WP_HBUILD2 ) &&
BG_FindStagesForWeapon( WP_HBUILD2, g_humanStage.integer ) )
{
ent->client->pers.humanItemSelection = WP_PAIN_SAW;
}
else
{
trap_SendServerCommand( ent-g_entities,
"print \"Unknown starting item\n\"" );
return;
}
g_client.c
// clear entity values
if( ent->client->pers.classSelection == PCL_HUMAN )
{
BG_AddWeaponToInventory( WP_PAIN_SAW, client->ps.stats );
BG_AddUpgradeToInventory( UP_LIGHTARMOUR, client->ps.stats );
BG_AddUpgradeToInventory( UP_HELMET, client->ps.stats );
BG_AddUpgradeToInventory( UP_MEDKIT, client->ps.stats );
weapon = client->pers.humanItemSelection;
}
else if( client->sess.sessionTeam != TEAM_SPECTATOR )
weapon = BG_FindStartWeaponForClass( ent->client->pers.classSelection );
else
weapon = WP_NONE;