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"];
|
private ["_unit", "_side"];
|
||||||
|
|
||||||
|
@ -1,16 +1,21 @@
|
|||||||
/*
|
/*
|
||||||
Author: bux578
|
Name: ACE_Respawn_fnc_getAllGear
|
||||||
|
|
||||||
Description:
|
Author(s):
|
||||||
Returns an array containing all items of a given unit
|
bux578
|
||||||
|
|
||||||
Arguments:
|
Description:
|
||||||
A player object
|
returns an array containing all items of a given unit
|
||||||
|
|
||||||
Return value:
|
Parameters:
|
||||||
An array containing all inventory items
|
0: OBJECT - unit
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
ARRAY
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_allGear"];
|
private ["_unit", "_allGear"];
|
||||||
|
|
||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
VOID
|
VOID
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_killedUnit"];
|
private ["_killedUnit"];
|
||||||
|
|
||||||
_killedUnit = _this select 0;
|
_killedUnit = _this select 0;
|
||||||
|
@ -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;
|
||||||
|
@ -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"];
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -1,14 +1,22 @@
|
|||||||
/*
|
/*
|
||||||
* 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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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"];
|
||||||
|
|
||||||
|
@ -1,16 +1,22 @@
|
|||||||
/*
|
/*
|
||||||
Author: bux578
|
Name: ACE_Respawn_fnc_removeBody
|
||||||
|
|
||||||
Description:
|
Author(s):
|
||||||
Restores previously saved gear
|
bux578
|
||||||
|
|
||||||
Arguments:
|
Description:
|
||||||
A player object, an array containing all gear
|
Restores previously saved gear
|
||||||
|
|
||||||
Return value:
|
Parameters:
|
||||||
An array containing all inventory items
|
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"];
|
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"];
|
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"];
|
private ["_unit", "_side", "_toBase", "_rallypoint"];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user