Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

Commit 3f764ca

Browse files
Added predefined cav respawn templates (#234)
* Added predefined cav respawn templates * Fixed string
1 parent 032f9e3 commit 3f764ca

5 files changed

Lines changed: 54 additions & 0 deletions

File tree

addons/respawn/$PBOPREFIX$

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
z\cav\addons\respawn
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class CfgRespawnTemplates {
2+
class cav_respawn {
3+
displayName = CSTRING(cav_respawn);
4+
onPlayerKilled = "BIS_fnc_respawnMenuPosition";
5+
onPlayerRespawn = "BIS_fnc_respawnMenuPosition";
6+
respawn = "BASE";
7+
respawnDelay = 4;
8+
respawnTypes[] = {2,3};
9+
respawnOnStart = -1;
10+
};
11+
class cav_onelife {
12+
displayName = CSTRING(cav_onelife);
13+
onPlayerKilled = "BIS_fnc_respawnSpectator";
14+
onPlayerRespawn = "BIS_fnc_respawnSpectator";
15+
respawnOnStart = 30000;
16+
respawnTypes[] = {1,2,3};
17+
};
18+
};

addons/respawn/config.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#include "script_component.hpp"
2+
3+
class CfgPatches {
4+
class ADDON {
5+
name = COMPONENT_NAME;
6+
units[] = {};
7+
weapons[] = {};
8+
requiredVersion = REQUIRED_VERSION;
9+
requiredAddons[] = {
10+
"cav_main",
11+
"cav_common"
12+
};
13+
author = ECSTRING(Main,ModTeam);
14+
authors[] = {"Brostrom.A (Evul)"};
15+
url = ECSTRING(Main,Url);
16+
VERSION_CONFIG;
17+
};
18+
};
19+
20+
#include "CfgRespawnTemplates.hpp"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#define COMPONENT respawn
2+
#define COMPONENT_BEAUTIFIED Respawn
3+
4+
#include "\z\cav\addons\main\script_mod.hpp"
5+
#include "\z\cav\addons\main\script_macros.hpp"

addons/respawn/stringtable.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project name="cav">
2+
<Package name="respawn">
3+
<Key ID="STR_cav_respawn_cav_respawn">
4+
<English>Respawn Operation</English>
5+
</Key>
6+
<Key ID="STR_cav_respawn_cav_onelife">
7+
<English>One Life Operation</English>
8+
</Key>
9+
</Package>
10+
</Project>

0 commit comments

Comments
 (0)