Hammer hit sound.

This commit is contained in:
Joel de Vahl 2007-07-22 14:16:57 +00:00
parent ab2fe36b59
commit 48ed41b105
2 changed files with 7 additions and 0 deletions

View file

@ -23,6 +23,12 @@ sounds {
"data/audio/wp_hammer_swing-03.wav"
}
hammer_hit {
"data/audio/wp_hammer_hit-01.wav"
"data/audio/wp_hammer_hit-02.wav"
"data/audio/wp_hammer_hit-03.wav"
}
ninja_fire {
"data/audio/wp_ninja_attack-01.wav"
"data/audio/wp_ninja_attack-02.wav"

View file

@ -962,6 +962,7 @@ int player::handle_weapons()
// set his velocity to fast upward (for now)
create_smoke(ents[i]->pos);
create_sound(pos, SOUND_HAMMER_HIT);
hitobjects[numobjectshit++] = ents[i];
ents[i]->take_damage(vec2(0,10.0f), data->weapons[active_weapon].meleedamage, client_id, active_weapon);
player* target = (player*)ents[i];