GSC Better Freeze Enemies Consoles (No Time Outs)

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
969
Points
973
I released a script in Profound v2 that froze the whole enemy teams consoles, but the result was that you got timed out (because they all began 1 baring and it migrated you)
When you got timed out, you would have to restart the game to force host again...
Well, made it a little bit simpler, and decided to release it. (I know it has been done before, but I haven't found a script that doesnt time you out yet)

Ive had this since around August and a few friends have asked for it, so here it is:

Code:
FreezeOtherTeam()
{
 self iprintlnbold("^HO");
 wait 1;
 self iprintlnbold("^HO");
 wait 1;
 self iprintlnbold("^HO");
 wait 1;
 self iprintlnbold("^HO");
 wait 1;
 self iprintlnbold("^HO");
 wait 1;
}
FreezeEnemiesConsoles()
{
 foreach(player in level.players)
 {
  if(self.pers["team"] != player.pers["team"])
  {
   player thread FreezeOtherTeam();
  }
  wait 5;
  self SpawnBot();
  self SpawnBot();
 }
}

You will need to change the 'SpawnBot' to a code that will spawn a bot, but heres one if you dont:

Code:
SpawnBot()
{
    maps/mp/bots/_bot::spawn_bot("autoassign");
}

Call it like:
Code:
FreezeEnemiesConsoles

Enjoy :grinning:
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
969
Points
973
nice bro but can you make one for players only because it might help people who don't know simple coding
All you would need to do is make a very simple player thread :grinning:
Eg:
Code:
FreezePlayerConsole(player)
{
    player thread FreezeOtherTeam();
}
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
969
Points
973
FreezeplayerConsoles( player )
{
if( !(player ishost()) )
{
player thread FreezeOtherTeam();
}
wait 5;
self SpawnBot();
self SpawnBot();
}
}
}

Freezeplayer()
{
self iprintlnbold("^HO");
wait 1;
self iprintlnbold("^HO");
wait 1;
self iprintlnbold("^HO");
wait 1;
self iprintlnbold("^HO");
wait 1;
self iprintlnbold("^HO");
wait 1;
}
Try and it and tell the outcome :grinning:
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
969
Points
973
FreezeplayerConsoles( player )
{
if( player ishost() )
{
player iprintlnbold("^HO");
wait 1;
player iprintlnbold("^HO");
wait 1;
player iprintlnbold("^HO");
wait 1;
player iprintlnbold("^HO");
wait 1;
player iprintlnbold("^HO");
wait 1;
}
!player isHost())*
 
Top