Raised This Month: $51 Target: $400
 12% 

Detect how far someone walked.


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-14-2010 , 01:04   Re: Detect how far someone walked.
Reply With Quote #21

Quote:
Originally Posted by wrecked_ View Post
S = 40 MPH
T = 2 Hour

D = S * T
D = 40 * 2
D = 80

That's the formula, but you're right about it being more complicated (in CS) than he had portrayed it to be.
Thanks for doing the math for me. You do know where my name comes from right? .
__________________
fysiks is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-14-2010 , 01:13   Re: Detect how far someone walked.
Reply With Quote #22

Quote:
Originally Posted by fysiks View Post
Thanks for doing the math for me. You do know where my name comes from right? .
Haha, I thought you were talking about the normal formula being more complex at first, which is why I did the math out. After I wrote the actual thing I came to the realization that you were probably talking about CS in the first place, but I just posted it anyway in case the other guy wasn't comprehending it. Then, I remembered that you didn't have down syndrome.

OOPSZ.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 05-14-2010 , 04:41   Re: Detect how far someone walked.
Reply With Quote #23

Quote:
Originally Posted by wrecked_ View Post
S = 40 MPH
T = 2 Hour

D = S * T
D = 40 * 2
D = 80

That's the formula, but you're right about it being more complicated (in CS) than he had portrayed it to be.
So wrong . You forgot the accelerating speed :p. That forumela only works on a constant speed ( wich it aint ).
__________________
I am out of order!
grimvh2 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-14-2010 , 15:26   Re: Detect how far someone walked.
Reply With Quote #24

Quote:
Originally Posted by grimvh2 View Post
So wrong . You forgot the accelerating speed :p. That forumela only works on a constant speed ( wich it aint ).
If the math was implemented into a plugin, it would be done in PreThink. PreThink is called several times each second, so the accelerating speed generally wouldn't matter, since the PreThink calls would get the speed each frame, and the acceleration rate isn't very fast in CS.

Sorry if the explanation was a bit sketchy, I didn't really know how to explain it thoroughly.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 05-14-2010 , 23:27   Re: Detect how far someone walked.
Reply With Quote #25

Quote:
Originally Posted by Exolent[jNr] View Post
I've seen a unit->feet conversion or something similar on these forums before.
http://forums.alliedmods.net/showpos...40&postcount=9

I'm wondering from where did he got those values hmm
__________________
IneedHelp is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-15-2010 , 09:11   Re: Detect how far someone walked.
Reply With Quote #26

i decides to leave it in units, cause with my bad math skills it would be a miracle to calculate all that.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2010 , 14:53   Re: Detect how far someone walked.
Reply With Quote #27

Quote:
Originally Posted by drekes View Post
i decides to leave it in units, cause with my bad math skills it would be a miracle to calculate all that.
It's just one mulitplication.
__________________
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-15-2010 , 14:59   Re: Detect how far someone walked.
Reply With Quote #28

yeah, but then i have to use number like 1,22222 and so on, way to difficult for me.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2010 , 15:04   Re: Detect how far someone walked.
Reply With Quote #29

Quote:
Originally Posted by drekes View Post
yeah, but then i have to use number like 1,22222 and so on, way to difficult for me.
What? Once you program it you don't ever have to "do the math" again.
__________________
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-15-2010 , 15:09   Re: Detect how far someone walked.
Reply With Quote #30

Quote:
Originally Posted by drekes View Post
yeah, but then i have to use number like 1,22222 and so on, way to difficult for me.
If you use those #defines from Emp's post, you don't have to do any math at all.
Just call the functions normally.

Code:
#define UnitsToFeet(%1)  (%1*0.08333232) // ... new iFeet = UnitsToFeet( iUnits );
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 02:34.


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