Quote:
Originally Posted by JernejL
So I see noone made anx examples from my suggestion how to build a fps counter using drunklevel, so here is a basic copy-pastable code i wrote for my needs that you can use:
The first person to make a Filterscript out of this with a on-screen FPS textdraw gets eternal gratitude from the turtle!
Remember, this will only work correctly with 0.3b, also you can still set drunk level to >2000 and it will work properly, the trick does not interfere / break any existing script functionality.
|
I had a working /fps command the very same day you posted your whitepaper on it. The logic was simple enough to follow to work out the math. Mine is different though: my /fps brings up a dialog which shows the FPS of every player on the server with an 'update' button to refresh it all. I also do not have the range check that you do since I have other functions that can break the FPS function on a specific player if they start playing with functions that drastically alter their drunk level (i.e. /mdrunk, /wine, /beer, etc). That, or you can just direct it to a player (i.e. /fps <player name>). Come by my server some time and do /fps
.