From 1aed898047474dc077d9c5e908642ce0ab6a81ff Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 28 Feb 2013 05:50:03 +0100 Subject: couple of fixes to shyguy sounds and animations --- src/shyguy.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/shyguy.cpp') 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; } -- cgit v1.2.3