Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defender and Crusher tail smash has a 1% chance of doing a BONK! sound instead. #3750

Merged
merged 3 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,11 @@

if(blunt_stab)
stabbing_xeno.visible_message(SPAN_XENOWARNING("\The [stabbing_xeno] swipes its tail into [target]'s [limb ? limb.display_name : "chest"], bashing it!"), SPAN_XENOWARNING("You swipe your tail into [target]'s [limb? limb.display_name : "chest"], bashing it!"))
playsound(target, "punch", 50, TRUE)
var/playing_sound = rand(1, 99)
if(playing_sound == 99)
playsound(target, 'sound/effects/bonk.ogg', 50, TRUE)
Diegoflores31 marked this conversation as resolved.
Show resolved Hide resolved
else
playsound(target, "punch", 50, TRUE)
// The xeno smashes the target with their tail, moving it to the side and thus their direction as well.
stab_direction = turn(stabbing_xeno.dir, pick(90, -90))
stab_overlay = "slam"
Expand Down
Binary file added sound/effects/bonk.ogg
Binary file not shown.