Raised This Month: $32 Target: $400
 8% 

How to convert feets/s or meters/s to units/s


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FroGeX
Senior Member
Join Date: Aug 2020
Old 01-18-2021 , 15:07   How to convert feets/s or meters/s to units/s
Reply With Quote #1

All in the title. Please help me.
FroGeX is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-18-2021 , 16:10   Re: How to convert feets/s or meters/s to units/s
Reply With Quote #2

They are just normal calculations regardless which programming/scripting language you are in..

A simple 100 * 42 calculation:

PHP Code:
int i100_times_42 100 42
123.45 feet to meters, when you know that one feet is 0.3048 meters, it would be 123.45 * 0.3048:

PHP Code:
float f123p45_feet_to_meters 123.45 0.3048
For any other kind of unit, it's as simple as figuring out what how much your one unit is in the other value, and make a calculation like e.g. the float above.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 01-18-2021 at 16:11.
DarkDeviL is offline
FroGeX
Senior Member
Join Date: Aug 2020
Old 01-18-2021 , 16:47   Re: How to convert feets/s or meters/s to units/s
Reply With Quote #3

Quote:
Originally Posted by DarkDeviL View Post
They are just normal calculations regardless which programming/scripting language you are in..

A simple 100 * 42 calculation:

PHP Code:
int i100_times_42 100 42
123.45 feet to meters, when you know that one feet is 0.3048 meters, it would be 123.45 * 0.3048:

PHP Code:
float f123p45_feet_to_meters 123.45 0.3048
For any other kind of unit, it's as simple as figuring out what how much your one unit is in the other value, and make a calculation like e.g. the float above.
thanks but you misunderstood me i want convert feets/s OR meters/s to units/s in CS:GO
i only know one unit is 0.01905 meter
FroGeX is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 01-18-2021 , 17:57   Re: How to convert feets/s or meters/s to units/s
Reply With Quote #4

Check smlib math module.
There are some useful constants and stocks at the end of include.
__________________

Last edited by MAGNAT2645; 01-18-2021 at 17:58.
MAGNAT2645 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:42.


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