Resource icon

[Open Assets] Circuit Redux

Here is a script designed to enhance the Circuit experience.


what Circuit Redux is

A more flexible approach to defining progress, with waypoints that dictate respawn location and position tracking.

An approach to position tracking that tells you exactly how far ahead or behind your opponents you are.

A system for checkpoint abuse prevention, with mechanisms in place to set a player's starpost count back if they run backwards through the track.

Completely reusable. Embed it in your own Circuit map packs!


what Circuit Redux is not

A drop-in revamp that works with all Circuit maps. Maps must be designed to support Circuit Redux.

A completely fool-proof system. Some care should be taken with the positions of starposts to ensure that they cannot be skipped, and that the track is adequately sectioned out to prevent both respawn skips and accidental backtracking.

A full pack. This is intended for mappers to design for in their own circuit maps.


what you get

There are two files in the ZIP:
VL_CircuitRedux.lua is the actual script you need if you're embedding this in your own addons.
VRL_CircuitReduxTest.wad is a sample track to demonstrate the system in action. It has the Lua script embedded, so you don't need to load both. (But importantly, you can load both without issues.)


how to use this

This script uses Fang Waypoints to define tracking progress, while starposts are still used to mark laps as completed.

  • The starpost angle is not used, so it's recommended to set this to 0/360/720/etc directly to make locating them in the editor easier.
  • You only really need one or two starposts in a map designed for Circuit Redux, but they're used to section off waypoints as well. More than 15 are not supported.
  • The angle of the Fang Waypoint determines its position in the overall waypoint sequence. Branching paths are not supported at this time. You can skip numbers as long as the waypoints all go in ascending order and there are no duplicates.
  • The parameter of the Fang Waypoint is used to denote which starpost the waypoint is for. This is 1-based, so the first starpost's waypoint has a parameter of 1. If the parameter is 0, this value is inherited from the previous waypoint, so you don't have to set it on every waypoint.
  • By default, additional waypoints are spawned in between this waypoint and the next one. You usually want this since it improves position tracking, but if the path goes over a pit or damage sector and you don't want it tracked, use the Ambush (Center Waypoint) flag.
  • The fourth-to-last waypoint in a starpost section is denoted as the "backtrack marker". If the player has touched the next starpost, but comes closer to this waypoint, then they will be deducted one starpost count.
  • Type `circredux_debug On` in the console and reload your map to see the full waypoint path, color-coded by starpost sections. This is useful to ensure the pathing is accurate, backtrack points are in good positions, and sections are used appropriately to prevent waypoint skips.


additional stuff

`circredux_debug On/Off`: Toggles debug mode. Admins only.
`circredux_tracker On/Off`: Toggles the position tracker along the bottom of the screen.
`circredux_ranks On/Off`: Toggles the detailed ranking list along the right side of the screen.

If you'd like to make a HUD mod for Circuit Redux, instead of modifying the script itself, have your script define `circredux.HUD_OVERRIDE = true` to disable Circuit Redux's HUD changes.

Thanks to testers: tealsummernights, PencilVoid, Casey, HattyBoyo
  • srb20265.png
    srb20265.png
    54.3 KB · Views: 266
  • srb20268.png
    srb20268.png
    34.7 KB · Views: 219
  • srb20269.png
    srb20269.png
    66 KB · Views: 243
Author
fickleheart
Views
1,566
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from fickleheart

Share this resource

Back
Top