• How to add a hanging ability?
    3 replies, posted
I'm working on a Darkrp server and want to know how to add the ability to hang a player in Darkrp?
As in lynch mob? As in holding on to the edge of the roof? As in a google hanging out?
Take a look at how TTT does it; look at the weapon_zm_carry for attaching ragdolls to surfaces.
Make a ragdoll with the player's model, make the player spectate it in OBS_CHASE_MODE, attach a [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/constraint/Rope]constraint.Rope[/url] to the player's head bone and another object, such as the world or a prop. Viola. Save the player's weapons, health, other stuff unless they are going to die automatically because when they come down from being hanged you need to give it back to them.
Sorry, you need to Log In to post a reply to this thread.