|
@@ -24,6 +24,8 @@
|
24
|
24
|
#include "utils/time.h"
|
25
|
25
|
#include "OpenRaider.h"
|
26
|
26
|
|
|
27
|
+extern skeletal_model_t *gLaraModel; //! \fixme
|
|
28
|
+
|
27
|
29
|
OpenRaider::OpenRaider() {
|
28
|
30
|
mRunning = false;
|
29
|
31
|
mFPS = false;
|
|
@@ -549,6 +551,26 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
549
|
551
|
getConsole().print("Invalid use of ponytail-command!");
|
550
|
552
|
return -45;
|
551
|
553
|
}
|
|
554
|
+ } else if (strcmp(command, "pigtail") == 0) {
|
|
555
|
+ if (args->size() > 0) {
|
|
556
|
+ bool b;
|
|
557
|
+ if (readBool(args->at(0), &b) < 0) {
|
|
558
|
+ getConsole().print("Pass BOOL to pigtail command!");
|
|
559
|
+ return -46;
|
|
560
|
+ }
|
|
561
|
+ gLaraModel->pigtails = b;
|
|
562
|
+ if (b) {
|
|
563
|
+ gLaraModel->ponyOff -= 20;
|
|
564
|
+ gLaraModel->ponytail[1] -= 32;
|
|
565
|
+ } else {
|
|
566
|
+ gLaraModel->ponyOff += 20;
|
|
567
|
+ gLaraModel->ponytail[1] += 32;
|
|
568
|
+ }
|
|
569
|
+ getConsole().print("Pigtail is now %s", b ? "on" : "off");
|
|
570
|
+ } else {
|
|
571
|
+ getConsole().print("Invalid use of pigtail-command!");
|
|
572
|
+ return -47;
|
|
573
|
+ }
|
552
|
574
|
} else if (strcmp(command, "help") == 0) {
|
553
|
575
|
if (args->size() == 0) {
|
554
|
576
|
getConsole().print("Available commands:");
|
|
@@ -577,6 +599,7 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
577
|
599
|
getConsole().print(" oneroom - BOOL");
|
578
|
600
|
getConsole().print(" allrooms - BOOL");
|
579
|
601
|
getConsole().print(" ponytail - BOOL");
|
|
602
|
+ getConsole().print(" pigtail - BOOL");
|
580
|
603
|
getConsole().print(" help - print command help");
|
581
|
604
|
getConsole().print(" quit - exit OpenRaider");
|
582
|
605
|
getConsole().print("Use help COMMAND to get additional info");
|
|
@@ -584,11 +607,11 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
584
|
607
|
return help(args->at(0));
|
585
|
608
|
} else {
|
586
|
609
|
getConsole().print("Invalid use of help-command");
|
587
|
|
- return -46;
|
|
610
|
+ return -48;
|
588
|
611
|
}
|
589
|
612
|
} else {
|
590
|
613
|
getConsole().print("Unknown command: %s ", command);
|
591
|
|
- return -47;
|
|
614
|
+ return -49;
|
592
|
615
|
}
|
593
|
616
|
|
594
|
617
|
return 0;
|