[CS:S/?] Speedometer v1.0.6 (Updated: 8/27/12)
4 Attachment(s)
Description:
Installation:
|
Re: [CS:S] Surfing Speedometer
Thanks for another useful/fun plugin.
|
Re: [CS:S] Surfing Speedometer
Yours got more configuration options than this one, but i'd like to see the format cvar more dynamic like using {speed} as an replacer and allow using "Speed: {speed} mph" to add the unit.
|
Re: [CS:S] Surfing Speedometer
Hmm, that'll add a few more calls to the plugin which may reduce it's ability to be used in OnGameFrame, but I'll give it a shot.
|
Re: [CS:S] Surfing Speedometer
Version 1.0.1 Released! Anyone running the plugin prior will either have to delete their sm_surfing_meter.cfg and restart their server, or manually add the {SPEED} parameter to the sm_surfing_meter_format cvar. {SPEED} denotes where the velocity appears, and if you do not have it, no messages will be printed.
|
Re: [CS:S] Surfing Speedometer
I like the idea in that thread Peace-Maker linked to of displaying the the name of the fastest person on round end.
Would be another nice addition to this plugin! Maybe in chat? |
Re: [CS:S] Surfing Speedometer
Yeh I also like the idea above & being able to choose MPH or KM's since that is something more people can relate to.
Nice work on the plugin, I will use it on my surf server :D In the original post it says Game: Counter-Strike: Source, however this could also be used on TF2 couldn't it? I don't see any specific CS:S code, nor did you include cstrike.inc file :P |
Re: [CS:S] Surfing Speedometer
@ Xp3r7, I'm fairly certain that would be incredibly easy to implement. Simply put, all it would require is a check in the display feature to see if the current user's velocity is higher than the last recorded velocity, and if so, store it. I don't think the performance impact would be anything to worry about since Surf servers generally don't have a lot going on.
@ bobbobagan, this plugin already supports the needed methodology required to display MPH or KM; you will, however, need to do a little math. It's safe to assume that a hammer unit is roughly an inch, so you can simply do a conversion from inches per second, to miles per hour or kilometers per hour. It won't be 100% accurate, but you probably won't get much better. Excuse the math lesson, but this may be useful for anyone wanting to figure out what needs to be done. There are 12 inches per foot, and 5280 feet per mile, so that's (12 * 5280) inches per mile. Since there are 3600 seconds in an hour, you come up with the following formula: 1mph = (12 * 5280) / 3600. That works out to 17.6 inches per second. Likewise, there are (12 * 3280) feet per kilometer, so you end up with a value of 1 kmh = 10.93 inches per second. So, with that information, you can do the following: PHP Code:
At least, I believe that's right. I'm a little to drunk to be messing with numbers. I can't run TF2 on this crap computer so I don't know if it'll work, but the only requirement is clientprefs iirc. |
Re: [CS:S/TF2] Surfing Speedometer
Version 1.0.2 released! It changes the default plugin prefix to Speedometer, rather than Surfing, and adds the feature requested by Xp3r7. The cvar sm_surfing_meter_fastest will enable/disable the fastest player feature, and the cvar sm_surfing_meter_message will allow you to customize the message that is displayed based on your current settings.
Version 1.0.3 released! Fixed a small mistake in resetting the fastest variables, didn't take into consideration other units may be used. |
Re: [CS:S/TF2] Surfing Speedometer
I seem to be having an issue. I'm using this for TF2 and while it seems to work fine when I enabled all the commands manually, when I add it to my server.cfg it doesnt seem to run the commands. I've tried putting it in the middle, at the end, etc... but nothings working. I even copy/pasted each line one by one into my console to verify everything was typed right, which it was... any ideas why its not working via server.cfg - I don't have much in there really... heres what I have:
Code:
sm_surfing_meter "-1" |
All times are GMT -4. The time now is 15:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.