ClientKillCallback

v2.0.1·Updated 2023-04-23

Used as a dependency for other mods, resource for modders.

About this mod Author’s original text

KillCallback

Adds a client sided callback triggered each player kill in the match.

Note:

Thanks to Fifty#8113 and Spoon#1812 as they did most of the work on this.

For end users:

This alone does nothing but is required for other mods to function.

If another mod listed this one as its dependency, download it!

For modders:

Changelog:

  • v2.0.1:
  • Added bool victimIsOwnedTitan to callback params

Due to the new update, all mods which require this one must be updated (v1.0.0 -> v2.0.0+).

AddClientCallback_OnPlayerKilled ( void functionref ( ObituaryCallbackParams {entity victim, entity attacker, int damageSourceId, int scriptDamageType} ) customCallback)

With the new update made by Uniboi, the arguments of current callbacks need to be replaced with an ObituaryCallbackParams struct.

The struct currently contains:

  • entity attacker
  • entity victim
  • int damageSourceId
  • int scriptDamageType
  • bool victimIsOwnedTitan

Example:

void function afterClientInit(){

AddCallback_OnPlayerKilled ( myCallbackFunction )

}

void function myCallbackFunction ( ObituaryCallbackParams inputParams ) {

if(inputParams.attacker == GetLocalClientPlayer() && DamageSourceIDToString(inputParams.damageSourceId) == "mp_weapon_sniper")

thread myOnKillFunction()

}

Note: this is triggered each time a player gets killed in a match, not just by the client player. If you only care about client player's kills, simply check if inputParams.attacker == GetLocalClientPlayer()

Install & use Install: Northstar client mod

  1. Install the Northstar client first (the open-source community client for Titanfall 2; its release page provides an installer). It loads the mods.
  2. Unzip the archive from playbuff and put its contents into the Northstar/mods/ folder inside your Titanfall2 directory.
  3. Start the game through NorthstarLauncher.exe — the console lists the mods it loaded.

Northstar is for private servers and custom content; do not use it to connect to official servers.

File & checksum

Filename
ClientKillCallback-2.0.1.zip
File size
42.8 KiB
SHA-256
b125a296a5994d08923fc5aa075498ddaef32f554db33e0324138b2931d68c5f
Stored at
2026-10-06 19:09