Skip to main content

Decls and Implementation

AutomapProperties Decls​

Each entity represented on the Automap has its own automapProperty decl assigned on the EntityDef, so every entity placed in the map with an automapProperty decl automatically shows up on the Automap.

For Encounters, the designer must assign the corresponding AutomapProperties Decl to each individual entity or create a new info/null entityDef for Encounter Automap icons.

Properties​

NameDescription
Revealed ColorColor when the player reveals the icon.
Discovered ColorColor when the player discovers the icon.
Completed ColorColor when the player completes interacting with the icon
BillboardBoolean for the icon to rotate towards the camera
Discoverable Before CollectedBoolean for whether or not the player can discover the icon before collecting it
Persistent Discovered After CollectedBoolean for whether or not the item remains discovered on future playthroughs
Use Zoom ScalingBoolean whether the icon scales when zooming in/out on the Automap
Automap ScaleControls the scale of the icon
Automap MaterialMaterial for the icon on the automap
Automap Render Modellwo for the model for the icon on the automap
Automap Discovered MaterialMaterial for the discovered icon on the automap
Automap Discovered Render Modellwo for the model for the discovered icon on the automap
Origin OffsetOffsets the origin of the icon
Object RadiusScales the object’s radius
Fog of War Reveal Radius Not TraversedControls the Fog of War radius around the icon that touches the player’s Discovered radius
Fog of War Reveal Radius TraversedControls the Fog of War radius around the icon that touches the player’s Reveal radius
Fog of War Vertical RevealControls the Fog of War vertical reveal (it’s low so players don’t reveal Automap icons when walking over them)

automap-properties-decl-editor automap-properties-decl-editor-2

UIdatagroup/progressioncategorydata Decl​

Controls the icons the Items Found section of the Automap

NameDescription
IconMaterial that controls how the icon looks when "off"
Icon2Material that controls how the icon looks when "on"
Icon3Material for the icon in the Legend

uidatagroup-decls

Automap Decls​

Each map has their own Automap decl (which inherits from the default); it should have the same name as the map

NameDescription
Map Group NameText name for the Automap group name (for dev purposes)
Map Group IDLetter order of the Automap Groups (A is first, then B, etc)
Readable NameString for the player-facing name of the Automap Group
Map Group ImageMaterial for the preview image for each Map Group in the Automap
Group Bounds Mins/MaxsLocation bounds for the Automap (set by the artist)
Group Focus Fast Travel PointWhen previewing the Map Group, it automatically focuses on the center of the Automap geo, but you can set a specific entity to be where the camera focuses on instead. (We used this feature in Mars Core because of how large the maps are and how much empty space there is between geo.)

Map Sections​

  • Automap Section Render Model
    • [0] the lwo for the Automap model
    • [1] the lwo for the translucent volumes for the automap model

Encounter associations​

NameDescription
Encounter Name AssociationThe name of the encounter manager entity which all of the below properties track
Encounter Associated Entity StrOther icons on the Automap use their entity’s placement, but because designers do not place the encounter manager in the center of the encounter space, a designer places a dummy entity (ex. info/null) that controls where the icon for the encounter appears on the Automap.
Encounter Entity Light Properties​
NameDescription
ColorThe color of the icon
Pulse ColorThe color of the pulsing rings
RadiusThe size of the radius of the encounter space
HeightThe size of the height of the encounter space (so the colors either bleed or do not bleed through areas above and below the encounter icon)
Core RadiusThe size of the central colored circle
Core Max AlphaThe Alpha of the central colored circle
Rings SpacingThe spacing of the rings
Pulse SpeedThe pulse speed of the rings
ZOffsetThe ZOffset of the Automap icon

decls-2

Level Markup​

  • target/automap_group_unlock
    • A designer needs to add target/automap_group_unlock entities to the map for each Automap Group. When the player crosses over to the next Map Group for the first time, the game needs to activate the corresponding entity to unlock that next Map Group.
  • target/change_layer
    • Map Group Index
      • Unlocks the number for the corresponding Map Group ID (Map Group Index 0 unlocks Map Group ID A, Map Group Index 1 unlocks Map Group ID B, etc)

Useful console commands​

Enter find automap in the console to see a full list

CommandDescription
Automap_Generategenerates an LWO model based on the existing nav mesh
Automap_ReveallAllReveals all of the automap (untraversed)
Automap_ReveallAllAsTraversedReveals all of the automap (traversed)
Automap_RevealAllProgressionItemObjectsReveals position of all progression items
Automap_DiscoverAllProgressionItemObjectsReveals what all of the progression items are

Useful control cvars​

Enter find automap in the console to see a full list

CVarDefault valueDescription
Automap_deadzone0.2Controller joystick deadzone for automap pan
Automap_fog_tile_min_height1.0Minimum height of fog of war tiles
Automap_fog_tile_min_width1.0Minimum width of fog of war tiles
Automap_maxPitchDegrees80.0Max degrees of pitch for automap
Automap_maxZoom500Max distance for zooming in
Automap_minPanSpeedModifier100Automap camera minimum pan speed modifier based on zoom
Automap_minPitchDegrees1.0Min degrees of pitch for automap
Automap_minZoom20.0Min distance for zooming in
Automap_panSpeedController1.25How fast the Automap pans with controller
Automap_panSpeedKeyboard1.25How fast the Automap pans with keyboard
Automap_panSpeedMouse0.00125How fast the Automap pans with mouse
Automap_rotatePitchYawRatio0.8Ratio between Automap pitch and yaw speed
Automap_rotateSpeedController150How fast the Automap rotates with controller
Automap_rotateSpeedMouse0.1How fast the Automap rotates with mouse
Automap_zoomSpeedController500How fast the Automap zooms with controller
Automap_zoomSpeedMouseDrag1.0How fast the Automap zooms with mouse drag
Automap_zoomSpeedMouseScroll30.0How fast the Automap zooms with mouse scroll