AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Constant 101 FPS on local server? (https://forums.alliedmods.net/showthread.php?t=126933)

OlikA 05-15-2010 11:06

Constant 101 FPS on local server?
 
I have a question regarding achieving constant 101 FPS. I would like to make a scripted event on a local server that replays a client's (who connected to this server) character movement series which requires constant FPS to abuse gameplay as much as possible. The slightest difference in FPS has impact on the outcome. I will use this as a demonstration, not for cheating or something.

Is there any way to change the elapsed time between frames to a constant value, that every HL function will use it? For example: the player's speed increment uses that time value which calculated from the elapsed time between the last frame and the actual frame. So I would change the "elapsed time" to a constant time (that represents that I play 101 FPS) so I will have the same outcome whenever I replay the preprogrammed input series.

I wrote a plugin that reads the pitch and yaw (view angles) and client commands (+forward;+moveright) from a file. So I think I have to get constant FPS on both the server and client to achieve the very same outcome. I don't use wait;, only read 3 lines per frame from a file. I don't care if I have 101 FPS but not in realtime (slower gameplay but real 101 FPS), the recorded gameplay (demo file) will be replayed perfectly (not on 101 fps but that won't have impact on the outcome).

Does anyone have an idea about how to solve this problem?
Also if you have any question regarding the project (to ensure I'm not about making a cheat plugin or something that would ruin or abuse a community), just ask me and I response.


All times are GMT -4. The time now is 03:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.