FrontierDefenseCallback

版本 v2.0.0·更新於 2024-09-03

Modding resource. Provide some useful callbacks on FD.

模組介紹 作者原文

This mod provides some useful functions on FD in client.

You should not install this until you are told.

Functions

mp_fd_custom_callbacks.gnut

// get the harvester entity in FD

entity function FD_GetHarvester() // IsValid(ent) check on it before call. The harvester entity always stay the same even after retries. Its get 1hp left after destroyed actually.

// use the shieldboost, same as comman behaviour

void function UseHarvesterShieldBoost( entity player )

bool function PlayerHasCoreOverloadReady( entity player )

bool function PlayerHasArcTrapReady( entity player )

bool function PlayerHasSentryTurretReady( entity player )

bool function PlayerHasHarvesterShieldBoost( entity player )

// callbacks. Its possible to handle the harvester entity.

void function AddCallback_OnHarvesterShieldDamaged( void functionref(entity harvester, int oldShield, int newShield) callbackFunc )

void function AddCallback_OnHarvesterHealthDamaged( void functionref( entity harvester, int oldHealth, int newHealth ) callbackFunc )

// only call when store opens.

void function AddCallback_OnNotifyStoreOpen( void functionref( ) callbackFunc )

// Functions below are a simple package of GetGlobalNetInt( str ). Dont use them if you know how to get NetworkedVariable properly.

// Returns -1 if there is no targets. If the return-value <= 0, means there is no target entities.

int function FD_GetTitanCount // There maybe some args to help filter in later version.

int function FD_GetNukeTitanCount

int function FD_GetMortarTitanCount

int function FD_GetArcTitanCount

int function FD_GetGruntCount

int function FD_GetSpectreCount

int function FD_GetMortarCount

int function FD_GetStalkerCount

int function FD_GetReaperCount

int function FD_GetTicksCount

int function FD_GetDroneCount

int function FD_GetCloakDroneCount

int function FD_GetCurrentCount // Obviously the current enemies ai count.

int function FD_GetTotalCount // The total of each wave.

int function FD_TotalWaves // Usually 5.

int function FD_CurrentWave // It starts with 0.

int function FD_RestartsRemaining // 0-2

int function FD_TeamWaveScore // I don't know whats this exactly.

float function FD_HarvesterInvulTime // The shieldboost.

float function FD_NextWaveStartTime

bool function FD_ReadyForNextWave // Not work. No NetworkedVar FD_readyForNextWave exists

bool function FD_WaveActive

int function FD_WaveState // I don't know whats state exactly.

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

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

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

檔案與校驗

檔案名稱
FrontierDefenseCallback-2.0.0.zip
檔案大小
12.6 KiB
SHA-256
6cf8f8b1d768169355c7c31c5bced645c3e857d7f31f36be65b76328a734e899
入庫時間
2026-10-12 00:53