difference between random_num and random_float ??
difference between random_num and random_float ??
I want to know what is the difference. if i have : cvars slap_pct 0.10 register_cvar("slap_pct", "0.05") on this small part of my hero if ( random_???( 0.00, 1.00 ) <= get_cvar_float("slap_pct")) { user_slap(victim,0) user_slap(victim,0) user_slap(victim,0) } Witch is the best ??? Thanks to help me ^^ (sorry for my bad english) |
Re: difference between random_num and random_float ??
Quote:
Integer = Rounded number. 1 is an Integer. 1.0 is a Float. 0.00 and 1.00 are floats, therefore: Code:
|
Re: difference between random_num and random_float ??
:O thanks, i understand :p karma + for you ^^
|
| All times are GMT -4. The time now is 01:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.