Training Mode — Adding Targets to Snapshot VR Custom Maps

Jesse
Giant Scam
Published in
3 min readJul 23, 2020

Using our integration with 2D Paintball, you can now add both moving and stationary targets to training maps in Snapshot VR. Use these bots to practice laning and snap shooting in single or multiplayer.

This implementation is a stepping stone to fully functional bots, and we hope you find it useful for practicing in the meantime.

For more information on creating layouts for Snapshot VR using 2D Paintball’s Field Creator, see our previous guide.

To get started, you have two options.

  1. Create a new layout in the 2D Paintball Field Creator
  2. Import an existing layout into the 2D Paintball Field Creator by pasting the contents of any2dp_layoutname.arena.json file in the StreamingAssets/ directory of your Snapshot installation into the Map Data field under Advanced Options in the Field Creator

Once you have the bunkers arranged to your liking, you can take advantage of the Bot Positions feature of the Field Creator.

Selecting Bot Positions gives you similar options as when placing a bunker. You can set the position on the field, set it to mirror, and set some other basic parameters. This option will place a small green object on the field to represent the bot position.

Placing these on a layout created in 2D Paintball and importing into Snapshot VR will set the positions as expected, as long as you adhere to the following:

  1. Any map with bot positions must have the file name formatted like so:
    2dp_trn_layoutname.arena.json
    Where ‘trn’ here stands for ‘training.’
    This will guarantee bots to spawn appropriately when the layout is loaded, and will show the map separately from standard maps in the in-game UI.
  2. The type parameter is extremely important for bot placements.
    A type of Crouching will create a stationary bot for practicing snap shooting. This bot will spawn in the set position and stay there throughout the round.
    A type of Stand up (the default) will create a bot that will break out from the start station and move to that position as similarly as possible to a real player. This is ideal for practicing laning and shooting off the break.

If all goes well, you will now have your training layout listed in the Training Layouts UI after you’ve created a new Room.

Your training bots will respawn each round. For moving bots, they’ll reset and make their breakout move repeatedly throughout the round. So, you can get a full practice session in without ever pressing the buzzer to change the round if you’d like.

Shooting a bot will give you feedback in the form of the classic bell ding you hear when you get a kill in a normal match as well as the kill flash effect at the position where the bot was hit.

And that’s it! Let us know in our Discord if you have feedback or suggestions!

--

--

Jesse
Giant Scam

Lead Developer / Co-Founder of Giant Scam Industries