-
Notifications
You must be signed in to change notification settings - Fork 739
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
Cut Parachute/Reserve parachute #1307
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f06f38a
Add Cut Parachute
jokoho48 75be6a1
TAAAABBBBSSSSSS
jokoho48 e403101
Prevent Respawn bug
jokoho48 6a5e126
Update AUTHORS.txt
jokoho48 44bc4ff
Fail J in AUTHORS.txt
jokoho48 7a012a5
chuteIsCuted -> chuteIsCut
jokoho48 48f4481
Update to ACE Standarts
jokoho48 4db9989
Add Posible to use Mod Parachutes
jokoho48 bc535c9
Fixing Privates
jokoho48 8c69ff4
reset Form SETVAR to setVariable
jokoho48 41c6ea8
Fix Reload Bug
jokoho48 ccd3fb8
Enhance some scripts
jokoho48 f8003fd
fix adding a New Parachute if one already given
jokoho48 9a212f0
Fix gettings anytime a new Parachute
jokoho48 c0afd9f
player -> ACE_player
jokoho48 1f5f5a2
ACE_player -> _unit
jokoho48 b007217
Merge branch 'master' of https://github.com/jokoho48/ACE3
jokoho48 e072245
add Compatibilty to mods where the Animation are not "para_pilot"
jokoho48 a74bc3a
Merge branch 'master' of https://github.com/acemod/ACE3 into acemod-m…
jokoho48 737753f
Merge branch 'acemod-master'
jokoho48 30111b4
Fix Merge Problems
jokoho48 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Author: joko // Jonas | ||
* Reset the parachute system. | ||
* | ||
* Arguments: | ||
* None | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Example: | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
#include "script_component.hpp" | ||
ACE_player setVariable [QGVAR(chuteIsCut), false]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Author: joko // Jonas | ||
* Reset the parachute system. | ||
* | ||
* Arguments: | ||
* 0: Object | ||
* | ||
* Return Value: | ||
* Boolean | ||
* | ||
* Example: | ||
* [player] call FUNC(checkCutParachute); | ||
* | ||
* Public: No | ||
*/ | ||
#include "script_component.hpp" | ||
private["_unit"]; | ||
_unit = _this select 0; | ||
(vehicle _unit isKindOf 'ParachuteBase' && !(_unit getvariable [QGVAR(chuteIsCut),false]) && (_unit getvariable [QGVAR(hasReserve),false])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Author: joko // Jonas | ||
* Cut Parachute and delete Old | ||
* | ||
* Arguments: | ||
* 0: Object | ||
* | ||
* Return Value: | ||
* Nothing | ||
* | ||
* Example: | ||
* [player] call FUNC(cutParachute); | ||
* | ||
* Public: No | ||
*/ | ||
#include "script_component.hpp" | ||
private["_unit","_vehicle"]; | ||
_unit = _this select 0; | ||
_vehicle = vehicle _unit; | ||
_unit action ["GetOut", _vehicle]; | ||
deleteVehicle _vehicle; | ||
_unit setVariable [QGVAR(chuteIsCut), true]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Author: joko // Jonas | ||
* Add the Reserve Parachute to Units or Save Backpack if is a Parachute in Unit | ||
* | ||
* Arguments: | ||
* None | ||
* | ||
* Return Value: | ||
* 0: Unit | ||
* 1: getAllGear-Array | ||
* | ||
* Example: | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
#include "script_component.hpp" | ||
private ["_unit","_backpack"]; | ||
_unit = _this select 0; | ||
_backpack = (_this select 1) select 6 ; | ||
if ((vehicle _unit) isKindOf "ParachuteBase" && backpack _unit == "" && !(_unit getVariable [QGVAR(chuteIsCut),false]) && (_unit getvariable [QGVAR(hasReserve),false])) then { | ||
_unit addBackpack (_unit getVariable[QGVAR(backpackClass),"ACE_NonSteerableParachute"]); | ||
} else { | ||
if ([false,true] select (getNumber(configFile >> "CfgVehicles" >> _backpack >> "ace_hasReserveParachute"))) then { | ||
_unit setVariable[QGVAR(backpackClass),getText(configFile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute")]; | ||
}; | ||
if (!(_unit getVariable [QGVAR(chuteIsCut),false]) && !(animationState _unit == 'para_pilot')) then { | ||
_unit setVariable [QGVAR(hasReserve),[false,true] select (getNumber(configFile >> "CfgVehicles" >> _backpack >> "ace_hasReserveParachute"))]; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Missing private