
You are viewing a potentially older version of this package. View Latest Version
ClientMinimapCallbacks
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()
// 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
}