about summary refs log tree commit diff
path: root/src/game/client/components/effects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/effects.cpp')
-rw-r--r--src/game/client/components/effects.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/game/client/components/effects.cpp b/src/game/client/components/effects.cpp
index 282da6f8..5e2e25e3 100644
--- a/src/game/client/components/effects.cpp
+++ b/src/game/client/components/effects.cpp
@@ -6,6 +6,7 @@
 #include <game/client/components/skins.hpp>
 #include <game/client/components/flow.hpp>
 #include <game/client/components/damageind.hpp>
+#include <game/client/components/sounds.hpp>
 #include <game/client/gameclient.hpp>
 
 #include "effects.hpp"
@@ -215,6 +216,22 @@ void EFFECTS::explosion(vec2 pos)
 	}
 }
 
+
+void EFFECTS::hammerhit(vec2 pos)
+{
+	// add the explosion
+	PARTICLE p;
+	p.set_default();
+	p.spr = SPRITE_PART_EXPL01;
+	p.pos = pos;
+	p.life_span = 0.4f;
+	p.start_size = 150.0f;
+	p.end_size = 0;
+	p.rot = frandom()*pi*2;
+	gameclient.particles->add(PARTICLES::GROUP_EXPLOSIONS, &p);	
+	gameclient.sounds->play(SOUNDS::CHN_WORLD, SOUND_HAMMER_HIT, 1.0f, pos);
+}
+
 void EFFECTS::on_render()
 {
 	static int64 last_update_100hz = 0;