Team036-ClientMinimapCallbacks icon

ClientMinimapCallbacks

Modding resource. Provide some useful callbacks on minimap.

By Team036
Last updated 5 months ago
Total downloads 971
Total rating 0 
Categories Mods Client-side
Dependency string Team036-ClientMinimapCallbacks-1.0.2
Dependants 4 other packages depend on this package

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