ClPlayerCallback

版本 v1.2.0·更新於 2024-10-05

Modding resource. Provide some useful callbacks.

模組介紹 作者原文

This mod provides some useful functions in client.

You should not install this until you are told.

Functions

cl_player.gnut

///

/// All these callbacks are base on remote-call callbacks and clientcodeback.

/// I don't promise anything if these works well.

/// You can contact me through the Discord with @raintrap341.

///

// This allows you to get the entity your crosshair look at.

void function AddCallback_CrosshairCurrentTargetChanged( void functionref( entity player, entity newTarget ) callbackFunc )

// When localplayer did damage

// global struct PlayerDidDamageParams

// {

// entity victim

// vector damagePosition

// int hitBox

// int damageType

// float damageAmount

// int damageFlags

// int hitGroup

// entity weapon

// float distanceFromAttackOrigin

// }

void function AddCallback_PlayerDidDamage( void functionref( PlayerDidDamageParams ) callbackFunc )

// Get called in PlayerConnectedOrDisconnected() after print connection string.

void function AddCallback_OnPlayerConnected( void functionref( entity player ) callbackFunc )

// These two callbacks called before the obituary-print.

// It returns if it finds the victim is player titan. NPC/Players are both entity.

void function AddCallback_OnEntityKilled(void functionref(entity attacker, entity victim, int scriptDamageType, int damageSourceID) callbackFunc)

// DOOMED means KILLED for players' titans(auto included). AITDM eg.

void function AddCallback_OnTitanKilled(void functionref(entity attacker, entity victim, int scriptDamageType, int damageSourceID) callbackFunc)

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

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

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

檔案與校驗

檔案名稱
ClPlayerCallback-1.2.0.zip
檔案大小
28.2 KiB