
Command Under Attack widget by TechnoTone and BigHead
Version 2.00
--------------------------------------------------------------------------------------------------------------------------
Display a warning message and plays a sound when your commander is under attack. The warning sound can be found in the LuaUI\Sounds folder and can be replaced with a sound of your own if you wish - just give it the same filename. It is currently using the original TA sound effect.
Configurable options (editing of the lua file required):
local criticalHealthPercent = 40
local drawNoobHint = true
local disableWhenSpectating = false
local SOUND_DIRNAME = LUAUI_DIRNAME .. 'Sounds/'
--------------------------------------------------------------------------------------------------------------------------
Update Log:
1.01 - Fixed a typo which caused the script to fail when a commander was lost.
1.01 - Removed a debugging message that echo'd to the console when a commander is attacked.
1.02 - Disables when player is/becomes a spectator.
1.02 - Renamed (was called "Commander Under Fire").
Update by BigHead (many thanks!):
2.00 - Alarm is sounded only if commanders health is below configurable % (default 40%).
2.00 - Alarm is sounded only if the commander is not selected.
2.00 - No longer alarmed when allies are attacked.
2.00 - Configurable noob hint; enabled by default and which should be disabled by anyone with at least some self-respect
--------------------------------------------------------------------------------------------------------------------------