Locking fps at 125
Moderator: Core Staff
- 
				rB|Liam*
 - CJ Fan

 - Posts: 172
 - Joined: October 21st, 2010, 7:45 pm
 - Location: England
 - Contact:
 
Locking fps at 125
Hi everyone. Im close to finishing my 2nd map and as i only get 125 thats what fps the whole map is, im wondering if someone could post a script for me that locks the fps at 125? It would be much appreciated, thanks 
			
			
									
									Partnered Channel:
http://www.youtube.com/user/RaCeY2k8
Tutorials:
http://www.youtube.com/TheTutGuyHD
Twitter:
http://www.twitter.com/RaCeY2k8
						http://www.youtube.com/user/RaCeY2k8
Tutorials:
http://www.youtube.com/TheTutGuyHD
Twitter:
http://www.twitter.com/RaCeY2k8
- 
				iCYsoldier
														 - CJ Worshipper

 - Posts: 289
 - Joined: December 5th, 2009, 7:12 am
 - Location: Australia
 
Re: Locking fps at 125
You can use the setClientDvar function to set the players' FPS at 125 with:
self setClientDvar("com_maxfps", 125);
Put this into a loop with a small wait statement, for example:
Run this 'fps' function on each player in the server, and it will not let them change their fps.
			
			
													self setClientDvar("com_maxfps", 125);
Put this into a loop with a small wait statement, for example:
Code: Select all
fps()
{
    while(true)
    {
         self setClientDvar("com_maxfps", 125);
         wait 0.1;
    }
}
					Last edited by iCYsoldier on May 15th, 2011, 7:46 am, edited 2 times in total.
									
			
									
						- 
				rB|Liam*
 - CJ Fan

 - Posts: 172
 - Joined: October 21st, 2010, 7:45 pm
 - Location: England
 - Contact:
 
Re: Locking fps at 125
thanks
			
			
									
									Partnered Channel:
http://www.youtube.com/user/RaCeY2k8
Tutorials:
http://www.youtube.com/TheTutGuyHD
Twitter:
http://www.twitter.com/RaCeY2k8
						http://www.youtube.com/user/RaCeY2k8
Tutorials:
http://www.youtube.com/TheTutGuyHD
Twitter:
http://www.twitter.com/RaCeY2k8