Skip to content

Commit

Permalink
Tweaks to params
Browse files Browse the repository at this point in the history
  • Loading branch information
Giallustio committed Dec 25, 2016
1 parent 755c85e commit 658f07b
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 22 deletions.
30 changes: 20 additions & 10 deletions _A&S.Panovo/core/def/mission.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ btc_gameMode = (paramsArray select 3);
btc_startLocationID = (paramsArray select 4);
//btc_enemyPlayer = (paramsArray select 5);
btc_arty = [false,true] select (paramsArray select 6);
//btc_p_player_arty
btc_arty_player = [false,true] select (paramsArray select 7);
//btc_p_rallypoint
//btc_p_redeploy
//btc_p_respawnOnTL
Expand Down Expand Up @@ -103,6 +103,7 @@ btc_arty_available = true;
btc_arty_reloadTime = 300;
btc_arty_offsetX = 0;
btc_arty_offsetY = 0;
btc_arty_radios = ["B_LIB_GER_Radio","B_LIB_SOV_RA_Radio"];

//Combat Support

Expand Down Expand Up @@ -182,15 +183,24 @@ switch (_revive) do {
case 0: {};
case 1: {
//BI
missionNamespace setVariable ["bis_reviveParam_mode", 1];
missionNamespace setVariable ["bis_reviveParam_unconsciousStateMode", 2];
missionNamespace setVariable ["bis_reviveParam_requiredTrait", 0];
missionNamespace setVariable ["bis_reviveParam_requiredItems", 2];
missionNamespace setVariable ["ReviveRequiredItemsFakConsumed", 0];
missionNamespace setVariable ["bis_reviveParam_duration", 10];
missionNamespace setVariable ["bis_reviveParam_medicSpeedMultiplier", 2];
missionNamespace setVariable ["bis_reviveParam_forceRespawnDuration", 3];
missionNamespace setVariable ["bis_reviveParam_bleedOutDuration", _p_rev];
//missionNamespace setVariable ["bis_reviveParam_mode", 1];
bis_reviveParam_mode = 1;
//missionNamespace setVariable ["bis_reviveParam_unconsciousStateMode", 2];
bis_reviveParam_unconsciousStateMode = 2;
//missionNamespace setVariable ["bis_reviveParam_requiredTrait", 0];
bis_reviveParam_requiredTrait = 0;
//missionNamespace setVariable ["bis_reviveParam_requiredItems", 2];
bis_reviveParam_requiredItems = 2;
//missionNamespace setVariable ["ReviveRequiredItemsFakConsumed", 0];
ReviveRequiredItemsFakConsumed = 0;
//missionNamespace setVariable ["bis_reviveParam_duration", 10];
bis_reviveParam_duration = 10;
//missionNamespace setVariable ["bis_reviveParam_medicSpeedMultiplier", 2];
bis_reviveParam_medicSpeedMultiplier = 2;
//missionNamespace setVariable ["bis_reviveParam_forceRespawnDuration", 3];
bis_reviveParam_forceRespawnDuration = 3;
//missionNamespace setVariable ["bis_reviveParam_bleedOutDuration", _p_rev];
bis_reviveParam_bleedOutDuration = _p_rev;
};
case 2: {
//ACE
Expand Down
22 changes: 11 additions & 11 deletions _A&S.Panovo/core/def/param.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@ class Params {
};
class btc_p_load {
//paramsArray[2]
title = "Load the savegame (if available)";
title = "Load the savegame (if available) [NOT IMPLEMENTED YET]";
values[]={0,1};
texts[]={"No","Yes"};
default = 1;
};
class btc_p_gameMode {
//paramsArray[3]
title = "Game mode?";
title = "Game mode? [NOT IMPLEMENTED YET]";
values[] = {0, 1};
texts[] = {"A&S classic", "A&S random first location"};
default = 0;
};
class btc_p_baseLocation {
//paramsArray[4]
title = "Base location?";
values[] = {0, 1, 2, 3, 4, 5, 100};
texts[] = {"Chaman", "Loy Manara Airport", "Rasman Airport", "Nur", "West of Tumurkalay", "Par-e Siah Oilfield", "Random"};
values[] = {0, 1, 2, 3, 100};
texts[] = {"South\West", "North\West", "North\East", "South\East", "Random"};
default = 100;
};
class btc_p_enemyPlayer {
//paramsArray[5]
title = "Game mode type?";
title = "Game mode type? [NOT IMPLEMENTED YET]";
values[] = {0, 1, 2};
texts[] = {"PVE", "PVP (4:1 ratio)", "PVP (No ratio"};
default = 0;
Expand All @@ -57,21 +57,21 @@ class Params {
};
class btc_p_rallypoint {
//paramsArray[8]
title = "Rally Point?";
title = "Rally Point? [NOT IMPLEMENTED YET]";
values[]={0,1};
texts[]={"No","Yes"};
default = 1;
};
class btc_p_redeploy {
//paramsArray[9]
title = "Allow re-deploy?";
title = "Allow re-deploy? [NOT IMPLEMENTED YET]";
values[]={0,1};
texts[]={"No","Yes"};
default = 1;
};
class btc_p_respawnOnTL {
//paramsArray[10]
title = "Respawn on TL?";
title = "Respawn on TL? [NOT IMPLEMENTED YET]";
values[]={0,1};
texts[]={"No","Yes"};
default = 1;
Expand All @@ -85,9 +85,9 @@ class Params {
};
class btc_p_recruitment {
//paramsArray[12]
title = "AI recruitment?";
title = "AI recruitment? [NOT IMPLEMENTED YET]";
values[] = {0, 1, 2};
texts[] = {"No", "Only SL", "All TLs"};
texts[] = {"No", "Commander only", "All TLs"};
default = 1;
};
class btc_p_en {
Expand All @@ -113,7 +113,7 @@ class Params {
};
class btc_p_rinf {
//paramsArray[16]
title = "Enemy reinforcement?";
title = "Enemy reinforcement? [NOT IMPLEMENTED YET]";
values[] = {0, 1};
texts[] = {"No", "Yes"};
default = 1;
Expand Down
2 changes: 2 additions & 0 deletions _A&S.Panovo/core/fnc/actions/requestArtillery.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/


if !(backpack player in btc_arty_radios) exitWith {hint "You need a radio to request the artillery support!"};

switch (_this) do {
case 0 : {
//Open menu
Expand Down
2 changes: 1 addition & 1 deletion _A&S.Panovo/core/init_player.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ player setPos getMarkerPos btc_marker_respawn;

//Actions
//if (BTC_arty_player_def == 1 && format ["%1",player getVariable "BTC_arty_operator"] == "1") then {_action = player addaction [("<t color=""#ED2744"">") + ("Request artillery") + "</t>","=BTC=_addAction.sqf",[[],BTC_fnc_arty],0,false,false,"","BTC_arty_player_available"];};
if (btc_arty && player getVariable ["btc_arty_operator",false]) then {
if (btc_arty_player && player getVariable ["btc_arty_operator",false]) then {
player addaction [("<t color=""#ED2744"">") + ("Request artillery") + "</t>",{(_this select 3) call btc_fnc_actions_requestArtillery},0,0,false,false,"","btc_arty_available"];
};
//Dynamic groups
Expand Down
17 changes: 17 additions & 0 deletions _A&S.Panovo/description.ext
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@

//loadScreen = "core\img\btc.paa";
author = Giallustio;
onLoadName = Advance and Secure;
onLoadMission = www.blacktemplars.altervista.org;

class Header
{
gameType = Coop;
minPlayers = 1;
maxPlayers = 32;
};

respawn = 3;
respawnDelay = 5;
respawnDialog = 0;
disabledAI=1;

enableDebugConsole = 1;
corpseManagerMode = 1;
//wreckManagerMode = 1;
Expand Down
Binary file modified _A&S.Panovo/mission.sqm
Binary file not shown.

0 comments on commit 658f07b

Please sign in to comment.