Update Range.lua (#1825)

Add meter text to RANGE bombing result.
This commit is contained in:
TommyC81 2022-11-06 22:33:44 +04:00 committed by GitHub
parent e93bb5ceba
commit 88fc501c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2259,7 +2259,7 @@ function RANGE:onafterImpact( From, Event, To, result, player )
end end
-- Send message to player. -- Send message to player.
local text = string.format( "%s, impact %03d° for %d ft", player.playername, result.radial, UTILS.MetersToFeet( result.distance ) ) local text = string.format( "%s, impact %03d° for %d ft (%d m)", player.playername, result.radial, UTILS.MetersToFeet( result.distance ), result.distance )
if targetname then if targetname then
text = text .. string.format( " from bulls of target %s.", targetname ) text = text .. string.format( " from bulls of target %s.", targetname )
else else