
You are viewing a potentially older version of this package. View Latest Version

This will show the damage and kill in your upper right like apex.
AddCallback_DamageFlyout( void functionref( float, vector, entity, bool, bool ) )AddCallback_Obituary( UpdateDamage )
void function UpdateDamage(float damage, vector damagePosition, entity victim, bool isCrit, bool isIneffective)
"ConVars": [
{
// Position.Left top 0 0 0.Right Bottom 1 1 0.Use Space to separate.
"Name": "Position",
"DefaultValue": "0.86 0.08 0.0"
},
{
// RGB
"Name": "Color",
"DefaultValue": "240 248 255"
},
{
"Name": "Alpha",
"DefaultValue": "1.0"
},
// Text size
{
"Name": "Size",
"DefaultValue": "24.0"
},
// Format string, custom your display style here. Use \n to start a new line.
{
"Name": "Format",
"DefaultValue": "DMG: {DAMAGE} KILL: {KILL}"
},
// The damage can be float. If false, the damage will show as integer.
{
"Name": "UseFloat",
"DefaultValue": "false"
}
]
| mod.json
|
\---mod
\---scripts
\---vscripts
| l1nexus_damage_display.nut
|
\---client
| cl_player.gnut
|
\---rui
cl_hud.gnut