mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Hammer hit sound.
This commit is contained in:
parent
ab2fe36b59
commit
48ed41b105
|
@ -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"
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue