Skip to content

Commit

Permalink
Added predefined cav respawn templates
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Apr 22, 2024
1 parent d4733a7 commit cbc0897
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/respawn/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\cav\addons\respawn
18 changes: 18 additions & 0 deletions addons/respawn/CfgRespawnTemplates.hpp
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;

Check failure on line 7 in addons/respawn/CfgRespawnTemplates.hpp

View workflow job for this annotation

GitHub Actions / hemtt

property's value could not be parsed.

invalid value
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};
};
};
20 changes: 20 additions & 0 deletions addons/respawn/config.cpp
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"
5 changes: 5 additions & 0 deletions addons/respawn/script_component.hpp
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"
10 changes: 10 additions & 0 deletions addons/respawn/stringtable.xml
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>

0 comments on commit cbc0897

Please sign in to comment.