//Allows the ninja to kidnap people /obj/item/clothing/suit/space/space_ninja/proc/ninjanet() var/mob/living/carbon/human/H = affecting var/mob/living/carbon/C = input("Select who to capture:","Capture who?",null) as null|mob in oview(H) if(QDELETED(C)||!(C in oview(H))) return 0 if(!C.client)//Monkeys without a client can still step_to() and bypass the net. Also, netting inactive people is lame. to_chat(H, "[C.p_they(TRUE)] will bring no honor to your Clan!") return if(locate(/obj/structure/energy_net) in get_turf(C))//Check if they are already being affected by an energy net. to_chat(H, "[C.p_they(TRUE)] are already trapped inside an energy net!") return for(var/turf/T in getline(get_turf(H), get_turf(C))) if(T.density)//Don't want them shooting nets through walls. It's kind of cheesy. to_chat(H, "You may not use an energy net through solid obstacles!") return if(!ninjacost(200,N_STEALTH_CANCEL)) H.Beam(C,"n_beam",time=15) H.say("Get over here!", forced = "ninja net") var/obj/structure/energy_net/E = new /obj/structure/energy_net(C.drop_location()) E.affecting = C E.master = H H.visible_message("[H] caught [C] with an energy net!","You caught [C] with an energy net!") if(C.buckled) C.buckled.unbuckle_mob(affecting,TRUE) E.buckle_mob(C, TRUE) //No moving for you! //The person can still try and attack the net when inside. START_PROCESSING(SSobj, E)