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

ClPlayerCallback

Modding resource. Provide some useful callbacks.

By Team036
Date uploaded 3 months ago
Version 1.0.1
Download link Team036-ClPlayerCallback-1.0.1.zip
Downloads 142
Dependency string Team036-ClPlayerCallback-1.0.1

README

This mod provides some useful functions in client.

You should not install this until you are told.

Functions

cl_player.gnut


// This allows you to get the entity your crosshair look at.
void function AddCallback_CrosshairCurrentTargetChanged( void functionref( entity player, entity newTarget ) callbackFunc )

// When localplayer did damage
// global struct PlayerDidDamageParams
// {
// 	entity victim
// 	vector damagePosition
// 	int hitBox
// 	int damageType
// 	float damageAmount
// 	int damageFlags
// 	int hitGroup
// 	entity weapon
// 	float distanceFromAttackOrigin
// }
void function AddCallback_PlayerDidDamage( void functionref( PlayerDidDamageParams ) callbackFunc )