-
Notifications
You must be signed in to change notification settings - Fork 736
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
Frag - Implement Arma v2.18 changes from #10157 #10313
base: master
Are you sure you want to change the base?
Frag - Implement Arma v2.18 changes from #10157 #10313
Conversation
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: johnb432 <[email protected]>
…en it was an init function based on ammunition extended eventhandlers, missed the revert.
…ments array into a define
@lambdatiger Can you handle the merge conflicts? |
There's one more 2.18 change that came from #10247 that isn't present in this PR yet. I'll test it again later this week before I commit it. |
There's no hurry, given that 2.18 won't release until sometime in october (and I doubt we will release a day 1 patch). |
That aged like milk... |
I'll run through it tomorrow and let you know if it's good to go. |
Alright, new feature isn't easily added. I'll address any other changes in #9728. Testing seems to work like it should, no issues and the new |
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.
Other than that, LGTM
// Distribute evenly | ||
private _sectorOffset = 360 * (_i - 1) / (_randomCount max 1); | ||
private _randomDir = random (_sectorSize); | ||
private _vectorDir = [cos (_sectorOffset + _randomDir), sin (_sectorOffset + _randomDir), sin (30 - (random 45))]; | ||
|
||
private _fragObjSpeed = _fragVelocity * (1 - random 0.5); |
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.
Correct indentation.
}; | ||
|
||
TRACE_1("total created",_fragCount); | ||
|
||
END_COUNTER(frago); | ||
_fragCount |
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.
_fragCount | |
_fragCount // return |
|
||
// compile possible targets including units, vehicles, and crews | ||
private _targets = [_fragPosAGL, _fragRange, _fragRange, 0, false, _fragRange] nearEntities [["Car", "Motorcycle", "Tank", "StaticWeapon", "CAManBase", "Air", "Ship"], false, true, true]; | ||
if (_targets isEqualTo []) exitWith { | ||
TRACE_2("No nearby targets",_fragPosAGL,_fragRange); | ||
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.
0 | |
0 // return |
private _objects = _fragPosAGL nearEntities [["Car", "Motorcycle", "Tank", "StaticWeapon", "CAManBase", "Air", "Ship"], _fragRange]; | ||
if (_objects isEqualTo []) exitWith { | ||
|
||
// compile possible targets including units, vehicles, and crews |
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.
// compile possible targets including units, vehicles, and crews | |
// Compile possible targets including units, vehicles, and crews |
This PR requires #10157 to be merged.
When merged this pull request will:
Use_instigator
projectile "HitPart" event handler argument instead of retrievingshotParents
.nearEntities
to avoid needing to sort/filter the fragment target arrays.IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.