fancy throws - makes throws perform the attack animation and play a sound

This commit is contained in:
deathride58
2019-01-11 02:52:15 -05:00
parent 2b68547f8d
commit e03cd1e405
+2
View File
@@ -188,6 +188,8 @@
if(thrown_thing)
visible_message("<span class='danger'>[src] has thrown [thrown_thing].</span>")
src.log_message("has thrown [thrown_thing]", LOG_ATTACK)
do_attack_animation(target, no_effect = 1)
playsound(loc, 'sound/weapons/punchmiss.ogg', 50, 1, -1)
newtonian_move(get_dir(target, src))
thrown_thing.throw_at(target, thrown_thing.throw_range, thrown_thing.throw_speed, src)