diff options
Diffstat (limited to 'src/effectvideo.cpp')
-rw-r--r-- | src/effectvideo.cpp | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/effectvideo.cpp b/src/effectvideo.cpp index 3aa43fb..6264142 100644 --- a/src/effectvideo.cpp +++ b/src/effectvideo.cpp @@ -1,12 +1,11 @@ #include <common.h> #include <game.h> #include <g3dhax.h> -#include "player.h" -#include "effects.h" #include <sfx.h> extern "C" void *PlaySoundAsync(dEn_c *, int soundID); +extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*); class EffectVideo : public dEn_c { @@ -76,7 +75,28 @@ int EffectVideo::onExecute() { } else { // Plays an Effect - CreateEffect(&this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}, this->effect); + + switch (this->effect) { + + case 43: + SpawnEffect("Wm_ob_cmnspark", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}); + break; + + case 177: + SpawnEffect("Wm_ob_greencoinkira_b", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}); + break; + + case 193: + SpawnEffect("Wm_mr_electricshock_biri01_s", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}); + break; + + case 365: + SpawnEffect("Wm_en_kuribobigsplit", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}); + break; + + default: + break; + } } this->timer = 0; |