|
@@ -571,6 +571,16 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
571
|
571
|
getConsole().print("Invalid use of pigtail-command!");
|
572
|
572
|
return -47;
|
573
|
573
|
}
|
|
574
|
+ } else if (strcmp(command, "ponypos") == 0) {
|
|
575
|
+ if (args->size() > 3) {
|
|
576
|
+ gLaraModel->ponytail[0] = (float)atof(args->at(0));
|
|
577
|
+ gLaraModel->ponytail[1] = (float)atof(args->at(1));
|
|
578
|
+ gLaraModel->ponytail[2] = (float)atof(args->at(2));
|
|
579
|
+ gLaraModel->ponytailAngle = (float)atof(args->at(3));
|
|
580
|
+ } else {
|
|
581
|
+ getConsole().print("Invalid use of ponypos-command!");
|
|
582
|
+ return -48;
|
|
583
|
+ }
|
574
|
584
|
} else if (strcmp(command, "help") == 0) {
|
575
|
585
|
if (args->size() == 0) {
|
576
|
586
|
getConsole().print("Available commands:");
|
|
@@ -600,6 +610,7 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
600
|
610
|
getConsole().print(" allrooms - BOOL");
|
601
|
611
|
getConsole().print(" ponytail - BOOL");
|
602
|
612
|
getConsole().print(" pigtail - BOOL");
|
|
613
|
+ getConsole().print(" ponypos - FLOAT FLOAT FLOAT FLOAT - x y z angle");
|
603
|
614
|
getConsole().print(" help - print command help");
|
604
|
615
|
getConsole().print(" quit - exit OpenRaider");
|
605
|
616
|
getConsole().print("Use help COMMAND to get additional info");
|
|
@@ -607,11 +618,11 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
607
|
618
|
return help(args->at(0));
|
608
|
619
|
} else {
|
609
|
620
|
getConsole().print("Invalid use of help-command");
|
610
|
|
- return -48;
|
|
621
|
+ return -49;
|
611
|
622
|
}
|
612
|
623
|
} else {
|
613
|
624
|
getConsole().print("Unknown command: %s ", command);
|
614
|
|
- return -49;
|
|
625
|
+ return -50;
|
615
|
626
|
}
|
616
|
627
|
|
617
|
628
|
return 0;
|