mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Update siegecannon.dm (#32697)
This commit is contained in:
@@ -514,8 +514,9 @@
|
||||
lastBounceCount++
|
||||
if(isliving(hit_atom))
|
||||
honkMob(hit_atom)
|
||||
honkBounce(hit_atom)
|
||||
else if(isitem(hit_atom) && hit_atom.density)
|
||||
spawn(3) //Give throwing time to stop bullying me
|
||||
spawn(10) //Give throwing time to stop bullying me
|
||||
if(!throwing && cannonFired)
|
||||
|
||||
honkBounce(hit_atom,lastBounceCount)
|
||||
@@ -524,7 +525,6 @@
|
||||
/obj/item/cannonball/bananium/proc/honkMob(var/mob/living/L)
|
||||
L.Knockdown(rand(2,10))
|
||||
playsound(src, 'sound/items/bikehorn.ogg', 75, 1)
|
||||
honkBounce(L,lastBounceCount)
|
||||
|
||||
/obj/item/cannonball/bananium/proc/honkBounce(var/atom/cTarg, var/tot_bounces = 0)
|
||||
if(tot_bounces > 10)
|
||||
@@ -534,7 +534,7 @@
|
||||
var/honkDir = get_dir(src, cTarg)
|
||||
honkStep -= list(honkDir, turn(honkDir, 45), turn(honkDir, -45)) //Every direction possible except directly, or diagonally, toward what we hit
|
||||
honkDir = pick(honkStep)
|
||||
spawn(3) //Prevents multiple instances of throw_at() from being active
|
||||
spawn(10) //Prevents multiple instances of throw_at() from being active
|
||||
bounceStep(honkDir)
|
||||
|
||||
/obj/item/cannonball/bananium/proc/bounceStep(var/honkDir)
|
||||
|
||||
Reference in New Issue
Block a user