Vdauphin e9c1f5e18f
Medical - Improve injured sound by exiting the function earlier if no player is around (#7521)
* Exit earlier the playInjuredSound if no player is around

* Check if _targets array has at least one player

* Remove useless parenthesis

Co-Authored-By: commy2 <commy-2@gmx.de>

* Handle player inside a vehicle

If any player is inside the area then the _targets will not be empty. This also handle the case where player is inside a vehicle or _unit is a player.

* Handle z axis

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

Co-authored-by: commy2 <commy-2@gmx.de>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2020-06-19 19:42:23 -05:00
..
2019-03-30 11:07:54 -05:00
2019-03-30 11:07:54 -05:00
2018-04-27 15:21:49 +01:00