WeaponCallbacks

v1.1.0·Updated 2024-06-30

Modding resource. Provide some useful callbacks.

About this mod Author’s original text

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)

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
WeaponCallbacks-1.1.0.zip
File size
40.6 KiB