Add Ability to Land in Water Safely#7
Conversation
Game seems to crash when trying to detach the ropeTop and attach it again the same frame
|
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. |
|
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:
|
| 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'"]; | ||
| }; |
There was a problem hiding this comment.
| 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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
|
Apologies for review taking longer. Aparantly github needs them to be published now in addition to adding the comments? |
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>
No worries. I found that out to my surprise on the H-60 project too xD |
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>
When merged this pull request will: