-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added predefined cav respawn templates
- Loading branch information
1 parent
d4733a7
commit cbc0897
Showing
5 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
z\cav\addons\respawn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class CfgRespawnTemplates { | ||
class cav_respawn { | ||
displayName = CSTRING(cav_respawn); | ||
onPlayerKilled = "BIS_fnc_respawnMenuPosition"; | ||
onPlayerRespawn = "BIS_fnc_respawnMenuPosition"; | ||
respawn = BASE | ||
respawnDelay = 4; | ||
respawnTypes[] = {2,3}; | ||
respawnOnStart = -1; | ||
}; | ||
class cav_onelife { | ||
displayName = CSTRING(cav_onelife); | ||
onPlayerKilled = "BIS_fnc_respawnSpectator"; | ||
onPlayerRespawn = "BIS_fnc_respawnSpectator"; | ||
respawnOnStart = 30000; | ||
respawnTypes[] = {1,2,3}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "script_component.hpp" | ||
|
||
class CfgPatches { | ||
class ADDON { | ||
name = COMPONENT_NAME; | ||
units[] = {}; | ||
weapons[] = {}; | ||
requiredVersion = REQUIRED_VERSION; | ||
requiredAddons[] = { | ||
"cav_main", | ||
"cav_common" | ||
}; | ||
author = ECSTRING(Main,ModTeam); | ||
authors[] = {"Brostrom.A (Evul)"}; | ||
url = ECSTRING(Main,Url); | ||
VERSION_CONFIG; | ||
}; | ||
}; | ||
|
||
#include "CfgRespawnTemplates.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define COMPONENT respawn | ||
#define COMPONENT_BEAUTIFIED Respawn | ||
|
||
#include "\z\cav\addons\main\script_mod.hpp" | ||
#include "\z\cav\addons\main\script_macros.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project name="cav"> | ||
<Package name="respawn"> | ||
<Key ID="STR_cav_respawn_cav_respawn"> | ||
<English>Respawn Operation</English> | ||
</Key> | ||
<Key ID="STR_cav_respawn_cav_onelife"> | ||
<English>One Life Operation</English> | ||
</Key> | ||
</Package> | ||
</Project> |