[Tutorial]Remove ''match begins in'' +message.

Posts 1–15 of 15 · Page 1 of 1
[Tutorial]Remove ''match begins in'' +message.
This will disable the message(s) and the timer from the beginning in all gametypes. ( not tested if it works in all gametypes )
This might be useless or whatever you guys think. Or start flaming... *please dont*
But in case you EVER need it, you can find it here.
*just trying to help, hehe.*

Note: if this is useless, will a mod delete my thread please? :]

Enable/disable the movement:
This will enable or disable the movement of the player, depends on what you want.
  • Open the file "_playerlogic.gsc"
  • Search for the threadname:
    Code:
    spawnPlayer()
  • Then scroll or search for this piece of code:
    Code:
    	if ( !gameFlag( "prematch_done" ) )
    		self freezeControlsWrapper( true );
    	else
    		self freezeControlsWrapper( false );
  • Change the red marked to false to enable the movement, change it to true to disable the movement.




Remove the message:
To remove the message ''the match begins in do the following.
  • Open the file "_gamelogic.gsc"
  • Search for the threadname:
    Code:
    prematchPeriod()
  • Then scroll or search for this piece of code:
    Code:
    	if ( level.prematchPeriod > 0 )
    	{
    		if ( level.console )
    		{
    			thread matchStartTimer( "match_starting_in", level.prematchPeriod);
    			wait ( level.prematchPeriod );
    		}
    		else
    		{
    			matchStartTimerPC();
    		}
    	}
    	else
    	{
    		matchStartTimerSkip();
    	}
  • Just change it to this:
    Code:
    	if ( level.prematchPeriod > 0 )
    	{
    		if ( level.console )
    		{
    			matchStartTimerSkip();
    			//thread matchStartTimer( "match_starting_in", level.prematchPeriod );
    			//wait ( level.prematchPeriod );
    		}
    		else
    		{
    			matchStartTimerSkip();
    			//matchStartTimerPC();
    		}
    	}
    	else
    	{
    		matchStartTimerSkip();
    	}

Note: This will also disable ''eliminate the enemy players.''


And tada you're timer + message is gone!
Have fun...
haha thx anyway
i think people who host mods will enjoy this
Thx dude.
No problem, have fun!
I've replaced it with the ''Selecting Zombie In: '' the exact same way as the ''Match begins in''
Thanks 4 da info ;D
Thanks .
it wolld be more fun if u would defreeze the host only and make the timer longer so everybody is like wtf just happend? cause everyone's control's are frozen and u can walk
Quote Originally Posted by rkaf View Post
it wolld be more fun if u would defreeze the host only and make the timer longer so everybody is like wtf just happend? cause everyone's control's are frozen and u can walk
easy, use the command: if(self.host) (i know it isnt that way, but something like that too lazy to check it out) and then disable movement. then at the end put:

} else {
}


awesome find mate, cheers
Code:
self freezeControlsWrapper( true );
matchStartTimerSkip();
Wouldn't putting this in onPlayerSpawned do the same?
Quote Originally Posted by rkaf View Post
it wolld be more fun if u would defreeze the host only and make the timer longer so everybody is like wtf just happend? cause everyone's control's are frozen and u can walk
Azumikkel already posted a small easy tut about it

Quote Originally Posted by AZUMIKKEL View Post
Code:
self freezeControlsWrapper( true );
matchStartTimerSkip();
Wouldn't putting this in onPlayerSpawned do the same?
That's also a way!
if(self isHost())
freezeControlsWrapper( false );
else
freezeControlsWrapper( true );
Quote Originally Posted by AZUMIKKEL View Post
if(self isHost())
freezeControlsWrapper( false );
else
freezeControlsWrapper( true );
ye, i was just lazy to do it
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us