Resource icon

[Reusable] Battle2D + Meadow 2D - A New Form of Ringslinger and BattleMod


The primary feature of this script is adding a mouse-controllable crosshair to 2D Ringslinger and Match - when enabled, your character will aim and act in the direction of the crosshair, regardless of your movement direction. By default, it is enabled when ringslinger is enabled, or when a player has autoaim disabled during BattleMod. The crosshair is not visible to enemy players, but can be seen by teammates and spectators.

Other Control Changes
  • Climbing: You can use the strafe keys to move up and down! Forward/backward are completely optional.
  • Spectators: May use forward/backward to move up and down in addition to jump/spin.

Misc Changes
  • The Battle2D camera always aims directly at your character. Use the fov command to view a wider area!
  • The BattleMod CP Compass has been adjusted for Battle2D, pointing in the X/Z direction rather than X/Y.
  • If this script is loaded without BattleMod, it adds a dummy CP object to the game, so you may load BattleMod CP maps without visual errors.
  • The maximum distance to see a player's name is reduced to 512 fracunits during Battle2D.

Console Commands
Prints a message with controls, options, and tips for Battle2D

Adjusts the sensitivity of the 2D Crosshair: ranges from 1-64, default is 8

Turns on/off the 2D Crosshair: 0 force-disables, 1 uses the default behavior, and 2 force-enables

Admin only - sets the amount of tics the crosshair will wait to account for clag; i.e., players won't be able to move the crosshair for this amount of tics when it's first spawned. Setting this to a higher value may stabilize the crosshair for laggy players. Minimum 1, default 7

In Chat: ".battle2d", "!2d", ".b2d", "!btd", and similar
Prints the Battle2D welcome message in chat (for everyone). Helpful if a player has no idea what's going on/why they can't turn around. 15 second cooldown.

Technical Details
  • Battle2D will work with or without BattleMod loaded, though it will display a warning if loaded without BattleMod. Battle2D must be added after BattleMod if you plan to use it.

  • Battle2D's rather inflexible in how it treats player angle and aiming at the moment - you may encounter issues when combined with some other scripts. A custom character that uses only PlayerThink and ThinkFrame hooks should work fine, for example, while one that uses PreThinkFrame might not. Your best bet is to add BattleMod and Battle2D first, before any other scripts - if you're still getting issues after doing that, let me know and I'll see if a work-around is possible.

  • To use Battle2D in your map, simply add Lua.battletwod = on to the level header (In addition to marking it as 2D TypeOfLevel). Battle2D should generally be added separately and not be lumped into your WAD/PK3, as issues could arise if the script is loaded multiple times from different files. However, if you are running a server and would like to lump scripts together to reduce the file count, that would be fine - again, though, keep the script loading order in mind.

  • The camera distance is 512 fracunits away from the player, and scales with their scale. Battle2D at the moment only supports a "true" 2D level (i.e., TypeOfLevel 2D), and not changing between 2D and 3D within a map - though if there's interest in this it could be added in a later version.

Meadow 2D

Meadow 2D (MAPNZ) is a simple edit of Meadow Match to showcase and test Battle2D. It's designed for BattleMod's CP, Battle, and EggRobo Tag modes, but will also work with vanilla Match and Tag, as seen in the GIFs - though you will get a warning when adding this file without BattleMod active.
  • srb20144.gif
    4.6 MB · Views: 202
  • srb20147.gif
    5.9 MB · Views: 73
First release
Last update
0.00 star(s) 0 ratings

Share this resource