Thanks to Fifty#8113 and Spoon#1812 as they did most of the work on this.
Fifty#8113
Spoon#1812
This alone does nothing but is required for other mods to function.
If another mod listed this one as its dependency, download it!
AddClientCallback_OnPlayerKilled ( void functionref ( ObituaryCallbackParams {entity victim, entity attacker, int damageSourceId, int scriptDamageType} ) customCallback)
As of the latest update made by Uniboi, the callback functions require only one argument of the ObituaryCallbackParams type.
ObituaryCallbackParams
The struct currently contains:
This will thread a function called myOnKillFunction every time the client player gets a player kill with the Kraber:
myOnKillFunction
void function afterClientInit(){ AddCallback_OnPlayerKilled ( myCallbackFunction ) } void function myCallbackFunction ( ObituaryCallbackParams inputParams ) { if( inputParams.attacker == GetLocalClientPlayer() && DamageSourceIDToString(inputParams.damageSourceId) == "mp_weapon_sniper") thread myOnKillFunction() }