ACE3/addons/respawn/CfgVehicles.hpp

203 lines
6.6 KiB
C++
Raw Normal View History

2015-01-12 09:20:50 +00:00
class CfgVehicles {
2015-01-13 14:38:17 +00:00
class Module_F;
2015-04-14 23:50:58 +00:00
class ACE_ModuleRespawn: Module_F {
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
2015-01-13 14:38:17 +00:00
category = "ACE";
displayName = "Respawn System";
2015-01-13 19:10:30 +00:00
function = QFUNC(module);
2015-01-13 14:38:17 +00:00
scope = 2;
isGlobal = 1;
2015-03-12 05:12:19 +00:00
icon = QUOTE(PATHTOF(UI\Icon_Module_Respawn_ca.paa));
2015-04-14 23:50:58 +00:00
2015-01-13 14:38:17 +00:00
class Arguments {
class SavePreDeathGear {
displayName = "Save Gear?";
description = "Respawn with the gear a soldier had just before his death?";
typeName = "BOOL";
2015-05-05 17:44:56 +00:00
value = 0;
2015-01-13 14:38:17 +00:00
};
2015-04-14 23:50:58 +00:00
2015-04-03 06:05:14 +00:00
class RemoveDeadBodiesDisconnected {
2015-01-13 14:38:17 +00:00
displayName = "Remove bodies?";
description = "Remove player bodies after disconnect?";
typeName = "BOOL";
2015-05-05 17:44:56 +00:00
value = 1;
2015-01-13 14:38:17 +00:00
};
};
2015-01-12 09:20:50 +00:00
};
2015-01-13 14:38:17 +00:00
2015-04-14 23:50:58 +00:00
class ACE_ModuleFriendlyFire: Module_F {
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
2015-01-13 14:38:17 +00:00
category = "ACE";
displayName = "Friendly Fire Messages";
2015-01-13 19:10:30 +00:00
function = QFUNC(moduleFriendlyFire);
2015-01-13 14:38:17 +00:00
scope = 2;
isGlobal = 1;
2015-01-13 19:10:30 +00:00
icon = QUOTE(PATHTOF(UI\Icon_Module_FriendlyFire_ca.paa));
2015-04-14 23:50:58 +00:00
class Arguments {};
2015-01-12 09:20:50 +00:00
};
2015-01-13 14:38:17 +00:00
2015-04-14 23:50:58 +00:00
class ACE_ModuleRallypoint: Module_F {
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
2015-01-13 14:38:17 +00:00
category = "ACE";
displayName = "Rallypoint System";
2015-01-13 19:10:30 +00:00
function = QFUNC(moduleRallypoint);
2015-01-13 14:38:17 +00:00
scope = 2;
isGlobal = 1;
2015-03-12 05:12:19 +00:00
icon = QUOTE(PATHTOF(UI\Icon_Module_Rallypoint_ca.paa));
2015-04-14 23:50:58 +00:00
class Arguments {};
};
// team leader
class Man;
class CAManBase : Man {
class ACE_SelfActions {
class ACE_MoveRallypoint {
displayName = "Move Rallypoint";
condition = QUOTE([ARR_2(_player, side group _player)] call FUNC(canMoveRallypoint));
statement = QUOTE([ARR_2(_player, side group _player)] call FUNC(moveRallypoint));
showDisabled = 0;
priority = -0.5;
};
2015-01-13 14:38:17 +00:00
};
2015-01-12 09:20:50 +00:00
};
2015-01-13 14:38:17 +00:00
// rallypoints
class FlagCarrier;
2015-04-14 23:50:58 +00:00
class Flag_NATO_F: FlagCarrier {
2015-01-13 14:38:17 +00:00
class ACE_Actions;
};
2015-01-12 09:20:50 +00:00
2015-04-14 23:50:58 +00:00
class Flag_CSAT_F: FlagCarrier {
2015-01-13 14:38:17 +00:00
class ACE_Actions;
2015-01-12 09:20:50 +00:00
};
2015-01-13 14:38:17 +00:00
2015-04-14 23:50:58 +00:00
class Flag_AAF_F: FlagCarrier {
2015-01-13 14:38:17 +00:00
class ACE_Actions;
2015-01-12 09:20:50 +00:00
};
2015-01-13 14:38:17 +00:00
// static
2015-04-14 23:50:58 +00:00
class ACE_Rallypoint_West_Base: Flag_NATO_F {
2015-04-13 11:04:23 +00:00
XEH_ENABLED;
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
displayName = "$STR_ACE_Respawn_RallypointWestBase";
2015-01-13 14:38:17 +00:00
vehicleClass = QGVAR(Rallypoints);
2015-01-12 09:20:50 +00:00
2015-04-14 23:50:58 +00:00
class ACE_Actions: ACE_Actions {
class ACE_Teleport {
2015-04-30 20:46:08 +00:00
displayName = "$STR_ACE_Respawn_TeleportToRallypoint";
2015-04-14 23:50:58 +00:00
distance = 4;
condition = QUOTE(side group _player == west);
statement = QUOTE([ARR_3(_player,side group _player,'ACE_Rallypoint_West')] call FUNC(teleportToRallypoint));
position = "[-0.05,-0.35,-2.6]";
2015-04-14 23:50:58 +00:00
showDisabled = 1;
priority = 1;
2015-01-13 14:38:17 +00:00
};
};
2015-01-12 09:20:50 +00:00
};
2015-04-14 23:50:58 +00:00
class ACE_Rallypoint_East_Base: Flag_CSAT_F {
2015-04-13 11:04:23 +00:00
XEH_ENABLED;
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
displayName = "$STR_ACE_Respawn_RallypointEastBase";
2015-01-13 14:38:17 +00:00
vehicleClass = QGVAR(Rallypoints);
2015-01-12 09:20:50 +00:00
2015-04-14 23:50:58 +00:00
class ACE_Actions: ACE_Actions {
class ACE_Teleport {
2015-04-30 20:46:08 +00:00
displayName = "$STR_ACE_Respawn_TeleportToRallypoint";
2015-04-14 23:50:58 +00:00
distance = 4;
condition = QUOTE(side group _player == east);
statement = QUOTE([ARR_3(_player,side group _player,'ACE_Rallypoint_East')] call FUNC(teleportToRallypoint));
position = "[-0.05,-0.35,-2.6]";
2015-04-14 23:50:58 +00:00
showDisabled = 1;
priority = 1;
2015-01-13 14:38:17 +00:00
};
};
2015-01-12 09:20:50 +00:00
};
2015-04-14 23:50:58 +00:00
class ACE_Rallypoint_Independent_Base: Flag_AAF_F {
2015-04-13 11:04:23 +00:00
XEH_ENABLED;
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
displayName = "$STR_ACE_Respawn_RallypointIndependentBase";
2015-01-13 14:38:17 +00:00
vehicleClass = QGVAR(Rallypoints);
2015-01-12 09:20:50 +00:00
2015-04-14 23:50:58 +00:00
class ACE_Actions: ACE_Actions {
class ACE_Teleport {
2015-04-30 20:46:08 +00:00
displayName = "$STR_ACE_Respawn_TeleportToRallypoint";
2015-04-14 23:50:58 +00:00
distance = 4;
condition = QUOTE(side group _player == independent);
statement = QUOTE([ARR_3(_player,side group _player,'ACE_Rallypoint_Independent')] call FUNC(teleportToRallypoint));
position = "[-0.05,-0.35,-2.6]";
2015-04-14 23:50:58 +00:00
showDisabled = 1;
priority = 1;
2015-01-13 14:38:17 +00:00
};
};
2015-01-12 09:20:50 +00:00
};
2015-01-13 14:38:17 +00:00
// moveable
2015-04-14 23:50:58 +00:00
class ACE_Rallypoint_West: Flag_NATO_F {
2015-04-13 11:04:23 +00:00
XEH_ENABLED;
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
2015-04-15 13:34:01 +00:00
displayName = "$STR_ACE_Respawn_RallypointWest";
2015-01-13 14:38:17 +00:00
vehicleClass = QGVAR(Rallypoints);
2015-04-14 23:50:58 +00:00
class ACE_Actions: ACE_Actions {
class ACE_Teleport {
2015-04-30 20:46:08 +00:00
displayName = "$STR_ACE_Respawn_TeleportToBase";
2015-04-14 23:50:58 +00:00
distance = 4;
condition = QUOTE(side group _player == west);
statement = QUOTE([ARR_3(_player,side group _player,'ACE_Rallypoint_West_Base')] call FUNC(teleportToRallypoint));
position = "[-0.05,-0.35,-2.6]";
2015-04-14 23:50:58 +00:00
showDisabled = 1;
priority = 1;
2015-01-13 14:38:17 +00:00
};
};
2015-01-12 09:20:50 +00:00
};
2015-04-14 23:50:58 +00:00
class ACE_Rallypoint_East: Flag_CSAT_F {
2015-04-13 11:04:23 +00:00
XEH_ENABLED;
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
2015-04-15 13:34:01 +00:00
displayName = "$STR_ACE_Respawn_RallypointEast";
2015-01-13 14:38:17 +00:00
vehicleClass = QGVAR(Rallypoints);
2015-01-12 09:20:50 +00:00
2015-04-14 23:50:58 +00:00
class ACE_Actions: ACE_Actions {
class ACE_Teleport {
2015-04-30 20:46:08 +00:00
displayName = "$STR_ACE_Respawn_TeleportToBase";
2015-04-14 23:50:58 +00:00
distance = 4;
condition = QUOTE(side group _player == east);
statement = QUOTE([ARR_3(_player,side group _player,'ACE_Rallypoint_East_Base')] call FUNC(teleportToRallypoint));
position = "[-0.05,-0.35,-2.6]";
2015-04-14 23:50:58 +00:00
showDisabled = 1;
priority = 1;
2015-01-13 14:38:17 +00:00
};
};
2015-01-12 09:20:50 +00:00
};
2015-01-13 14:38:17 +00:00
2015-04-14 23:50:58 +00:00
class ACE_Rallypoint_Independent: Flag_AAF_F {
2015-04-13 11:04:23 +00:00
XEH_ENABLED;
2015-01-13 15:29:35 +00:00
author = "$STR_ACE_Common_ACETeam";
2015-04-15 13:34:01 +00:00
displayName = "$STR_ACE_Respawn_RallypointIndependent";
2015-01-13 14:38:17 +00:00
vehicleClass = QGVAR(Rallypoints);
2015-04-14 23:50:58 +00:00
class ACE_Actions: ACE_Actions {
class ACE_Teleport {
2015-04-30 20:46:08 +00:00
displayName = "$STR_ACE_Respawn_TeleportToBase";
2015-04-14 23:50:58 +00:00
distance = 4;
condition = QUOTE(side group _player == independent);
statement = QUOTE([ARR_3(_player,side group _player,'ACE_Rallypoint_Independent_Base')] call FUNC(teleportToRallypoint));
position = "[-0.05,-0.35,-2.6]";
2015-04-14 23:50:58 +00:00
showDisabled = 1;
priority = 1;
2015-01-13 14:38:17 +00:00
};
};
2015-01-12 09:20:50 +00:00
};
2015-01-12 09:31:24 +00:00
};