You are viewing a potentially older version of this package. View all versions.
Team036-ClientMinimapCallbacks-1.0.2 icon

ClientMinimapCallbacks

Modding resource. Provide some useful callbacks on minimap.

By Team036
Date uploaded 2 months ago
Version 1.0.2
Download link Team036-ClientMinimapCallbacks-1.0.2.zip
Downloads 387
Dependency string Team036-ClientMinimapCallbacks-1.0.2

README

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