-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hearing - Fix explosions not affecting hearing #10002
Hearing - Fix explosions not affecting hearing #10002
Conversation
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This needs more work. |
I'm happy with it as it is. I've tested modded arty too and it works well enough all round. |
Tested in MP, LGTM |
addMissionEventHandler ["ProjectileCreated", { | ||
params ["_projectile"]; | ||
|
||
if (!local _projectile) exitWith {}; | ||
|
||
// Rockets only explode on local clients | ||
_projectile addEventHandler ["Explode", { | ||
[QGVAR(explosion), _this] call CBA_fnc_globalEvent; | ||
}]; | ||
}]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be moved to common, if the frag rewrite needs it.
* Have explosions affect hearing * Update fnc_explosion.sqf * Update XEH_postInit.sqf * Update addons/hearing/functions/fnc_explosion.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com> * Update fnc_explosion.sqf * Make EH local * Use sound entry instead --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com>
I'm sorry I can't create correct Issue now. It looks like after this PR
|
When merged this pull request will:
I have only done some testing with artillery shells and grenades, needs much more testing.
IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.