summaryrefslogtreecommitdiff
path: root/src/shyguy.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-02-28 05:50:03 +0100
committerTreeki <treeki@gmail.com>2013-02-28 05:50:03 +0100
commit1aed898047474dc077d9c5e908642ce0ab6a81ff (patch)
tree6772c2598d95f65d84ba2aed6aeb7ad54bec0397 /src/shyguy.cpp
parent9880d3e1e0fff5b30366ebb886676ca3251cf151 (diff)
downloadkamek-1aed898047474dc077d9c5e908642ce0ab6a81ff.tar.gz
kamek-1aed898047474dc077d9c5e908642ce0ab6a81ff.zip
couple of fixes to shyguy sounds and animations
Diffstat (limited to '')
-rw-r--r--src/shyguy.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shyguy.cpp b/src/shyguy.cpp
index ced7a41..1e89a8a 100644
--- a/src/shyguy.cpp
+++ b/src/shyguy.cpp
@@ -333,10 +333,14 @@ daShyGuy *daShyGuy::build() {
}
if (this->damage > 1) {
+ nw4r::snd::SoundHandle handle;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &handle, SE_EMY_DOWN, 1);
doStateChange(&StateID_DieSmoke);
this->_vf14C();
}
else {
+ nw4r::snd::SoundHandle handle;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &handle, SE_EMY_KURIBO_L_DAMAGE_01, 1);
doStateChange(stateVar);
}
return true;
@@ -364,6 +368,7 @@ daShyGuy *daShyGuy::build() {
struct DoSomethingCool my_struct = { 0, this->pos, {1.2, 1.5, 1.5}, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
this->frzMgr.Create_ICEACTORs( (void*)&my_struct, 1 );
__destroy_arr( (void*)&my_struct, sub_80024C20, 0x3C, 1 );
+ chrAnimation.setUpdateRate(0.0f);
return true;
}