ClientMinimapCallbacks

v1.0.2·Updated 2024-07-23

Modding resource. Provide some useful callbacks on minimap.

About this mod Author’s original text

This mod provides some useful functions on minimap in client.

You should not install this until you are told.

Functions

cl_minimap.gnut

void function Minimap_SetZoomScale( float scale )

void function Minimap_SetSizeScale( float scale )

// Return rui created. Its a variant of AddMinimapObject. Use it carefully.

var function AddMinimapObjectAlter( entity ent, string className,int customState,int zOrder)

var function ClientCodeCallback_MinimapEntitySpawnedAlter( entity ent, string className,int customState,int zOrder)

void function RemoveMinimapOtherRui(var rui)

// Remember to redraw after scaling.

void function Minimap_RedrawSizeScaleAll()

void function Minimap_RedrawZoomScaleAll()

// The file is the current state of client minimap.

MinimapFile function Minimap_GetFile()

// Obtain the zoom/size scale with convar.

GetConVarFloat( "mp_minimap_zoom" )

GetConVarFloat( "mp_minimap_size" )

sh_minimap.gnut

The client minimap use classname&enum to tell the asset. This custom enum was used to test. Keep it.

global enum eMinimapObject_custom

{

GRENADE

COUNT

}

Examples

  • Hugemap

Install & use Install: Northstar client mod

  1. Install the Northstar client first (the open-source community client for Titanfall 2; its release page provides an installer). It loads the mods.
  2. Unzip the archive from playbuff and put its contents into the Northstar/mods/ folder inside your Titanfall2 directory.
  3. Start the game through NorthstarLauncher.exe — the console lists the mods it loaded.

Northstar is for private servers and custom content; do not use it to connect to official servers.

File & checksum

Filename
ClientMinimapCallbacks-1.0.2.zip
File size
19.1 KiB