WeaponCallbacks

版本 v1.1.0·更新於 2024-06-30

Modding resource. Provide some useful callbacks.

模組介紹 作者原文

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)

安裝與使用 安裝:Northstar 用戶端模組

  1. 先安裝 Northstar 用戶端(Titanfall 2 的開源社群用戶端,官方發布頁提供安裝器),模組由它載入。
  2. 把本站下載的壓縮包解壓,內容放入 Titanfall2 目錄下的 Northstar/mods/ 資料夾。
  3. 透過 NorthstarLauncher.exe 啟動遊戲,控制台會列出已載入的模組。

Northstar 用於私人伺服器與自訂內容,請勿用它連線官方伺服器。

檔案與校驗

檔案名稱
WeaponCallbacks-1.1.0.zip
檔案大小
40.6 KiB