Skip to content

Add Ability to Land in Water Safely#7

Draft
ampersand38 wants to merge 25 commits into
mjc4wilton:masterfrom
ampersand38:water-jump
Draft

Add Ability to Land in Water Safely#7
ampersand38 wants to merge 25 commits into
mjc4wilton:masterfrom
ampersand38:water-jump

Conversation

@ampersand38
Copy link
Copy Markdown
Contributor

When merged this pull request will:

Comment thread addons/main/CfgVehicles.hpp
@mjc4wilton
Copy link
Copy Markdown
Owner

Overall code looks fine. Just a few things regarding format / naming. I'm going to hold off on merging until I can playtest it a bit which I would have done already provided that I didn't just come back from vacation to find that my hard drive with all my dev tools and dev environment has died.

@mjc4wilton mjc4wilton changed the title Water jump Add Ability to Land in Water Safely Jan 11, 2022
@mjc4wilton
Copy link
Copy Markdown
Owner

Alright pointed out a few things I found from playtesting. For reference these are the requirements I want to put on this PR before I merge it just to ensure everything is working in a rather simple way:

  • Chestpack floats when dropped into water
  • Chestpack doesn't have a float when dropped onto land
  • If player has a parachute equipped with a chestpack, allow them to drop the parachute via ACE interact regardless of land / water
  • Items shouldn't be auto-deleted. If they are, have that tied to a CBA setting to enable it. (at least when it comes to gear)
  • No errors thrown to screen or log
  • No use of #, just use select.

Comment thread addons/main/functions/fnc_actionCutLoweringLine.sqf Outdated
Comment thread addons/main/functions/fnc_actionCutLoweringLine.sqf Outdated
Comment thread addons/main/functions/fnc_actionLower.sqf Outdated
Comment thread addons/main/functions/fnc_actionLower.sqf Outdated
Comment thread addons/main/functions/fnc_actionLower.sqf Outdated
Comment thread addons/main/XEH_postInit.sqf Outdated
Comment on lines +49 to +54
if (hasInterface) then {
_holder addaction ["Discard", {
// Make pack sink
((_this # 0) getVariable QGVAR(float) setMass 10000);
}, nil, 7, true, true, "", "firstBackpack _target isKindOf 'B_Parachute'"];
};
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
if (hasInterface) then {
_holder addaction ["Discard", {
// Make pack sink
((_this # 0) getVariable QGVAR(float) setMass 10000);
}, nil, 7, true, true, "", "firstBackpack _target isKindOf 'B_Parachute'"];
};

This addaction is broken it seems since it add an action to discard whatever backpack you have if you are swimming. Additionally, I'd much rather muddle around and shove actions into ace than an infinite scroll menu since that just gets annoying.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This action should actually get added to the weaponHolder that is holding the used parachute that has just been discarded, and would make it sink and get deleted once it's no longer relevant to the player. I felt it was on the same sort of level as the Release vanilla action you get when escorting a prisoner. Should this be done in an ace action?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Leave it as an ACE action as to not clutter up the scroll menu since I personally hate it (the menu not your feature). As for the feature itself, decouple it from the action so a function can call it to sink a pack which would probably be more useful for those making automated cleanup scripts and the like.

Comment thread addons/main/XEH_postInit.sqf Outdated
Comment thread addons/main/functions/fnc_floatPack.sqf Outdated
Comment thread addons/main/functions/fnc_floatPack.sqf
@mjc4wilton
Copy link
Copy Markdown
Owner

Apologies for review taking longer. Aparantly github needs them to be published now in addition to adding the comments?

ampersand38 and others added 9 commits January 11, 2022 20:52
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
@ampersand38
Copy link
Copy Markdown
Contributor Author

needs them to be published now

No worries. I found that out to my surprise on the H-60 project too xD

ampersand38 and others added 2 commits January 11, 2022 21:10
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
ampersand38 and others added 2 commits January 11, 2022 21:11
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
Co-authored-by: mjc4wilton <mjc4wilton@gmail.com>
@ampersand38 ampersand38 marked this pull request as draft October 24, 2023 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants