Results 1 to 10 of 12

Thread: COD4 : getting clients com_maxfps questions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    There are already two threads about this:

    https://killtube.org/showthread.php?...how-FPS-in-Hud

    However this one won't work with 1.7a, because you can't run libcod and 1.7a together.
    https://killtube.org/showthread.php?...l-fps-realtime

    Edit:
    Quote Originally Posted by se891 View Post
    4- unrelated question any one by any change have the speedometer script (the numbers showing in the bottom of the photo are the curent speed which is changing and the max speed reached which changes only if you reach a higher speed then you did before ) ?
    Something like this?
    PHP Code:
    calculatePlayerSpeed() {
        
    speed distance(self.originself.previousorigin); // or DistanceSquared (= cheaper/faster function)
        
    self.previousorigin self.origin;
        return 
    speed;

    Call this every frame (or in the same time interval) then you will get the distance between current origin and previous origin.
    Last edited by Mitch; 8th May 2016 at 13:05.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •