Last updated | 3 months ago |
Total downloads | 811 |
Total rating | 1 |
Categories | Client-side |
Dependency string | Team036-FrontierDefenseCallback-2.0.0 |
Dependants | 6 other packages depend on this package |
README
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.