summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/player.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/koopatlas/player.cpp b/src/koopatlas/player.cpp
index abfb329..351ba88 100644
--- a/src/koopatlas/player.cpp
+++ b/src/koopatlas/player.cpp
@@ -6,11 +6,17 @@ int daWMPlayer_c::onCreate() {
this->modelHandler = new dPlayerModelHandler_c(0);
// loadModel(u8 player_id, int powerup_id, int unk);
- this->modelHandler->loadModel(0, 3, 2);
+ // Unk is some kind of mode: 0=in-game, 1=map, 2=2D
+ this->modelHandler->loadModel(0, 3, 1);
this->modelHandler->mdlClass->startAnimation(0, 1.2, 10.0, 0.0);
this->modelHandler->setSRT((Vec){0.0,100.0,-100.0}, (S16Vec){0,0,0}, (Vec){2.0,2.0,2.0});
this->modelHandler->draw();
+ if (Player_Flags[0] & 1) {
+ modelHandler->mdlClass->enableStarColours();
+ modelHandler->mdlClass->enableStarEffects();
+ }
+
hammerSuit.setup(this->modelHandler);
pos = (Vec){0.0f,0.0f,3000.0f};
@@ -39,6 +45,8 @@ int daWMPlayer_c::onExecute() {
if (!dScKoopatlas_c::instance->mapIsRunning())
return true;
+ OSReport("Flags: %08x ; Mode: %d\n", modelHandler->mdlClass->model_visibility_flags_maybe, modelHandler->mdlClass->mode_maybe);
+
dScKoopatlas_c::instance->pathManager.execute();
this->modelHandler->update();