SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Kart Releases & Mods > Kart Miscellaneous

Reply
 
Thread Tools
Item Rain v1.2 - Cloudy with a chance of bananas Details »»
Item Rain v1.2 - Cloudy with a chance of bananas
Version: 1.2, by Togen Togen is offline
Developer Last Online: Jun 2020

Category: Version: SRB2 Kart Rating: (1 votes - 3.40 average)
Released: 02-17-2020 Last Update: Never Installs: 1
Scripts Re-Useable Content

This is a script which causes items to randomly appear around the course. The item limit, rate at which items appear, types of items that can appear (this is separate from the items you can get from boxes!), and some other behaviors can be customized.

During a free race, items other than sneakers will not rain, and items will spawn closer than normal in battle mode.

Tested in singleplayer and 4-player offline multiplayer, both battle and race modes.

Console Variables
ir_mode
"Race" by default.
You can enable the script across both modes, in battle only or race only, or disable it entirely.

ir_traps
Off by default.
If "on", certain items will transform into hazards when rained.

ir_limit
90 by default.
Limits how many rain items are allowed to exist at one time.

ir_limit_spb
2 by default.
Limits how many rain SPBs are allowed to exist at one time.

ir_lifetime
1400 ticks (40 seconds) by default.
Determines the number of ticks before a rained item is destroyed.

ir_delay
13 ticks (~0.37 seconds) by default.
Determines the number of ticks required between each rained item.

ir_rarity
On by default.
If "on", items will have different chances to spawn based on their relative power.

ir_startup
70 ticks (2 seconds) by default.
Determines the number of ticks required before item rain begins.

ir_pickups
On by default.
If "off", item boxes will be destroyed. If switched back to "on", the destroyed item boxes will not return until the next map.

ir_sneaker, ir_rocketsneaker, ir_invincibility, ir_banana, ir_eggman... and so on.
Determines the maximum number of stacks each rained item gives when grabbed, which is a random value between 1 and that maximum. For examples, grabbing a banana can provide anywhere from 1 to 10 stacks by default. Maximum of 255, and setting any of them to 0 disables that particular item.

Download Now

File Type: lua KL_itemrain-v1.2.lua (8.7 KB, 271 views)

Screenshots

Click image for larger version

Name:	kart0000.png
Views:	360
Size:	454.1 KB
ID:	26770  

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 02-17-2020   #2
D00D64
Probably Responsible
Moderator
 
D00D64's Avatar
Default

D00D64 is offline   Reply With Quote
Old 02-18-2020   #3
Togen
 
Togen's Avatar
Default

v1.2 uploaded.

Fixed a typo that would cause pickups to not be destroyed.

Corrected a few hazard entries so that those items would actually spawn their respective "active" versions, including SPBs.

Added a new variable, ir_rarity, which if on, randomly limits which items can spawn every turn based on hardcoded rarity values. Turn it off and all items will have an equal chance of spawning.

Added a new variable, ir_limit_spb, which controls how many SPBs should ever exist at once. This applies to both active and inactive SPBs directly created by Item Rain.
Togen is offline   Reply With Quote
Old 3 Weeks Ago   #4
Jrc126
Default

Quote:
Originally Posted by D00D64 View Post
So true. Item rain in a nutshell.
Jrc126 is offline   Reply With Quote
Reply

Thread Tools

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 Off
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.