December 16th, 2006
|
|
forum regular
|
|
Join Date: November 25th, 2006
Location: Alabama. Where beating your wife is fine and gambling is illegal because it says so in the Bible.
Status: No Status
Posts: 181
|
|
Percentages dear lad.
It would just be a random thing. (Except for like the bonus health).
So, you'd cap. Get 100 health. Then it would randomly determine if you get any leet shit. You could make it like only 10% of the time you get something. Then make a table to determine the special thing.
So...ghetto flow chart incoming:
If !(rand(100) > 10) {
new FUCKINGVAR;
FUCKINGVAR = rand(NUMBEROFITEMSHERE);
case FUCKINGVAR {
SWITCHTESTS;
}
}
Fear the pieced together code...in any case..you get the idea. So it's not like you'd always 1) Get something and 2) Get a nade for spawn spamming.
|