Spearhead 1944 Enhanced Revive (ER)

From Bohemia Interactive Community
Revision as of 11:26, 13 August 2023 by R3vo (talk | contribs) (Created page with "== Mission Parameter Config == 500px|right There are several parameters that can be included into the description.ext to mak...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Mission Parameter Config

spe enhanced revivive parameters.jpg

There are several parameters that can be included into the description.ext to make them available as Mission Parameters.

class Params
{
	class SPE_ReviveEnabled
	{
		title = "$STR_SPE_UtilityFunctions_Revive_REVIVE_ENABLED";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_ENABLED","$STR_SPE_UtilityFunctions_Revive_DISABLED"};
		values[] = {0,1};
		default = __EVAL([0,1] select (isClass (configFile >> "cfgPatches" >> "ace_medical")));
	};
	class SPE_ReviveMode
	{
		title = "$STR_SPE_UtilityFunctions_Revive_REVIVE_MODE";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_MODE","$STR_SPE_UtilityFunctions_Revive_BASIC","$STR_SPE_UtilityFunctions_Revive_ADVANCED","$STR_SPE_UtilityFunctions_Revive_REALISTIC"};
		values[] = {0,1,2,3};
		default = 0;
	};
	class SPE_ReviveRequiredTrait
	{
		title = "$STR_SPE_UtilityFunctions_Revive_REQUIRED_TRAIT";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_TRAIT","$STR_SPE_UtilityFunctions_Revive_REQUIRE_FIRST_AID_KIT","$STR_SPE_UtilityFunctions_Revive_REQUIRE_MEDIC_TRAIT","$STR_SPE_UtilityFunctions_Revive_NONE"};
		values[] = {0,1,2,3};
		default = 0;
	};
	class SPE_ReviveMedicSpeedMultiplier
	{
		title = "$STR_SPE_UtilityFunctions_Revive_MEDIC_MULTIPLIER";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_MULTIPLIER","0x","2x","3x","5x","10x"};
		values[] = {0, 1, 2, 3, 5, 10};
		default = 0;
	};
	class SPE_ReviveDelay
	{
		title = "$STR_SPE_UtilityFunctions_Revive_REVIVE_TIME_SECONDS";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_REVIVE", "5", "7", "8", "12", "15", "17"};
		values[] = {0, 5, 7, 8, 12, 15, 17};
		default = 0;
	};
	class SPE_ReviveForceRespawnDelay
	{
		title = "$STR_SPE_UtilityFunctions_Revive_FORCE_RESPAWN_TIME_SECONDS";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_RESPAWN", "5", "10", "15", "20", "25", "30"};
		values[] = {0, 5, 10, 15, 20, 25, 30};
		default = 0;
	};
	class SPE_ReviveBleedOutDelay
	{
		title = "$STR_SPE_UtilityFunctions_Revive_BLEEDOUT_TIME_SECONDS";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_BLEEDOUT", "$STR_SPE_UtilityFunctions_Revive_NEVER", "30", "60", "120", "180", "240", "300"};
		values[] = {0, 9999, 30, 60, 120, 180, 240, 300};
		default = 0;
	};
	class SPE_ReviveFakAmount
	{
		title = "$STR_SPE_UtilityFunctions_Revive_FAK_AMOUNT";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_FAK_AMOUNT", "1", "2", "3"};
		values[] = {0, 1, 2, 3};
		default = 0;
	};
	class SPE_ReviveStabilize
	{
		title = "$STR_SPE_UtilityFunctions_Revive_STABILIZE_PARAM";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DISABLED","$STR_SPE_UtilityFunctions_Revive_ENABLED"};
		values[] = {0,1};
		default = 1;
	};
	class SPE_ReviveIcons
	{
		title = "$STR_SPE_UtilityFunctions_Revive_ICONS_PARAM";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_3D_ICONS", "$STR_SPE_UtilityFunctions_Revive_ENABLED", "$STR_SPE_UtilityFunctions_Revive_MEDIC_ONLY", "$STR_SPE_UtilityFunctions_Revive_DISABLED"};
		values[] = {0, 1, 2, 3};
		default = 0;
	};
	class SPE_ReviveAutoCall
	{
		title = "$STR_SPE_UtilityFunctions_Revive_AUTOCALL_PARAM";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DISABLED","$STR_SPE_UtilityFunctions_Revive_ENABLED","$STR_SPE_UtilityFunctions_Revive_CADETONLY"};
		values[] = {0,1,2};
		default = 2;
	};
	class SPE_ReviveAutoWithstand
	{
		title = "$STR_SPE_UtilityFunctions_Revive_AUTOWITHSTAND_PARAM";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DISABLED","$STR_SPE_UtilityFunctions_Revive_ENABLED","$STR_SPE_UtilityFunctions_Revive_CADETONLY"};
		values[] = {0,1,2};
		default = 2;
	};
	class SPE_WithstandExtraFAK
	{
		title = "$STR_SPE_UtilityFunctions_Revive_WITHSTAND_EXTRA_FAK_PARAM";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICUILTY_WITHSTAND_EXTRA_FAK","$STR_SPE_UtilityFunctions_Revive_DISABLED", "$STR_SPE_UtilityFunctions_Revive_ENABLED"};
		values[] = {0,1,2};
		default = 0;
	};
	class SPE_WithstandEnabled
	{
		title = "$STR_SPE_UtilityFunctions_Revive_WITHSTAND_ENABLED_PARAM";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICULTY_WITHSTAND_ENABLED","$STR_SPE_UtilityFunctions_Revive_DISABLED", "$STR_SPE_UtilityFunctions_Revive_ENABLED"};
		values[] = {0,1,2};
		default = 0;
	};
	class SPE_WithstandEnabledAI
	{
		title = "$STR_SPE_UtilityFunctions_Revive_WITHSTAND_ENABLED_AI_PARAM";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_DIFFICULTY_WITHSTAND_ENABLED_AI","$STR_SPE_UtilityFunctions_Revive_DISABLED", "$STR_SPE_UtilityFunctions_Revive_ENABLED"};
		values[] = {0,1,2};
		default = 0;
	};
	class SPE_ReviveUnits
	{
		title = "$STR_SPE_UtilityFunctions_Revive_UNITS_NAME";
		texts[] = {"$STR_SPE_UtilityFunctions_Revive_UNITS_PLAYABLE","$STR_SPE_UtilityFunctions_Revive_UNITS_PLAYERS"};
		values[] = {0,1};
		default = 0;
	};
};
↑ Back to spoiler's top

Alternatively, one can also include the following file into the description.ext as follows:

class Params
{
#if __has_include("\WW2\SPE_Missions_p\UtilityFunctions_f\reviveToksa\reviveToksaDefines.hpp")
#include "\WW2\SPE_Missions_p\UtilityFunctions_f\reviveToksa\reviveToksaDefines.hpp"
#endif
};

The __has_include makes sure that one does not run into errors should Spearhead 1944 not be present on the server.