|
@@ -533,6 +533,22 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
533
|
533
|
getConsole().print("Invalid use of allrooms-command!");
|
534
|
534
|
return -43;
|
535
|
535
|
}
|
|
536
|
+ } else if (strcmp(command, "ponytail") == 0) {
|
|
537
|
+ if (args->size() > 0) {
|
|
538
|
+ bool b;
|
|
539
|
+ if (readBool(args->at(0), &b) < 0) {
|
|
540
|
+ getConsole().print("Pass BOOL to ponytail command!");
|
|
541
|
+ return -44;
|
|
542
|
+ }
|
|
543
|
+ if (b)
|
|
544
|
+ getRender().setFlags(Render::fRenderPonytail);
|
|
545
|
+ else
|
|
546
|
+ getRender().clearFlags(Render::fRenderPonytail);
|
|
547
|
+ getConsole().print("Ponytail is now %s", b ? "on" : "off");
|
|
548
|
+ } else {
|
|
549
|
+ getConsole().print("Invalid use of ponytail-command!");
|
|
550
|
+ return -45;
|
|
551
|
+ }
|
536
|
552
|
} else if (strcmp(command, "help") == 0) {
|
537
|
553
|
if (args->size() == 0) {
|
538
|
554
|
getConsole().print("Available commands:");
|
|
@@ -560,6 +576,7 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
560
|
576
|
getConsole().print(" entmodel - BOOL");
|
561
|
577
|
getConsole().print(" oneroom - BOOL");
|
562
|
578
|
getConsole().print(" allrooms - BOOL");
|
|
579
|
+ getConsole().print(" ponytail - BOOL");
|
563
|
580
|
getConsole().print(" help - print command help");
|
564
|
581
|
getConsole().print(" quit - exit OpenRaider");
|
565
|
582
|
getConsole().print("Use help COMMAND to get additional info");
|
|
@@ -567,11 +584,11 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
567
|
584
|
return help(args->at(0));
|
568
|
585
|
} else {
|
569
|
586
|
getConsole().print("Invalid use of help-command");
|
570
|
|
- return -44;
|
|
587
|
+ return -46;
|
571
|
588
|
}
|
572
|
589
|
} else {
|
573
|
590
|
getConsole().print("Unknown command: %s ", command);
|
574
|
|
- return -45;
|
|
591
|
+ return -47;
|
575
|
592
|
}
|
576
|
593
|
|
577
|
594
|
return 0;
|