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

Cookoff - Fix shell detonation #6979

Merged
merged 13 commits into from
May 6, 2019

Conversation

TheCandianVendingMachine
Copy link
Contributor

When merged this pull request will:

ShotShell requires velocity to properly simulate itself, so when detonating ammo always give it velocity. The RHS vehicle example in the issue is just a ShotShell that looks like a missile

Example:
https://youtu.be/GinftkYl5Mo

Copy link
Contributor

@commy2 commy2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@commy2 commy2 added the kind/bug-fix Release Notes: **FIXED:** label May 5, 2019
@commy2 commy2 added this to the 3.12.7 milestone May 5, 2019
@AirShark07
Copy link

Great this must be it !

@PabstMirror PabstMirror changed the title Fix shell detonation in cookoff Cookoff - Fix shell detonation May 6, 2019
@PabstMirror PabstMirror merged commit 709548c into acemod:master May 6, 2019
@@ -87,7 +87,7 @@ if (_amountOfMagazines > 0) exitWith {
playSound3D [_sound, objNull, false, (getPosASL _vehicle), 2, 1, 1300];

if (random 1 < 0.15) then {
[_vehicle, _ammo, _speed, random 1 < 0.15] call _spawnProjectile;
[_vehicle, _ammo, _speed, true] call _spawnProjectile;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need the _flyAway parameter in _spawnProjectile if we always set it to true.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For shotgrenade and a few others it is still randomized. See L97ff

@kymckay
Copy link
Member

kymckay commented May 8, 2019

Only thing missing here is I would have added a comment above this line explaining as much for future reference

@PabstMirror PabstMirror modified the milestones: 3.12.7, 3.13.0 Jul 5, 2019
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
* abc

* Revert "abc"

This reverts commit bcb4214.

* Update to current commit

* ShotShell requires velocity to simulate itself, so always spawn it with velocity
@PabstMirror PabstMirror modified the milestones: 3.13.0, 3.13.0-temp2 Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ace ammo cook off in vehicles bug (floating rockets)
6 participants