From 9abf8a15c1bca3a5fe0aeae58e630e0fdf87aa08 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Tue, 5 May 2015 19:44:44 +0200 Subject: [PATCH 1/3] Make certain that GVAR(BodyRemoveTimer) exists --- addons/respawn/config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/respawn/config.cpp b/addons/respawn/config.cpp index 19032df4f7..05f4ee2aa8 100644 --- a/addons/respawn/config.cpp +++ b/addons/respawn/config.cpp @@ -26,4 +26,8 @@ class ACE_Settings { value = 1; typeName = "BOOL"; }; + class GVAR(BodyRemoveTimer) { + value = 0; + typeName = "SCALAR"; + }; }; From cee83113d2e4b7843b52c53291e1a47aad86c645 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Tue, 5 May 2015 19:44:56 +0200 Subject: [PATCH 2/3] lets use proper module config for this --- addons/respawn/CfgVehicles.hpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/addons/respawn/CfgVehicles.hpp b/addons/respawn/CfgVehicles.hpp index ddd8f28405..9a74ccf76a 100644 --- a/addons/respawn/CfgVehicles.hpp +++ b/addons/respawn/CfgVehicles.hpp @@ -14,22 +14,14 @@ class CfgVehicles { displayName = "Save Gear?"; description = "Respawn with the gear a soldier had just before his death?"; typeName = "BOOL"; - - class values { - class Yes { name = "Yes"; value = 1; }; - class No { default = 1; name = "No"; value = 0; }; - }; + value = 0; }; class RemoveDeadBodiesDisconnected { displayName = "Remove bodies?"; description = "Remove player bodies after disconnect?"; typeName = "BOOL"; - - class values { - class Yes { default = 1; name = "Yes"; value = 1; }; - class No { name = "No"; value = 0; }; - }; + value = 1; }; }; }; From a49feee76bd5564357c661955b67c7601518cbfb Mon Sep 17 00:00:00 2001 From: Glowbal Date: Tue, 5 May 2015 19:47:17 +0200 Subject: [PATCH 3/3] should have been defaultValue --- addons/respawn/CfgVehicles.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/respawn/CfgVehicles.hpp b/addons/respawn/CfgVehicles.hpp index 9a74ccf76a..2f963a12d3 100644 --- a/addons/respawn/CfgVehicles.hpp +++ b/addons/respawn/CfgVehicles.hpp @@ -14,14 +14,14 @@ class CfgVehicles { displayName = "Save Gear?"; description = "Respawn with the gear a soldier had just before his death?"; typeName = "BOOL"; - value = 0; + defaultValue = 0; }; class RemoveDeadBodiesDisconnected { displayName = "Remove bodies?"; description = "Remove player bodies after disconnect?"; typeName = "BOOL"; - value = 1; + defaultValue = 1; }; }; };