Author |
Topic: Forcing FPS |
IzNoGoD |
General Member Since: Nov 29, 2008 Posts: 694 Last: Nov 10, 2012 [view latest posts] |
|
|
Category: CoD2 Scripting Posted: Friday, Aug. 31, 2012 01:45 pm |
|
Tally writes...Quote: IzNoGoD writes...Quote: Just check the fps to be either 250, 125 or 333.
If any of those, just keep forcing that one.
If none of those, just force one of above fps.
Also, after initially determining the above fps, set the fps to 10000, above the reach of normal com_maxfps. This to determine who has changed their cod2mp_s.exe file to have the com_maxfps value name changed. Kick the players that have 10000 fps, just like masterthomy did in the mod you copy pasted in the first post.
How can you set com_maxfps above its maximum range? It's 0 to 1000. Go above that and the dvar stays unchanged.
Or am I misunderstanding you?
If you change the com_maxfps variable in the .exe file of the cod2 mp, you cannot be forced a certain fps, but it will show up as your com_maxfps var is not limited to 1000, and can reach 10000 if the script forces it on you. Thats exactly the way to detect these things.
The way you should do this:
detect fps to be either 125, 250, 333 or none of those.
If 125, force 125,
if 250, force 250,
if 333, force 333,
if none, force 125.
After detection, set it to 10000 for a short time.
Now, detect fps. If its 1000, the player doesnt cheat.
If its 10000, the player cheats and should be kicked/banned/whatever.
If not cheating, continue forcing earlier established fps to force. |
|
|
|
Tally |
General Member Since: Apr 21, 2005 Posts: 819 Last: Oct 26, 2012 [view latest posts] |
|
|
Category: CoD2 Scripting Posted: Friday, Aug. 31, 2012 01:50 pm |
|
IzNoGoD writes...Quote: Tally writes...Quote: IzNoGoD writes...Quote: Just check the fps to be either 250, 125 or 333.
If any of those, just keep forcing that one.
If none of those, just force one of above fps.
Also, after initially determining the above fps, set the fps to 10000, above the reach of normal com_maxfps. This to determine who has changed their cod2mp_s.exe file to have the com_maxfps value name changed. Kick the players that have 10000 fps, just like masterthomy did in the mod you copy pasted in the first post.
How can you set com_maxfps above its maximum range? It's 0 to 1000. Go above that and the dvar stays unchanged.
Or am I misunderstanding you?
If you change the com_maxfps variable in the .exe file of the cod2 mp, you cannot be forced a certain fps, but it will show up as your com_maxfps var is not limited to 1000, and can reach 10000 if the script forces it on you. Thats exactly the way to detect these things.
The way you should do this:
detect fps to be either 125, 250, 333 or none of those.
If 125, force 125,
if 250, force 250,
if 333, force 333,
if none, force 125.
After detection, set it to 10000 for a short time.
Now, detect fps. If its 1000, the player doesnt cheat.
If its 10000, the player cheats and should be kicked/banned/whatever.
If not cheating, continue forcing earlier established fps to force.
changing the MP executable? Are you serious? That's like using a sledgehammer to crack an egg. |
|
|
|
maxxis95 |
General Member Since: Aug 28, 2012 Posts: 55 Last: Sep 17, 2012 [view latest posts] |
|
|
|
maxxis95 |
General Member Since: Aug 28, 2012 Posts: 55 Last: Sep 17, 2012 [view latest posts] |
|
|
|
Tally |
General Member Since: Apr 21, 2005 Posts: 819 Last: Oct 26, 2012 [view latest posts] |
|
|
Category: CoD2 Scripting Posted: Friday, Aug. 31, 2012 01:55 pm |
|
maxxis95 writes...Quote: btw. what about not being able to open chat and teamchat while using those menus?
the menus are full screen, and so are covering the chat. Just shrink the menus down:
Example:
Code: #include "ui_mp/menudef.h"
{
menuDef
{
name "check"
rect 0 0 1 1
focuscolor GLOBAL_FOCUSED_COLOR
style WINDOW_STYLE_EMPTY
onopen
{
uiScript openMenuOnDvar com_maxfps "1000" test;
close check;
}
}
}
|
|
|
|
maxxis95 |
General Member Since: Aug 28, 2012 Posts: 55 Last: Sep 17, 2012 [view latest posts] |
|
|
|
serthy |
General Member Since: Sep 8, 2010 Posts: 482 Last: Jun 28, 2013 [view latest posts] |
|
|
|
|
Tally |
General Member Since: Apr 21, 2005 Posts: 819 Last: Oct 26, 2012 [view latest posts] |
|
|
Category: CoD2 Scripting Posted: Friday, Aug. 31, 2012 02:01 pm |
|
maxxis95 writes...Quote: and last question i wanna ask is - would so many openings and closings of menus make some lag or something? cuz i got some when i tested it but doesnt really have to be cause of it
Shouldn't do. I know of mods that do similar things with menus, and they don't cause lag. |
|
|
|
maxxis95 |
General Member Since: Aug 28, 2012 Posts: 55 Last: Sep 17, 2012 [view latest posts] |
|
|
|
Tally |
General Member Since: Apr 21, 2005 Posts: 819 Last: Oct 26, 2012 [view latest posts] |
|
|
|