|
@@ -357,6 +357,38 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
357
|
357
|
getConsole().print("Load a level to get Laras position!");
|
358
|
358
|
return -21;
|
359
|
359
|
}
|
|
360
|
+ } else if (strcmp(command, "vmodel") == 0) {
|
|
361
|
+ if (args->size() > 0) {
|
|
362
|
+ bool b;
|
|
363
|
+ if (readBool(args->at(0), &b) < 0) {
|
|
364
|
+ getConsole().print("Pass BOOL to vmodel command!");
|
|
365
|
+ return -22;
|
|
366
|
+ }
|
|
367
|
+ if (b)
|
|
368
|
+ getRender().setFlags(Render::fViewModel);
|
|
369
|
+ else
|
|
370
|
+ getRender().clearFlags(Render::fViewModel);
|
|
371
|
+ getConsole().print("Viewmodel is now %s", b ? "on" : "off");
|
|
372
|
+ } else {
|
|
373
|
+ getConsole().print("Invalid use of vmodel-command!");
|
|
374
|
+ return -23;
|
|
375
|
+ }
|
|
376
|
+ } else if (strcmp(command, "ralpha") == 0) {
|
|
377
|
+ if (args->size() > 0) {
|
|
378
|
+ bool b;
|
|
379
|
+ if (readBool(args->at(0), &b) < 0) {
|
|
380
|
+ getConsole().print("Pass BOOL to ralpha command!");
|
|
381
|
+ return -24;
|
|
382
|
+ }
|
|
383
|
+ if (b)
|
|
384
|
+ getRender().setFlags(Render::fRoomAlpha);
|
|
385
|
+ else
|
|
386
|
+ getRender().clearFlags(Render::fRoomAlpha);
|
|
387
|
+ getConsole().print("Room Alpha is now %s", b ? "on" : "off");
|
|
388
|
+ } else {
|
|
389
|
+ getConsole().print("Invalid use of ralpha-command!");
|
|
390
|
+ return -25;
|
|
391
|
+ }
|
360
|
392
|
} else if (strcmp(command, "help") == 0) {
|
361
|
393
|
if (args->size() == 0) {
|
362
|
394
|
getConsole().print("Available commands:");
|
|
@@ -373,6 +405,8 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
373
|
405
|
getConsole().print(" hop - BOOL - Room hop");
|
374
|
406
|
getConsole().print(" viewmodel - INT - Change Laras model");
|
375
|
407
|
getConsole().print(" pos - Print position info");
|
|
408
|
+ getConsole().print(" vmodel - BOOL - View Model");
|
|
409
|
+ getConsole().print(" ralpha - BOOL - Room Alpha");
|
376
|
410
|
getConsole().print(" help - print command help");
|
377
|
411
|
getConsole().print(" quit - exit OpenRaider");
|
378
|
412
|
getConsole().print("Use help COMMAND to get additional info");
|
|
@@ -380,11 +414,11 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
380
|
414
|
return help(args->at(0));
|
381
|
415
|
} else {
|
382
|
416
|
getConsole().print("Invalid use of help-command");
|
383
|
|
- return -22;
|
|
417
|
+ return -26;
|
384
|
418
|
}
|
385
|
419
|
} else {
|
386
|
420
|
getConsole().print("Unknown command: %s ", command);
|
387
|
|
- return -23;
|
|
421
|
+ return -27;
|
388
|
422
|
}
|
389
|
423
|
|
390
|
424
|
return 0;
|