Skip to content

Commit 9917c78

Browse files
committed
Additional parameters
Enable admin console for easy debugging. Time acceleration parameter.
1 parent 80fd35a commit 9917c78

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// From biwiki:
2+
// Param templates currently don't work with PBO missions manually copied to MPMissions folder. Unpacked missions, Steam missions and missions which are part of an addon works correctly.
3+
// So I just copied the file into the mission instead.
4+
5+
#ifndef DEBUGCONSOLE_DEFAULT
6+
#define DEBUGCONSOLE_DEFAULT 0
7+
#endif
8+
9+
class DebugConsole
10+
{
11+
title = $STR_A3_paramDebugConsole_title;
12+
values[] = {0,1};
13+
texts[] = {$STR_DISABLED,$STR_ENABLED};
14+
default = DEBUGCONSOLE_DEFAULT;
15+
};

source/includes/params.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@ class Params {
1919
texts[] = {"On","Off"};
2020
default = 1;
2121
};
22+
23+
#define DEBUGCONSOLE_DEFAULT 0
24+
#include "paramDebugConsole.hpp"
25+
26+
#define TIMEACCELERATION_DEFAULT 10
27+
#include "paramTimeAcceleration.hpp"
2228
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// From biwiki:
2+
// Param templates currently don't work with PBO missions manually copied to MPMissions folder. Unpacked missions, Steam missions and missions which are part of an addon works correctly.
3+
// So I just copied the file into the mission instead.
4+
5+
#ifndef TIMEACCELERATION_DEFAULT
6+
#define TIMEACCELERATION_DEFAULT 1
7+
#endif
8+
9+
class TimeAcceleration
10+
{
11+
title = $STR_usract_time_inc;
12+
values[] = {1,2,5,10,20};
13+
texts[] = {
14+
"x1",
15+
"x2",
16+
"x5",
17+
"x10",
18+
"x20"
19+
};
20+
default = TIMEACCELERATION_DEFAULT;
21+
function = "BIS_fnc_paramTimeAcceleration";
22+
};

0 commit comments

Comments
 (0)