|
12 | 12 | SetDvar("scr_game_forceuav", 0); // Disable compass
|
13 | 13 | SetDvar("ui_drawCrosshair", 0);
|
14 | 14 |
|
| 15 | + SetDvar("r_fog", 0); |
| 16 | + |
15 | 17 | SetDvar("player_sprintUnlimited", 1);
|
16 | 18 | SetDvar("jump_slowdownEnable", 0);
|
17 | 19 |
|
@@ -211,8 +213,8 @@ MonitorButtons()
|
211 | 213 | else
|
212 | 214 | {
|
213 | 215 | // Load last position immediately
|
| 216 | + self LoadPosition(); |
214 | 217 | savenum = self.cj.saves.size;
|
215 |
| - self LoadPosition(savenum); |
216 | 218 | // If user holds the button, load previous positions when pressing use
|
217 | 219 | while (self SecondaryOffhandButtonPressed())
|
218 | 220 | {
|
@@ -242,17 +244,27 @@ MonitorPlayerCommands()
|
242 | 244 | if (!IsDefined(self.cj_commands_initialized) || self.cj_commands_initialized != true)
|
243 | 245 | {
|
244 | 246 | self NotifyOnPlayerCommand("dpad_up", "+actionslot 1");
|
| 247 | + self NotifyOnPlayerCommand("dpad_down", "+actionslot 2"); |
| 248 | + self NotifyOnPlayerCommand("dpad_right", "+actionslot 4"); |
| 249 | + |
245 | 250 | self.cj_commands_initialized = true;
|
246 | 251 | }
|
247 | 252 |
|
248 | 253 | for (;;)
|
249 | 254 | {
|
250 |
| - button = self common_scripts\utility::waittill_any_return("dpad_up", "dpad_right"); |
| 255 | + button = self common_scripts\utility::waittill_any_return("dpad_up", "dpad_down", "dpad_right"); |
251 | 256 | switch (button)
|
252 | 257 | {
|
253 | 258 | case "dpad_up":
|
254 | 259 | self SpawnBot();
|
255 | 260 | break;
|
| 261 | + // TODO: remove once we have added .cfg loading |
| 262 | + case "dpad_down": |
| 263 | + exec("togglerecord"); |
| 264 | + break; |
| 265 | + case "dpad_right": |
| 266 | + exec("startplayback"); |
| 267 | + break; |
256 | 268 | default:
|
257 | 269 | iprintln("^1Unknown button " + button);
|
258 | 270 | }
|
|
0 commit comments