Skip to content
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

Merged
merged 33 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1848969
feat: overpressure settings
bluefieldcreator Oct 13, 2024
10c1601
fix: stuff
bluefieldcreator Oct 13, 2024
e19ee0e
feat: overpressure slider
bluefieldcreator Oct 13, 2024
365877e
style: remove macro padding
bluefieldcreator Oct 13, 2024
db5bdee
doc: fix typo
bluefieldcreator Oct 13, 2024
93cf975
lint: fix tabs
bluefieldcreator Oct 13, 2024
791022c
refactor: switch slider attribute to text attribute & add -1 check.
bluefieldcreator Oct 13, 2024
1f613f0
fix: change to localized strings
bluefieldcreator Oct 13, 2024
6285a18
fix: typo
bluefieldcreator Oct 13, 2024
dcbedf0
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 13, 2024
b10cd76
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 13, 2024
92b8b8b
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 13, 2024
1cb0ce0
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 13, 2024
c2273e9
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 13, 2024
9f85f2c
feat: rename CfgEden
bluefieldcreator Oct 13, 2024
0c3cc8f
Merge branch 'master' of github.com:anomia-org/ACE3
bluefieldcreator Oct 13, 2024
b6aae55
Rename: part 1
bluefieldcreator Oct 13, 2024
21c892a
Rename: Part 2
bluefieldcreator Oct 13, 2024
9865705
Update addons/overpressure/CfgEden.hpp
bluefieldcreator Oct 13, 2024
07df160
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 13, 2024
bdef984
Update fnc_firedEHOP.sqf
bluefieldcreator Oct 13, 2024
2ae3b15
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 14, 2024
773eab5
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 14, 2024
0c18cc6
Merge branch 'acemod:master' into master
bluefieldcreator Oct 19, 2024
8525e82
Update config.cpp
bluefieldcreator Oct 19, 2024
e1ee573
Update AUTHORS.txt
bluefieldcreator Oct 19, 2024
965429f
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 19, 2024
144bdd6
Update addons/overpressure/CfgEden.hpp
bluefieldcreator Oct 19, 2024
6b963d9
Update addons/overpressure/functions/fnc_firedEHOP.sqf
bluefieldcreator Oct 19, 2024
152115a
Update fnc_firedEHOP.sqf
bluefieldcreator Oct 19, 2024
f5d7dc4
Merge branch 'acemod:master' into master
bluefieldcreator Oct 20, 2024
7102c9c
Update fnc_firedEHOP.sqf
bluefieldcreator Oct 20, 2024
5fd440f
Merge branch 'acemod:master' into master
bluefieldcreator Oct 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Barman75
Bla1337
BlackPixxel <blackpixxel96@gmail.com>
BlackQwar
Bluefield <tatsuyahayami1@gmail.com>
Brakoviejo
Brisse <brisse@outlook.com>
Brostrom.A | Evul <andreas.brostrom.ce@gmail.com>
Expand Down
21 changes: 21 additions & 0 deletions addons/overpressure/CfgEden.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class Cfg3DEN {
class Object {
class AttributeCategories {
class ace_attributes {
class Attributes {
class GVAR(overPressureDistanceSetting) {
displayName = CSTRING(distanceCoefficient_displayName);
tooltip = CSTRING(distanceCoefficient_toolTip);
property = QUOTE(overpressureDistanceCoefficient);
control = "Edit";
expression = QUOTE(if (_value >= 0) then { _this setVariable [ARR_3(QQGVAR(distance),_value,true)] });
defaultValue = -1;
validate = "number";
typeName = "NUMBER";
condition = "objectVehicle";
};
};
};
};
};
};
1 change: 1 addition & 0 deletions addons/overpressure/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp"
#include "CfgWeapons.hpp"
#include "ACE_Arsenal_Stats.hpp"
#include "CfgEden.hpp"
5 changes: 4 additions & 1 deletion addons/overpressure/functions/fnc_firedEHOP.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ 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), GVAR(overpressureDistanceCoefficient)];

_dangerZoneRange = _dangerZoneRange * ([_unitOverpressureRangeAttribute, GVAR(overpressureDistanceCoefficient)] select (_unitOverpressureRangeAttribute < 0));

TRACE_3("cache",_dangerZoneAngle,_dangerZoneRange,_dangerZoneDamage);
bluefieldcreator marked this conversation as resolved.
Show resolved Hide resolved

Expand Down