Jump to content

chazbotic

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About chazbotic

  • Rank
    Newbie
  1. i didn't see an actual drop-in solution for the issue where the EntityKilled eventHandler when using ace_medical has _killer and _killed as the same. this is because of the eventHandler ace_medical uses in order to intercept damage, implement the ACE3 medical system, then apply damage to the unit. the unit effectively shows as killing themselves most of the time when the damage isn't instantaneous (and preventInstaDeath is disabled). so i wrote a modifiable snippet that you can copy/paste into init.sqf to handle the issue. you can modify the string reported as needed, however currently it reports on unarmed/armed civilian deaths, surrendered or captive prisoner deaths, and teamkills. because the ace_medical_lastDamageSource variable is set locally and not meant to be broadcast, i found it much easier to have two ifthens: one that is handled where the unit is local to the server (owner _killed == clientOwner) and one where the unit is local to some other player, ie zeus (hasInterface && (!isServer) && (local _killed)). this avoids the need to transmit the variable at all, and simply asks where these cases are true to remoteExec broadcase the string where appropriate. i use str text format for systemChat because hint and parsetext seemed inappropriate for a ticker notice. ideally i would like to use switchdo and cases to cat the strings together more cleanly but my initial attempt was a little messy and i'll revisit it some other time. you can place this copy/paste into init.sqf. while it adds the event handler to the server and all clients, it will only print messages for hosted missions or for a zeus player. this is working for player hosted missions, dedicated server, as well as persistent missions. it should also work for headless clients, but i haven't tried that.
×