mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 21:29:59 +03:00
AI hit messages and continuity
This changes the hit messages to only show AI instead of the AI's names. Changes this: 20:08:37 "P1ayer PID#7(salival) hit by PID#1(Qadeer Hakimi) with vil_G36VA4Eot/B_556x45_Ball <ammo left:25> from 356 meters in head_hit for 0 damage" To this: 20:08:37 "P1ayer PID#7(salival) hit by AI with vil_G36VA4Eot/B_556x45_Ball <ammo left:25> from 356 meters in head_hit for 0 damage" Sanity fix for hit and kill for vehicles so they match: Before: 22:44:03 "P1ayer PID#3(salival) hit by AI in Pickup (PK) DZ from 15 meters in head_hit for 0.88666 damage" After: 22:44:03 "P1ayer PID#3(salival) hit by AI with a Pickup (PK) DZ from 15 meters in head_hit for 0.88666 damage" Kill message: 22:44:04 "salival (76561197999617086) salival was killed by AI with a Pickup_PK_INS_DZ from 15m"
This commit is contained in:
@@ -171,7 +171,7 @@ if (_unit == player) then {
|
||||
_sourceDist = round(_unit distance _source);
|
||||
_sourceWeap = switch (true) do {
|
||||
case (_ammo in ["PipeBomb","Mine","MineE"]): { format["with %1",_ammo] };
|
||||
case (_isVehicle) : { format ["in %1",getText(configFile >> "CfgVehicles" >> _sourceVehicleType >> "displayName")] };
|
||||
case (_isVehicle) : { format ["with a %1",getText(configFile >> "CfgVehicles" >> _sourceVehicleType >> "displayName")] };
|
||||
case (_ammo in MeleeAmmo) : { format ["with %2%1",_wpst select 0, if (_sourceDist>6) then {"suspicious weapon "} else {""}] };
|
||||
case (_wpst select 0 == "Throw") : { format ["with %1 thrown", _wpst select 3] };
|
||||
case (["Horn", currentWeapon _source] call fnc_inString) : {"with suspicious vehicle "+str((getposATL _source) nearEntities [["Air", "LandVehicle", "Ship"],5])};
|
||||
|
||||
Reference in New Issue
Block a user