Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /mob/living/carbon/human/MouseDrop(mob/over)
- . = ..()
- if(!ishuman(over))
- return
- var/mob/living/carbon/human/H = over // curbstomp, ported from PP with modifications
- if(zone_selected != BODY_ZONE_HEAD)
- return // not targeting head
- if(a_intent == INTENT_HELP)
- return // in help intent
- if(H.mobility_flags & MOBILITY_STAND)
- return // target is standing
- if(is_busy || get_turf(src) != get_turf(H))
- return
- is_busy = TRUE
- if (!do_mob(src,T,25) || src.zone_selected != BODY_ZONE_HEAD || get_turf(src) != get_turf(T) || (T.mobility_flags & MOBILITY_STAND) || src.a_intent == INTENT_HELP) //wait 30ds and make sure the stars still align
- src.is_busy = FALSE
- return
- T.Stun(6)
- var/increment = (T.lying/90)-2
- setDir(increment > 0 ? WEST : EAST)
- for(var/i in 1 to 5)
- src.pixel_y += 8-i
- src.pixel_x -= increment
- sleep(0.2)
- for(var/i in 1 to 5)
- src.pixel_y -= 8-i
- src.pixel_x -= increment
- sleep(0.2)
- playsound(src, 'sound/effects/hit_kick.ogg', 80, 1, -1)
- playsound(src, 'sound/weapons/punch2.ogg', 80, 1, -1)
- var/obj/item/bodypart/BP = T.get_bodypart(BODY_ZONE_HEAD)
- if(BP)
- BP.receive_damage(36) //so 3 toolbox hits
- T.visible_message("<span class='warning'>[src] curbstomps [T]!</span>", "<span class='warning'>[src] curbstomps you!</span>")
- for(var/i in 1 to 10)
- src.pixel_x = src.pixel_x + increment
- sleep(0.1)
- src.pixel_x = 0
- src.pixel_y = 0 //just to make sure
- log_combat(src, T, "curbstomped")
- src.is_busy = FALSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement