• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable Class Choice for one team
#1
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
  Reply
#2
Code:
setDvar( "g_allow_teamchange", 0 );

this will skip the team selection and enable auto assign
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

  Reply
#3
That's not what he ment
  Reply
#4
Code:
onPlayerConnected()
{
    while( true )
    {
        level waittill( "connected", player );

        if( !player.pers[ "isBot" ] )
            self [[level.allies]]();
    }
}

?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

  Reply
#5
he wanted that if he is on allies for example the classchoose menu shouldnt appear. i rhink he wanted that.
[Image: ctoc.jpg]
  Reply
#6
self [[level.class]]("smg_mp"); ?
C++/Obj-C developer. Neko engine wip
Steam: Click
  Reply
#7
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.
  Reply
#8
Bump Big Grin

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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 1,958 04-24-2014, 19:31
Last Post: Casper
  Disable Planting on Bomb clemi555 4 1,315 11-04-2013, 07:59
Last Post: clemi555
  [Release] TeamCounter class 8q4s8 3 3,269 10-15-2013, 18:14
Last Post: [HARD] Tony.
  Help How to disable auto balance? .sepultura. 3 2,062 10-07-2013, 19:44
Last Post: Nekochan
Question Help Team DAMAGE offhand E-losev 0 1,197 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 2,267 09-12-2013, 17:32
Last Post: Yamato
  Name Team CheGuevara 1 1,494 06-01-2013, 14:15
Last Post: Yamato
  [Release] Team Customizer iPaddie 35 16,258 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 2,465 04-10-2013, 15:23
Last Post: x1412
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 2,955 03-15-2013, 12:53
Last Post: lammv

Forum Jump:


Users browsing this thread: 1 Guest(s)