Last updated | 5 months ago |
Total downloads | 347 |
Total rating | 0 |
Categories | Client-side |
Dependency string | Team036-WeaponCallbacks-1.1.0 |
Dependants | 1 other package depends on this package |
README
This mod provides some useful functions in client.
You should not install this until you are told.
The satchel entity is goint to be invalid in a short time after deployed. So its almost impossible to use GetOrigin()
access to the position of the satchel.
Functions
scripts\vscripts\weapons\mp_weapon_satchel.nut
// table collisionParams =
// {
// pos = pos,
// normal = normal,
// hitEnt = hitEnt,
// hitbox = hitbox
// weapon = weapon
// }
// Works only if the satchel has collision with other entity. Player need to fire the satchel with a large dot angle.
function AddCallback_OnSatchelPlanted_Alter(void functionref( entity player, table collisionParams ) callbackFunc )
function AddCallback_OnSatchelCreated(void functionref( entity satchel, entity weapon) callbackFunc )
// Works only if player manually detonated.
function AddCallback_OnSatchelDetonated(void functionref( entity weapon ) callbackFunc )
scripts\vscripts\cl_utility_modded.nut
bool function IsEnemy(entity player)
bool function IsCoreReady(entity player)
bool function HasElectricSmoke(entity player)
string function GetTitanKit1(entity player)
string function GetTitanKit2(entity player)
asset function GetTitanIcon(entity titan)