Raised This Month: $ Target: $400
 0% 

Linux func_rotating bug fixer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AlexALX
Senior Member
Join Date: Apr 2009
Old 09-20-2010 , 12:32   Re: Linux func_rotating bug fixer
Reply With Quote #1

And what the code is correct? That's what he said pizzahut true or not?
__________________
AlexALX is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-20-2010 , 13:08   Re: Linux func_rotating bug fixer
Reply With Quote #2

floatround(fAngle) / 360 * 360

This is correct.


If you want you can put :

(floatround(fAngle) / 360) * 360

But i guess the result is the same.

Idea is to make something like modulo but with float, so if you have 325.2, substract 320 to keep 5.2, if you have 735.3, keep 15.3 etc...


Plugin updated with fun_train + Ham_Think
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 09-20-2010 at 13:17.
ConnorMcLeod 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 07:53.


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