From 2dc6dc90e21d12186bb1a88b81fd8f74baea4fbe Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 28 Aug 2012 04:44:49 +0200 Subject: hammer suit model --- src/koopatlas/player.cpp | 3 +++ src/koopatlas/player.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'src/koopatlas') diff --git a/src/koopatlas/player.cpp b/src/koopatlas/player.cpp index 5531301..51470da 100644 --- a/src/koopatlas/player.cpp +++ b/src/koopatlas/player.cpp @@ -11,6 +11,8 @@ int daWMPlayer_c::onCreate() { this->modelHandler->setSRT((Vec){0.0,100.0,-100.0}, (S16Vec){0,0,0}, (Vec){2.0,2.0,2.0}); this->modelHandler->draw(); + hammerSuit.setup(this->modelHandler); + pos = (Vec){0.0f,0.0f,3000.0f}; rot = (S16Vec){0,0,0}; scale = (Vec){1.6f,1.6f,1.6f}; @@ -61,6 +63,7 @@ int daWMPlayer_c::onExecute() { int daWMPlayer_c::onDraw() { this->modelHandler->draw(); + hammerSuit.draw(); return true; } diff --git a/src/koopatlas/player.h b/src/koopatlas/player.h index 6e98e4e..6fbbf5a 100644 --- a/src/koopatlas/player.h +++ b/src/koopatlas/player.h @@ -2,6 +2,7 @@ #define __KOOPATLAS_PLAYER_H #include "koopatlas/core.h" +#include "poweruphax.h" enum PlayerAnim { wait = 0, @@ -211,6 +212,7 @@ class daWMPlayer_c : public dActor_c { float jumpOffset; mEf::es2 effect; + dHammerSuitRenderer_c hammerSuit; void startAnimation(int id, float frame, float unk, float updateRate); -- cgit v1.2.3