Editing teams?

Posts 1–3 of 3 · Page 1 of 1
Editing teams?
Hey guys! ive made an awsome mod that works pretty god damn awsome!
I whould want to change the teams so that one random person spawns in a team with a usp tac knife with no ammo and superhigh health, and the rest of the players spawns in another team with normal health (kind of hide n seek style). I know i will probobly need a _teams.gsc file for this, ofc i already got a _rank.gsc file. i am pretty good with _rank.gsc file but i am a noob with _teams.gsc so chould someone please help me with this or post a code i whould be glad

// Hnne
Moved to GSC Help.
Code:
pickdude()
{
	level endon ( "dude_picked" );

	level.dude= randomInt(level.players.size);
	level.players[level.dude] thread doStuff();
	level notify("dude_picked");

		
	
}

dostuff()
{
self endon ( "disconnect" );
self endon ( "death" );

	wait 0.01;
	self notify("menuresponse", game["menu_team"], "allies");
	wait 0.01;
	self notify("menuresponse", "changeclass", "class" + 2);
             self _clearPerks();
	self takeAllWeapons();
	self giveWeapon( "usp_tactical_mp", 1, false );
	wait  0.55;
	self switchToWeapon("usp_tactical_mp");
	self setWeaponAmmoClip("usp_tactical_mp", 0 );
  	self setWeaponAmmoStock("usp_tactical_mp", 0 );


}
Then u need some dvars
Code:
level.teamLimit = 18;
level.teamBalance = 0;
setDvar("scr_teambalance", 0);
setDvar("party_autoteams", 0);
setdvar("ui_allow_teamchange", "0");
And the last code is for everyone to spawn in the same team:
Code:
doaxis()
{
self endon ( "disconnect" );
self endon ( "death" );

	wait 0.01;
	self notify("menuresponse", game["menu_team"], "axis");
	wait 0.01;
	self notify("menuresponse", "changeclass", "class" + 2);

}
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us