|
@@ -24,8 +24,6 @@
|
24
|
24
|
#include "utils/time.h"
|
25
|
25
|
#include "OpenRaider.h"
|
26
|
26
|
|
27
|
|
-extern skeletal_model_t *gLaraModel; //! \fixme
|
28
|
|
-
|
29
|
27
|
OpenRaider::OpenRaider() {
|
30
|
28
|
mRunning = false;
|
31
|
29
|
mFPS = false;
|
|
@@ -558,13 +556,14 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
558
|
556
|
getConsole().print("Pass BOOL to pigtail command!");
|
559
|
557
|
return -46;
|
560
|
558
|
}
|
561
|
|
- gLaraModel->pigtails = b;
|
|
559
|
+ SkeletalModel *tmp = static_cast<SkeletalModel *>(getGame().mLara->tmpHook);
|
|
560
|
+ tmp->model->pigtails = b;
|
562
|
561
|
if (b) {
|
563
|
|
- gLaraModel->ponyOff -= 20;
|
564
|
|
- gLaraModel->ponytail[1] -= 32;
|
|
562
|
+ tmp->model->ponyOff -= 20;
|
|
563
|
+ tmp->model->ponytail[1] -= 32;
|
565
|
564
|
} else {
|
566
|
|
- gLaraModel->ponyOff += 20;
|
567
|
|
- gLaraModel->ponytail[1] += 32;
|
|
565
|
+ tmp->model->ponyOff += 20;
|
|
566
|
+ tmp->model->ponytail[1] += 32;
|
568
|
567
|
}
|
569
|
568
|
getConsole().print("Pigtail is now %s", b ? "on" : "off");
|
570
|
569
|
} else {
|
|
@@ -573,10 +572,11 @@ int OpenRaider::command(const char *command, std::vector<char *> *args) {
|
573
|
572
|
}
|
574
|
573
|
} else if (strcmp(command, "ponypos") == 0) {
|
575
|
574
|
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));
|
|
575
|
+ SkeletalModel *tmp = static_cast<SkeletalModel *>(getGame().mLara->tmpHook);
|
|
576
|
+ tmp->model->ponytail[0] = (float)atof(args->at(0));
|
|
577
|
+ tmp->model->ponytail[1] = (float)atof(args->at(1));
|
|
578
|
+ tmp->model->ponytail[2] = (float)atof(args->at(2));
|
|
579
|
+ tmp->model->ponytailAngle = (float)atof(args->at(3));
|
580
|
580
|
} else {
|
581
|
581
|
getConsole().print("Invalid use of ponypos-command!");
|
582
|
582
|
return -48;
|