Added "infantry killed" radio messages

This commit is contained in:
Ambroise Garel 2025-07-25 17:47:55 +02:00
parent ea97c40f25
commit 05f93728ec
7 changed files with 12 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -35,6 +35,13 @@ Library.radioMessages = {
"Splash $1, good kill.",
"$1's cooked, smoke's up."
}, -- "$1" should be "vehicle" in audio version
pilotKillInfantry = {
"$1 neutralized.",
"Enemy $1 taken out.",
"Good effects on $1.",
"Confirmed hit, $1 down.",
"$1 position destroyed."
}, -- "$1" should be "infantry" in audio version
pilotKillShip = {
"Splash confirmed! Enemy $1 going under.",
"Direct hit! $1 burning and breaking up.",

View File

@ -165,8 +165,11 @@ do
killMessage = "pilotKillAir"
killUnitType = Library.objectNames.get(event.target) -- Report exact unit type for aircraft
elseif targetDesc.category == Unit.Category.GROUND_UNIT then
if event.target:hasAttribute("Infantry") then return end -- No kill message for infantry (yet?)
killMessage = "pilotKillGround"
if event.target:hasAttribute("Infantry") then
killMessage = "pilotKillInfantry"
else
killMessage = "pilotKillGround"
end
elseif targetDesc.category == Unit.Category.SHIP then
killMessage = "pilotKillShip"
elseif targetDesc.category == Unit.Category.STRUCTURE then