[Open Assets] Linedef Executor - Award Rings

This content may be freely modified and/or maintained by anyone.

SteelT

Developer
Sonic Team Junior
Kart Krew™️
You know, I'm surprised this isn't already a thing in SRB2, and I'm even more surprised no one have ever thought of making something like this, given how long 2.1 has been out for now. This script is the solution to the problem! Custom executor to award rings to the player. A test map is included too.

Set-up instructions:
  • Add the Lua script into a wad for your level, with a lump name like LUA_MAIN, LUA_FUN or LUA_LOL, doesn't matter at all except for the "LUA_" bit.
  • Set up a linedef executor involving linedef type 443 - this should have a front upper texture of name "AWDRINGS".
  • Front x texture offset of the linedef determine how many rings should the player get. Anything in negatives removes that exact amount from the player.
  • Front y texture offset of the linedef determine the delay(in seconds), before giving or removing rings again.
 

Attachments

  • awardrings-test.zip
    2.1 KB · Views: 298
  • awardrings.lua
    546 bytes · Views: 317
  • srb20173.gif
    srb20173.gif
    1.5 MB · Views: 516
  • srb20174.gif
    srb20174.gif
    875.2 KB · Views: 448
  • srb20175.gif
    srb20175.gif
    313.5 KB · Views: 455

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top