ItsMods
Disable Class Choice for one team - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Disable Class Choice for one team (/Thread-Disable-Class-Choice-for-one-team.html)



Disable Class Choice for one team - kobsen - 09-19-2011

I know the command is setclientDvar( "scr_disable_cac", 1 ), but how do you disable the class menu for only one team, or for humans only (not bots)?
Thanks
kobsen


RE: Disable Class Choice for one team - iAegle - 09-19-2011

Code:
setDvar( "g_allow_teamchange", 0 );

this will skip the team selection and enable auto assign


RE: Disable Class Choice for one team - JariZ - 09-19-2011

That's not what he ment


RE: Disable Class Choice for one team - iAegle - 09-19-2011

Code:
onPlayerConnected() { while( true ) { level waittill( "connected", player ); if( !player.pers[ "isBot" ] ) self [[level.allies]](); } }

?


RE: Disable Class Choice for one team - Tomsen1410 - 09-21-2011

he wanted that if he is on allies for example the classchoose menu shouldnt appear. i rhink he wanted that.


RE: Disable Class Choice for one team - Nekochan - 09-21-2011

self [[level.class]]("smg_mp"); ?


RE: Disable Class Choice for one team - kobsen - 09-22-2011

Yes, I am trying to just disable the class choice menu in the beginning for only the players, not the bots. I give the same weapon at the beginning to every player and the same weapon to all bots.
If i do the setclientDvar( "scr_disable_cac", 1 ), the bots suddenly have whatever weapon they want. Thus, I only want to disable class choice for humans.
The "self [[level.class]]("smg_mp")" doesnt seem to work either.


RE: Disable Class Choice for one team - Lemon - 03-19-2012

Bump Big Grin

I don't want zombies to see the create a class window every time they respawn.