[FilterScript] Very simple speedometer
#1

Hey guys, this is my little speedometer, it didn't take long to make, but i thought it would be useful for other scripters to use if you wanted,
Screenshot: (Sorry about the fuel being next to it, that was just a tester filterscript)
If you like it you can find it in my pastebin
Pastebin link: http://pastebin.com/0A2zNdxR
Hope you like it, and give me your feedback in comments, on how i can improve and what you like about it
thank you
Reply
#2

Oh.. Getting speed in "OnPlayerUpdate" ? Wow. I think that timer is better, but... Good job !
Reply
#3

Nice but "OnPlayerUpdate" ...
Reply
#4

Using OnPlayerUpdate for this is not very smart, and if you made this script for us you would've removed the fuel line, which is fairly simple, I have a feeling this is not your script, but it's just a hunch (mainly because your post count is 4, you made this account just to post this.)...

If it is truly yours, good job, remove the fuel line, add option for mph...
Reply
#5

Don't use OnPlayerUpdate
SetTimer on OnGameModeInit is Better.
anyway, it's Good
Reply
#6

very good bro
Reply
#7

Quote:

Using OnPlayerUpdate for this is not very smart, and if you made this script for us you would've removed the fuel line, which is fairly simple, I have a feeling this is not your script, but it's just a hunch (mainly because your post count is 4, you made this account just to post this.)...

If it is truly yours, good job, remove the fuel line, add option for mph...

the fuel system is not in the pastebin, it's only on the screenshot, if you even checked, and just because my account is new doesn't mean that i can not script, this is one of my new scripts, i am not good with PAWN. This filterscript is mine, I've been working on this stuff with my brother (who knows how to script), and he helped me with the textdraw, Anyway thanks for your feedback, i will update it soon
Reply
#8

NICE
Reply
#9

Thanks, hope you enjoy it
Reply
#10

Well I will tell you whats wrong with this.

1.) Use player textdraws currently this script would eventually fill all textdraw slots
2.) Incorrect velocity calculation 180.0 is the correct value
pawn Код:
floatround(floatsqroot(floatabs(floatpower(Pos[0] + Pos[1] + Pos[2], 2))) * 180.0);
3.) I don't see much issue with using OnPlayerUpdate() it will make for a very smooth speedo yeah you could use a timer instead for a bit more optimization.
4.) No clean up code for unloading FS
5.) No start up code for loading FS
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)