This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

15% change of doing more damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 09-24-2005 , 16:28   15% change of doing more damage
Reply With Quote #1

how can i do something that has 15% change of succes
__________________
- Bye bye!
nightscreem is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-24-2005 , 17:22  
Reply With Quote #2

Code:
new Float:chance = random_float(0.0,1.0); if(chance <= 0.15) {     // zomg! }
I believe
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-24-2005 , 17:39  
Reply With Quote #3

Just how specific is random_float? 0.123456?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
pdoubleopdawg
Senior Member
Join Date: Aug 2005
Old 09-24-2005 , 17:45  
Reply With Quote #4

Quote:
Originally Posted by XxAvalanchexX
Just how specific is random_float? 0.123456?
Affirmative, 6 points after.
pdoubleopdawg is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-24-2005 , 17:50  
Reply With Quote #5

Works for me in VM for Silverbullets and such..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 09-25-2005 , 07:06  
Reply With Quote #6

k thx ill try your version v3x
__________________
- Bye bye!
nightscreem is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-25-2005 , 14:09  
Reply With Quote #7

Add a debug message in there as well. That's what I did.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 09-25-2005 , 19:49  
Reply With Quote #8

Quote:
Originally Posted by v3x
Code:
new Float:chance = random_float(0.0,1.0); if(chance <= 0.15) {     // zomg! }
I believe
ZOMG! my code!
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-25-2005 , 21:07  
Reply With Quote #9

Yeah, you showed me HOW to do it and I remember it so ggh4x
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 22:34.


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