Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /mob/living/carbon/human/MouseDrop(mob/over)
  2.     . = ..()
  3.     if(!ishuman(over))
  4.         return
  5.     var/mob/living/carbon/human/H = over  // curbstomp, ported from PP with modifications
  6.     if(zone_selected != BODY_ZONE_HEAD)
  7.         return // not targeting head
  8.     if(a_intent == INTENT_HELP)
  9.         return // in help intent
  10.     if(H.mobility_flags & MOBILITY_STAND)
  11.         return // target is standing
  12.     if(is_busy || get_turf(src) != get_turf(H))
  13.         return
  14.     is_busy = TRUE
  15.  
  16.     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
  17.         src.is_busy = FALSE
  18.         return
  19.  
  20.     T.Stun(6)
  21.  
  22.     var/increment = (T.lying/90)-2
  23.     setDir(increment > 0 ? WEST : EAST)
  24.     for(var/i in 1 to 5)
  25.         src.pixel_y += 8-i
  26.         src.pixel_x -= increment
  27.         sleep(0.2)
  28.     for(var/i in 1 to 5)
  29.         src.pixel_y -= 8-i
  30.         src.pixel_x -= increment
  31.         sleep(0.2)
  32.  
  33.     playsound(src, 'sound/effects/hit_kick.ogg', 80, 1, -1)
  34.     playsound(src, 'sound/weapons/punch2.ogg', 80, 1, -1)
  35.  
  36.     var/obj/item/bodypart/BP = T.get_bodypart(BODY_ZONE_HEAD)
  37.     if(BP)
  38.         BP.receive_damage(36) //so 3 toolbox hits
  39.  
  40.     T.visible_message("<span class='warning'>[src] curbstomps [T]!</span>", "<span class='warning'>[src] curbstomps you!</span>")
  41.  
  42.     for(var/i in 1 to 10)
  43.         src.pixel_x = src.pixel_x + increment
  44.         sleep(0.1)
  45.  
  46.     src.pixel_x = 0
  47.     src.pixel_y = 0 //just to make sure
  48.  
  49.     log_combat(src, T, "curbstomped")
  50.     src.is_busy = FALSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement