Common functionality that is used throughout several components.
1. Config Properties
1.1 Vehicles
Configures vehicle properties, such as a vehicle's ramp that would be used for paradropping; or turrets that are also considered passengers, such as the blackfish's ffv seats near the ramp.
The vehicle's ramp(s) should be compatible with the animateDoor or animateSource commands.
Extra turret paths to also consider passengers. (OPTIONAL)
aftb_rampAnim
Array
Door animation(s) that one of must be open for players to jump. ["animationSource", closedState, minimumOpenState]. Closed/open states default to 0/1 respectively.
If a vehicle does not have a ramp, you can use {"", 0, 0} have a vehicle's ramp always be considered open.
"minimumOpenState" is the minimum amount that the ramp needs to be opened to count as "open". For vehicles that can level their ramps, this value will be around ~0.5. Meaning that any amount higher than 0.5 will count as open.
1.2 Parachutes
Some parachutes classes may not inherit from B_Parachute, the vanilla parachute class. To remedy this, AFTB will consider any backpack to be a parachute if it has the aftb_isParachute config property set to 1. What each component does with a parachute will vary.
If a backpack inherits from B_Parachute, then it already has this config property set.
Config Name
Type
Description
aftb_isParachute
Number
0-is not a parachute, 1-is a parachute
2. Functions
Functions will always be located in <addon>/functions and be named fnc_functionName.sqf.
Each function will have the same function header, which lists meta information about the function.
The "Public: Yes/No" line denotes whether a given function is within the public API or not. Functions that are within the API will be kept backwards compatible and their general functionality will not change.
Functions that are not within the public API may have new required parameters added, or have their functionality changed without warning. Modders are strongly encouraged to only use functions within the Public API.
class CfgVehicles {
class TAG_myBackpack {
aftb_isParachute = 1;
};
};
#include "..\script_component.hpp"
/*
* Author(s): Who wrote or modified the function
* Description of what the function does.
*
* Arguments:
* 0: Argument name <TYPE>
* 1: Argument name (optional, default: value) <TYPE>
*
* Return Value:
* Description <TYPE>
*
* Example:
* [arg1, arg2] call aftb_component_fnc_functionName;
*
* Public: Yes/No
*/