add script_component.hpp include, add file header

This commit is contained in:
jodav 2015-01-12 11:24:58 +01:00
parent 9ae51df453
commit c72c51aca0
14 changed files with 216 additions and 68 deletions

View File

@ -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"];

View File

@ -1,16 +1,21 @@
/*
Author: bux578
Name: ACE_Respawn_fnc_getAllGear
Description:
Returns an array containing all items of a given unit
Author(s):
bux578
Arguments:
A player object
Description:
returns an array containing all items of a given unit
Return value:
An array containing all inventory items
Parameters:
0: OBJECT - unit
Returns:
ARRAY
*/
#include "script_component.hpp"
private ["_unit", "_allGear"];
_unit = _this select 0;

View File

@ -15,6 +15,8 @@
VOID
*/
#include "script_component.hpp"
private ["_killedUnit"];
_killedUnit = _this select 0;

View File

@ -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;

View File

@ -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"];

View File

@ -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;

View File

@ -1,14 +1,22 @@
/*
* 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;

View File

@ -1,14 +1,22 @@
/*
* 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;

View File

@ -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;

View File

@ -1,14 +1,21 @@
/*
* 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"];

View File

@ -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"];

View File

@ -1,16 +1,22 @@
/*
Author: bux578
Name: ACE_Respawn_fnc_removeBody
Description:
Restores previously saved gear
Author(s):
bux578
Arguments:
A player object, an array containing all gear
Description:
Restores previously saved gear
Return value:
An array containing all inventory items
Parameters:
0: OBJECT - unit
1: ARRAY<STRING> - Array containing all gear
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"];

View File

@ -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"];

View File

@ -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"];