DamageDisplay

版本 v1.1.0·更新於 2022-04-11

Display your damage and kills like Apex.

模組介紹 作者原文

What this mod brings

This will show the damage and kill in your upper right like apex.

New callbacks

AddCallback_DamageFlyout( void functionref( float, vector, entity, bool, bool ) )

AddCallback_DamageFlyout( UpdateDamage )

void function UpdateDamage(float damage, vector damagePosition, entity victim, bool isCrit, bool isIneffective)

AddCallback_OnPlayerDie( void functionref( entity, entity, int ) )

AddCallback_OnPlayerDie( OnPlayerKilled )

void function OnPlayerKilled( entity attacker, entity victim, int damageSourceId )

Mod.json

Convars

"ConVars": [

{

// Position.Left top 0 0 0.Right Bottom 1 1 0.Use Space to separate.

"Name": "damage_display_position",

"DefaultValue": "0.86 0.08 0.0"

},

{

// RGB

"Name": "damage_display_color",

"DefaultValue": "240 248 255"

},

{

"Name": "damage_display_alpha",

"DefaultValue": "1.0"

},

// Text size

{

"Name": "damage_display_size",

"DefaultValue": "24.0"

},

// Format string, custom your display style here. Use \n to start a new line.

{

"Name": "damage_display_format",

"DefaultValue": "DMG: {DAMAGE} KILL: {KILL}"

},

// The damage can be float. If false, the damage will show as integer.

{

"Name": "damage_display_usefloat",

"DefaultValue": "false"

}

]

Files

│ mod.json

│

└─mod

└─scripts

└─vscripts

│ l1nexus_damage_display.nut

│ sh_damage_utility.gnut

│

└─client

│ cl_player.gnut

│

└─rui

cl_hud.gnut

Further updates

  • Use rui with images instead of text-only.

Update log

v0.0.1

  • Upload

v1.0.2

  • Update Convars.

v1.0.3

  • Fix crush to main menu with titan. Now it works normally with titan cockpit.

v1.1.0

  • Fix. The execution damage will count. And kills by your auto-titan/turrets/spectres will count too.

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

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

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

檔案與校驗

檔案名稱
DamageDisplay-1.1.0.zip
檔案大小
122.0 KiB