-
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
Overpressure - Add editor range attribute for vehicles #10411
Conversation
note: doesnt work yet
it works fine now
Why are all the tabs failing OH MY GOD |
TODO:
|
Okay, I fixed EVERYTHING - This PR is ready for review & merge. |
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
private _unitOverpressureRangeAttribute = _unit getVariable QEGVAR(overpressure,distance); | ||
|
||
// If -1 (disabled) we return to server value, otherwise we use the given value. | ||
_dangerZoneRange = _dangerZoneRange * [_unitOverpressureRangeAttribute, GVAR(overpressureDistanceCoefficient)] select (_unitOverpressureRangeAttribute < 0); |
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.
help[L-S12]: Invalid Args - [B:*]
┌─ addons/overpressure/functions/fnc_firedEHOP.sqf:29:37
you are multiplying a number times an array
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.
forgot parentheses
@@ -22,7 +22,11 @@ TRACE_8("firedEH:",_unit,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile,_gunn | |||
private _opValues = [_weapon, _ammo, _magazine] call FUNC(getOverPressureValues); | |||
|
|||
_opValues params ["_dangerZoneAngle", "_dangerZoneRange", "_dangerZoneDamage"]; | |||
_dangerZoneRange = _dangerZoneRange * GVAR(overpressureDistanceCoefficient); | |||
|
|||
private _unitOverpressureRangeAttribute = _unit getVariable QEGVAR(overpressure,distance); |
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.
this will be undefined for most cases
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.
Shouldn't the editor attribute set it to -1 because of default value?
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.
private _unitOverpressureRangeAttribute = _unit getVariable QEGVAR(overpressure,distance); | |
private _unitOverpressureRangeAttribute = _unit getVariable [QEGVAR(overpressure,distance), -1]; |
in any case
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.
not working
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Signed-off-by: bluefield <59333909+bluefieldcreator@users.noreply.github.com>
Signed-off-by: bluefield <59333909+bluefieldcreator@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Signed-off-by: bluefield <59333909+bluefieldcreator@users.noreply.github.com>
I think... that's it... I hate the GH phone app, I thought it merged your changes. My bad |
Signed-off-by: bluefield <59333909+bluefieldcreator@users.noreply.github.com>
Finally... :D |
When merged this pull request will:
Problem: if the user has the server setting set to 10 (example) and a mission maker wants to set a vehicle's value to 0, it wont work. Since we check for >= 0.1I cant figure out a good system other than making an entire new overpressure setting called "enable overpressure" as a checkbox instead of the range slider.There might be some use cases where a user may want to disable overpressure on some vehicles, and change the values of others, which would require both... so I might update this in the future to add such use case.Important bits of code: cfgEden.hpp & fnc_firedEHOP.sqf
2nd ever PR i appreciate all feedback. 🥲
IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.