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 || zone_selected == BODY_ZONE_PRECISE_GROIN)
- return // targeting head or targeting groin
- if(a_intent != INTENT_HELP)
- return // in not help / harm intent
- if !(H.mobility_flags & MOBILITY_STAND)
- return // target is not standing
- if(is_busy || get_turf(src) == get_turf(H))//are they on the same space
- return
- is_busy = TRUE
- //top set is checks to ensure all the correct parameters are met
- ifif(!do_mob(src,T,25) || src.zone_selected != BODY_ZONE_HEAD || src.zone_selected != BODY_ZONE_PRECISE_GROIN || 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
- //bottom set is to ensure they are by checking the opposite
- 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)
- if(src.zone_selected == BODY_ZONE_HEAD)
- var/obj/item/bodypart/BP = T.get_bodypart(BODY_ZONE_HEAD)
- if(BP)
- BP.receive_damage(36) //so 3 toolbox hits
- log_combat(src, T, "curbstomped")
- T.visible_message("<span class='warning'>[src] curbstomps [T]!</span>", "<span class='warning'>[src] curbstomps you!</span>")
- else
- return 0
- else
- return 0
- if(src.zone_selected == BODY_ZONE_PRECISE_GROIN)
- var/obj/item/bodypart/BP = T.get_bodypart(BODY_ZONE_CHEST)
- if(BP)
- if(T.gender == MALE && (ishuman(T)) || (iscatperson(T)) || (islizard(T))) //Conditional damage due to the old twig and berries as well as species that has said twig and berries
- BP.receive_damage(30)
- else
- BP.receive_damage(20)
- T.visible_message("<span class='warning'> [src] kicks [T] in the groin", "<span class='warning> [src] has kicked you in the groin!'")
- log_combat(src, T, "groinkicked")
- else
- return 0
- else
- return 0
- 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