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"]; private ["_unit", "_side"];

View File

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

View File

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

View File

@ -1,5 +1,5 @@
/* /*
Name: AGM_Respawn_fnc_handleRespawn Name: ACE_Respawn_fnc_handleRespawn
Author(s): Author(s):
bux578 bux578
@ -15,6 +15,8 @@
VOID VOID
*/ */
#include "script_component.hpp"
private ["_respawnedUnit"]; private ["_respawnedUnit"];
_respawnedUnit = _this select 0; _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"]; private ["_rallypoint", "_name"];

View File

@ -1,14 +1,23 @@
/* /*
* Author: KoffeinFlummi, bux578, CAA-Picard, commy2 Name: ACE_Respawn_fnc_module
*
* Initializes the respawn module. Author(s):
* KoffeinFlummi, bux578, CAA-Picard, commy2
* Arguments:
* Whatever the module provides. (I dunno.) Description:
* initializes the respawn module
* Return Value:
* None Parameters:
0: OBJECT - logic
1: ARRAY<OBJECT> - synced units
2: BOOLEAN - activated
Returns:
VOID
*/ */
#include "script_component.hpp"
if !(isServer) exitWith {}; if !(isServer) exitWith {};
_logic = _this select 0; _logic = _this select 0;

View File

@ -1,15 +1,23 @@
/* /*
* Author: commy2 Name: ACE_Respawn_fnc_moduleFriendlyFire
*
* Initializes the Friendly Fire Messages module. Author(s):
* commy2
* Arguments:
* Whatever the module provides. (I dunno.) Description:
* initializes the Friendly Fire Messages module
* Return Value:
* None Parameters:
0: OBJECT - logic
1: ARRAY<OBJECT> - synced units
2: BOOLEAN - activated
Returns:
VOID
*/ */
#include "script_component.hpp"
_this spawn { _this spawn {
_logic = _this select 0; _logic = _this select 0;
_units = _this select 1; _units = _this select 1;

View File

@ -1,15 +1,23 @@
/* /*
* Author: commy2 Name: ACE_Respawn_fnc_moduleRallypoint
*
* Initializes the Rallypoint module. Author(s):
* commy2
* Arguments:
* Whatever the module provides. (I dunno.) Description:
* initializes the Rallypoint module
* Return Value:
* None Parameters:
0: OBJECT - logic
1: ARRAY<OBJECT> - synced units
2: BOOLEAN - activated
Returns:
VOID
*/ */
#include "script_component.hpp"
_logic = _this select 0; _logic = _this select 0;
_units = _this select 1; _units = _this select 1;
_activated = _this select 2; _activated = _this select 2;

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 { _this spawn {
_unit = _this select 0; _unit = _this select 0;

View File

@ -1,15 +1,22 @@
/* /*
* Author: bux578 Name: ACE_Respawn_fnc_removeBody
*
* removes the body Author(s):
* bux578
* Arguments:
* The body Description:
* removes a given body
* Return Value:
* None Parameters:
0: OBJECT - body
1: BOOLEAN - forceRemove // not used atm
Returns:
VOID
*/ */
#include "script_component.hpp"
private ["_body", "_forceRemove", "_bodyRemoveTimer"]; private ["_body", "_forceRemove", "_bodyRemoveTimer"];
_body = _this select 0; _body = _this select 0;

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"]; private ["_forceRemove", "_body"];

View File

@ -1,16 +1,22 @@
/* /*
Author: bux578 Name: ACE_Respawn_fnc_removeBody
Author(s):
bux578
Description: Description:
Restores previously saved gear Restores previously saved gear
Arguments: Parameters:
A player object, an array containing all gear 0: OBJECT - unit
1: ARRAY<STRING> - Array containing all gear
Return value: Returns:
An array containing all inventory items VOID
*/ */
#include "script_component.hpp"
private ["_unit", "_allGear", "_headgear", "_goggles", "_uniform", "_uniformitems", "_vest", "_vestitems", "_backpack", "_backpackitems", "_primaryweapon", "_primaryweaponitems", "_primaryweaponmagazine", "_handgunweapon", "_handgunweaponitems", "_handgunweaponmagazine", "_assigneditems", "_binocular"]; 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"]; 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"]; private ["_unit", "_side", "_toBase", "_rallypoint"];