From 1ff6e820b2b727fa3464a52b6ac8d3b907b868f7 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Sat, 20 Aug 2016 14:47:41 +0100 Subject: [PATCH] Add 3den info to spectator template - A `displayName` shown in the 3DEN multiplayer attributes display - A `respawnTypes` array to define which respawn types the template is compatible with (currently only includes `2,3` - need to investigate compatibility with other types further). --- addons/spectator/config.cpp | 2 ++ addons/spectator/stringtable.xml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/addons/spectator/config.cpp b/addons/spectator/config.cpp index 92736edb48..aee0eaaa76 100644 --- a/addons/spectator/config.cpp +++ b/addons/spectator/config.cpp @@ -21,7 +21,9 @@ class CfgPatches { class CfgRespawnTemplates { class ADDON { + displayName = CSTRING(DisplayName); onPlayerKilled = QFUNC(respawnTemplate); onPlayerRespawn = QFUNC(respawnTemplate); + respawnTypes[] = {2,3}; }; }; diff --git a/addons/spectator/stringtable.xml b/addons/spectator/stringtable.xml index 4f18fdf08f..b9af855c4f 100644 --- a/addons/spectator/stringtable.xml +++ b/addons/spectator/stringtable.xml @@ -1,6 +1,9 @@ + + ACE Spectator + Spectator Settings Zuschauer Einstellungen