mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
add script_component.hpp include, add file header
This commit is contained in:
parent
9ae51df453
commit
c72c51aca0
@ -1,4 +1,21 @@
|
||||
// by commy2
|
||||
/*
|
||||
Name: ACE_Respawn_fnc_canMoveRallypoint
|
||||
|
||||
Author(s):
|
||||
commy2
|
||||
|
||||
Description:
|
||||
checks if a unit can move a rally point
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - unit
|
||||
1: OBJECT - side
|
||||
|
||||
Returns:
|
||||
BOOLEAN
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit", "_side"];
|
||||
|
||||
|
@ -1,16 +1,21 @@
|
||||
/*
|
||||
Author: bux578
|
||||
Name: ACE_Respawn_fnc_getAllGear
|
||||
|
||||
Author(s):
|
||||
bux578
|
||||
|
||||
Description:
|
||||
Returns an array containing all items of a given unit
|
||||
returns an array containing all items of a given unit
|
||||
|
||||
Arguments:
|
||||
A player object
|
||||
Parameters:
|
||||
0: OBJECT - unit
|
||||
|
||||
Return value:
|
||||
An array containing all inventory items
|
||||
Returns:
|
||||
ARRAY
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit", "_allGear"];
|
||||
|
||||
_unit = _this select 0;
|
||||
|
@ -15,6 +15,8 @@
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_killedUnit"];
|
||||
|
||||
_killedUnit = _this select 0;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Name: AGM_Respawn_fnc_handleRespawn
|
||||
Name: ACE_Respawn_fnc_handleRespawn
|
||||
|
||||
Author(s):
|
||||
bux578
|
||||
@ -15,6 +15,8 @@
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_respawnedUnit"];
|
||||
|
||||
_respawnedUnit = _this select 0;
|
||||
|
@ -1,4 +1,20 @@
|
||||
// by commy2
|
||||
/*
|
||||
Name: ACE_Respawn_fnc_initRallypoint
|
||||
|
||||
Author(s):
|
||||
commy2
|
||||
|
||||
Description:
|
||||
init code for rally points
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - rally
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_rallypoint", "_name"];
|
||||
|
||||
|
@ -1,14 +1,23 @@
|
||||
/*
|
||||
* Author: KoffeinFlummi, bux578, CAA-Picard, commy2
|
||||
*
|
||||
* Initializes the respawn module.
|
||||
*
|
||||
* Arguments:
|
||||
* Whatever the module provides. (I dunno.)
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
Name: ACE_Respawn_fnc_module
|
||||
|
||||
Author(s):
|
||||
KoffeinFlummi, bux578, CAA-Picard, commy2
|
||||
|
||||
Description:
|
||||
initializes the respawn module
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - logic
|
||||
1: ARRAY<OBJECT> - synced units
|
||||
2: BOOLEAN - activated
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
if !(isServer) exitWith {};
|
||||
|
||||
_logic = _this select 0;
|
||||
|
@ -1,15 +1,23 @@
|
||||
/*
|
||||
* Author: commy2
|
||||
*
|
||||
* Initializes the Friendly Fire Messages module.
|
||||
*
|
||||
* Arguments:
|
||||
* Whatever the module provides. (I dunno.)
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
Name: ACE_Respawn_fnc_moduleFriendlyFire
|
||||
|
||||
Author(s):
|
||||
commy2
|
||||
|
||||
Description:
|
||||
initializes the Friendly Fire Messages module
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - logic
|
||||
1: ARRAY<OBJECT> - synced units
|
||||
2: BOOLEAN - activated
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
_this spawn {
|
||||
_logic = _this select 0;
|
||||
_units = _this select 1;
|
||||
|
@ -1,15 +1,23 @@
|
||||
/*
|
||||
* Author: commy2
|
||||
*
|
||||
* Initializes the Rallypoint module.
|
||||
*
|
||||
* Arguments:
|
||||
* Whatever the module provides. (I dunno.)
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
Name: ACE_Respawn_fnc_moduleRallypoint
|
||||
|
||||
Author(s):
|
||||
commy2
|
||||
|
||||
Description:
|
||||
initializes the Rallypoint module
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - logic
|
||||
1: ARRAY<OBJECT> - synced units
|
||||
2: BOOLEAN - activated
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
_logic = _this select 0;
|
||||
_units = _this select 1;
|
||||
_activated = _this select 2;
|
||||
|
@ -1,4 +1,21 @@
|
||||
// by commy2
|
||||
/*
|
||||
Name: ACE_Respawn_fnc_moveRallypoint
|
||||
|
||||
Author(s):
|
||||
commy2
|
||||
|
||||
Description:
|
||||
Moves a rallypoint to the player's location
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - unit
|
||||
1: OBJECT - side
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
_this spawn {
|
||||
_unit = _this select 0;
|
||||
|
@ -1,15 +1,22 @@
|
||||
/*
|
||||
* Author: bux578
|
||||
*
|
||||
* removes the body
|
||||
*
|
||||
* Arguments:
|
||||
* The body
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
Name: ACE_Respawn_fnc_removeBody
|
||||
|
||||
Author(s):
|
||||
bux578
|
||||
|
||||
Description:
|
||||
removes a given body
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - body
|
||||
1: BOOLEAN - forceRemove // not used atm
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_body", "_forceRemove", "_bodyRemoveTimer"];
|
||||
|
||||
_body = _this select 0;
|
||||
|
@ -1,4 +1,20 @@
|
||||
// by commy2
|
||||
/*
|
||||
Name: ACE_Respawn_fnc_removeDisconnectedPlayer
|
||||
|
||||
Author(s):
|
||||
commy2
|
||||
|
||||
Description:
|
||||
handles the disconnected event
|
||||
|
||||
Parameters:
|
||||
0: BOOLEAN - forceRemove // not used atm
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_forceRemove", "_body"];
|
||||
|
||||
|
@ -1,16 +1,22 @@
|
||||
/*
|
||||
Author: bux578
|
||||
Name: ACE_Respawn_fnc_removeBody
|
||||
|
||||
Author(s):
|
||||
bux578
|
||||
|
||||
Description:
|
||||
Restores previously saved gear
|
||||
|
||||
Arguments:
|
||||
A player object, an array containing all gear
|
||||
Parameters:
|
||||
0: OBJECT - unit
|
||||
1: ARRAY<STRING> - Array containing all gear
|
||||
|
||||
Return value:
|
||||
An array containing all inventory items
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit", "_allGear", "_headgear", "_goggles", "_uniform", "_uniformitems", "_vest", "_vestitems", "_backpack", "_backpackitems", "_primaryweapon", "_primaryweaponitems", "_primaryweaponmagazine", "_handgunweapon", "_handgunweaponitems", "_handgunweaponmagazine", "_assigneditems", "_binocular"];
|
||||
|
||||
|
||||
|
@ -1,4 +1,21 @@
|
||||
// by commy2
|
||||
/*
|
||||
Name: ACE_Respawn_fnc_showFriendlyFireMessages
|
||||
|
||||
Author(s):
|
||||
commy2
|
||||
|
||||
Description:
|
||||
shows a message in system chat of who killed who
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - unit
|
||||
1: OBJECT - killer
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit", "_killer"];
|
||||
|
||||
|
@ -1,4 +1,22 @@
|
||||
// by commy2
|
||||
/*
|
||||
Name: ACE_Respawn_fnc_teleportToRallypoint
|
||||
|
||||
Author(s):
|
||||
commy2
|
||||
|
||||
Description:
|
||||
teleports a unit to a rallypoint
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - unit
|
||||
1: OBJECT - side
|
||||
2: BOOLEAN - teleport to base
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit", "_side", "_toBase", "_rallypoint"];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user