Resource icon

Floating Item Spawner v2

I made sure my file(s) follow the Submissions Guidelines
  1. Yes
Floating Item Spawner

This script is designed to be packed with map pk3s/wads, but otherwise not modified. If you need it modified (for example if the map thing number conflicts with something else), please let me know.

Spawns floating papersprite items (the ones that you drop when exploded) at the location of its spawnpoint, similar to an item box.

Thing number is 1777. Parameter in ZoneBuilder +1 is the item type, corresponding to the kartdebugitem list, or a list below for reference.

Angle is the amount to give, anything over 255 will cap the amount to 255, 0 will result in 1. Otherwise, angle shown in ZB = amount.

Setting the AMBUSH flag will cause the spawned floating item to have no gravity and stay in place.
Setting the SPECIAL flag will cause the spawner to only ever spawn one item, creating a one time pickup.

Setting the EXTRA flag will ensure that a player can never pick up more than the amount designated from the pickup. For example, if you put 3 spawners near each other that give a player 2 sneakers and set EXTRA on them, they will gain 2 sneaker on the first one they drive over, but then if they drive over another, they will be unable to collect them. If a player has some of the given item, but not as many as you've set on the spawner, they will be given up to the amount specified

Floating items behave as the normal in game one, including sliding down physics slopes and gravity (if you dont set Ambush flag)

I recommend sticking to trap items, orbinauts, maybe lightning shield for normal gameplay, but the other items are still there for you crazy/creative mappers.

Sneaker 0
Rocket Sneaker 1
Invincibility 2
Banana 3
Egg Monitor 4
Orbinaut 5
Jawz 6
Mine 7
Ballhog 8
Self-Propelled Bomb 9
Grow 10
Shrink 11
Lightning Shield 12
Hyudoro 13
Pogo Spring 14
Kitchen Sink 15

Example of using it to have guaranteed eggboxes within a shortcut:
ExampleEggBox.gif


All of this information can also be found within commented in the script.
Author
Ashnal
Downloads
427
Views
2,101
Extension type
lua
File size
5.4 KB
MD5 Hash
a2fcd4894328110f5b88e856286fedc7
First release
Last update
Rating
3.00 star(s) 1 ratings

Share this resource

Latest updates

  1. v2

    Now compatible with xItemLib Added EXTRA flag functionality

Latest reviews

Welcome to releases! I do hope mappers use this carefully...
Upvote 2
Back
Top