mirror of
https://github.com/Bjanski/ExAd.git
synced 2024-08-30 16:52:14 +00:00
Added parachuteSafeMode
And some examples and installation instructions.
This commit is contained in:
parent
99ae0791de
commit
588151c401
16
docs/HaloParachute/examples.md
Normal file
16
docs/HaloParachute/examples.md
Normal file
@ -0,0 +1,16 @@
|
||||
#Examples
|
||||
|
||||
Below I provide with some examples of how to use HaloParachute
|
||||
|
||||
##Chang settings
|
||||
|
||||
Customize settings to allow different scenarios.
|
||||
* Allow vehicle ejection
|
||||
```sqf
|
||||
ExAd_ACTION_EJECT_HEIGHT = 0;
|
||||
```
|
||||
* Enable safeMode - makes the parachute auto pull itself when reaching ExAd_ACTION_PARACHUTE_HEIGHT
|
||||
```sqf
|
||||
ExAd_HALOPARACHUTE_SAFE_MODE = true;
|
||||
```
|
||||
|
16
docs/HaloParachute/installation.md
Normal file
16
docs/HaloParachute/installation.md
Normal file
@ -0,0 +1,16 @@
|
||||
#Installation
|
||||
|
||||
* Remember for this plugin to work you first need to install [Core](https://github.com/Bjanski/ExAd/blob/Core/docs/core/installation.md)
|
||||
|
||||
1. Place the folder "HaloParachute" into "mpmissions\exile.<MAP>\ExAd\"
|
||||
2. Goto "mpmissions\exile.<MAP>\ExAd\CfgFunctions" and uncomment
|
||||
From
|
||||
```cpp
|
||||
//#include "HaloParachute\CfgFunctions.cpp"
|
||||
```
|
||||
To
|
||||
```cpp
|
||||
#include "HaloParachute\CfgFunctions.cpp"
|
||||
```
|
||||
|
||||
3. Now you can go into "mpmissions\exile.<MAP>\ExAd\HaloParachute\customize.sqf" and change to desirable settings.
|
@ -32,4 +32,8 @@ _push = if (_vehicleObj isKindOf "Plane") then {
|
||||
|
||||
player setVelocity ((velocity player) vectorAdd _push);
|
||||
|
||||
if(ExAd_HALOPARACHUTE_SAFE_MODE)then{
|
||||
ExAd_PARACHUTE_SAFE_THREAD = [0.1, ExAd_fnc_parachuteSafeMode, [], true] call ExileClient_system_thread_addtask;
|
||||
};
|
||||
|
||||
true
|
@ -0,0 +1,21 @@
|
||||
/*
|
||||
fn_parachuteSafeMode.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
if(getPosATL player <= ExAd_ACTION_PARACHUTE_HEIGHT)then{
|
||||
call ExAd_fnc_pullParachute;
|
||||
};
|
@ -33,4 +33,8 @@ player switchmove "HaloFreeFall_non";
|
||||
player setVelocity [(sin (getDir player)) * 50, (cos (getDir player)) * 50, -5];
|
||||
ExileJobParachuteFix = [0.25, ExileClient_object_player_parachuteFix, [], true] call ExileClient_system_thread_addtask;
|
||||
|
||||
if(ExAd_HALOPARACHUTE_SAFE_MODE)then{
|
||||
[ExAd_PARACHUTE_SAFE_THREAD] call ExileClient_system_thread_removeTask;
|
||||
};
|
||||
|
||||
true
|
@ -14,9 +14,9 @@
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
ExAd_ACTION_PARACHUTE_HEIGHT = 10;
|
||||
ExAd_ACTION_EJECT_HEIGHT = 100;
|
||||
|
||||
ExAd_HALOPARACHUTE_SAFE_MODE = false; //BOOLEAN - Force pull parachute when player reaches ExAd_ACTION_PARACHUTE_HEIGHT if they ejected from vehicle
|
||||
|
||||
ExAd_ACTION_PARACHUTE_HEIGHT = 10; //SCALAR - What is the minimum altitude a player can pull a parachute.
|
||||
ExAd_ACTION_EJECT_HEIGHT = 100; //SCALAR - What is the minimum altitude a player can Halo/Eject from a vehicle.
|
Loading…
Reference in New Issue
Block a user