ClientMinimapCallbacks

版本 v1.0.2·更新於 2024-07-23

Modding resource. Provide some useful callbacks on minimap.

模組介紹 作者原文

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

安裝與使用 安裝:Northstar 用戶端模組

  1. 先安裝 Northstar 用戶端(Titanfall 2 的開源社群用戶端,官方發布頁提供安裝器),模組由它載入。
  2. 把本站下載的壓縮包解壓,內容放入 Titanfall2 目錄下的 Northstar/mods/ 資料夾。
  3. 透過 NorthstarLauncher.exe 啟動遊戲,控制台會列出已載入的模組。

Northstar 用於私人伺服器與自訂內容,請勿用它連線官方伺服器。

檔案與校驗

檔案名稱
ClientMinimapCallbacks-1.0.2.zip
檔案大小
19.1 KiB