-
Notifications
You must be signed in to change notification settings - Fork 740
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
Overpressure - Separate backblast and overpressure range coefficient #10070
Conversation
Ready for review. |
Extra setting is good, but why move the config lookups? I would do as follows
_return = [
(getNumber (_config >> QGVAR(angle))),
(getNumber (_config >> QGVAR(range))),
(getNumber (_config >> QGVAR(damage))),
(getNumber (_config >> QGVAR(offset)))
];
_bbValues params ["_backblastAngle", "_backblastRange", "_backblastDamage", "_offset"];
_backblastRange = _backblastRange * GVAR(backblastDistanceCoefficient);
_opValues params ["_dangerZoneAngle", "_dangerZoneRange", "_dangerZoneDamage"];
_dangerZoneRange = _dangerZoneRange * GVAR(overpressureDistanceCoefficient); |
Exactly what I was trying to do, my brain was quite fried the other day so I just went the hardcoded way. I'll implement this. |
Probably want to change title to something like "separate backblast and overpressure range coefficient" LGTM tho |
Thanks @LinkIsGrim |
Co-authored-by: Drofseh <[email protected]>
Co-authored-by: Drofseh <[email protected]> Co-authored-by: johnb432 <[email protected]>
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.
- need to change xeh_postInit (lines 4 and 5)
- can remove ACE_Settings.hpp
Co-authored-by: PabstMirror <[email protected]>
Co-authored-by: Drofseh <[email protected]>
Will fix all this later today. Thanks for the reviews. |
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
temporary solution until i figure out the EH Co-authored-by: johnb432 <[email protected]>
Im gonna be honest, no clue what im doing with the stringtables lol |
I'll try to take care of it. |
Do we want to add separate arsenal stats for overpressure? I imagine it's not necessary, given that infantry weapons usually don't create overpressure - or am I mistaken? |
They don't |
I know the Barrett 50cal creates some kinda backblast (as you could expect from needing a massive muzzle break and the heavy recoil mitigation for a stupidly powerful ammo like that) but dunno about overpressure nor the force of it. Currently the only indication of it in the game is the dust/sand. |
Are you sure about that? |
Rifles (especially with aggressive muzzle brakes or porting) can create uncomfortable conditions for those around them, but not to the degree of backblast/overpressure caused by launchers and cannons. Many shooting ranges have mufflers like these to make shooting nicer for the people at the next station. https://enoughgun.com/forum/download/file.php?id=4719&sid=c2eede1b5f90baab724bf9b8691273db |
It'd be cool, but im not too sure how I'd implement such setting, I am not familiar with the Arma 3 Config system. On the other hand, I dont think it'd be used much, heavy weapon users do tend to be separated too mcuh for a feature like this to be worth noticing, whilist vehicle ovepressure is very noticeable if you are next to a tank. |
Don't, it's not worth doing imo. I was just pointing out that rifles can have a certain amount of muzzle blast. |
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.
In general looks good to me, but I'd ideally like to see the setting name reverted to what is was previously, instead of replacing it with a new one. Given nobody else from the ACE team has voiced their support for that, we'll leave it as it is atm.
…cemod#10070) * feat: separate overpressure and backblast configurations * documentation: remove undefined return * typo: trace macro padding * refactor: add range<number> return * refactor: reuse return values for overpressure coef * refactor: reuse return values for backblast coef * whitespace Co-authored-by: Drofseh <[email protected]> * headers Co-authored-by: Drofseh <[email protected]> Co-authored-by: johnb432 <[email protected]> * feat: change backblast limit to 0 Co-authored-by: PabstMirror <[email protected]> * remove: deleted ACE_Settings.hpp * fix: update postInit.sqf event handler to register new GVARs * fix: remove `ACE_Settings.hpp` * typo: add spacing Co-authored-by: Drofseh <[email protected]> * typo: fix spacing Co-authored-by: johnb432 <[email protected]> * feat: switch distanceCoef minimun value to 0 Co-authored-by: johnb432 <[email protected]> * typo: update the slider checks with new minimuns temporary solution until i figure out the EH Co-authored-by: johnb432 <[email protected]> * feat: new stringable elements * Update stringtable.xml * Added translations * Switched order of settings to match age of settings * setting require restart, split adding firedEH * Added notifications about mission restart --------- Co-authored-by: Grim <[email protected]> Co-authored-by: Drofseh <[email protected]> Co-authored-by: johnb432 <[email protected]> Co-authored-by: PabstMirror <[email protected]>
When merged this pull request will:
The original code forced all backblast and overpressure coefs to work together as one, meaning if you wanted the backblast of an RPG but not the overpressure of a tank firing, you just couldnt do it.
Now you can configure each individually through the range slider.
Notes: This is my first PR for SQF code & ACE ever, I'd appreciate all critcisim regarding the code and possible improvements.
IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.