Rope System
whip_rope is a physics rope. Players carry it as the rope item, tie it to cars, props and the map, tow with it and hang off it. Your resource can make ropes too, as whip_fuel's pump hose does.
It ships with WHIP and needs no setup. See Rope API for ropes from a script and Learning from rope for its code.
Using a rope
| To | How |
|---|---|
| Put one out | Use the Rope item. One end is in your hand |
| Tie the end you hold | Look at a car, a prop or the map within reach and press the prompt's key. You then hold the other end, if it was loose |
| Put it down, let go, coil it up | The wheel (F1). Coiling takes 3 seconds and puts the rope in your pockets |
| Pick up or untie an end | The prompt on the end |
| Hang on | The prompt on the rope. Jump lets go; a shot knocks a hanging player off, unhurt |
Holding an end, you can't sprint (a setting). Walk a metre past the rope's easy stretch and it leaves your hands; if a car drives off with the other end, you're dragged for a few seconds.
How it pulls
A slack rope pulls nothing. Taut, it stretches easily up to 15% past its length, then harder: a weak car is pulled back, a strong one drags it. Both ends feel the same pull, so a light car moves more than a heavy truck.
The server keeps each rope's ends; every game near works out the rest, so a towed car follows at once, at any ping.
SettingsServer owners#
- /whip → Settings → Rope has the rules (who may handle a rope, tying, reach), length and node count, ropes per player, collisions, hanging and holding. How it pulls and looks is in whip_rope's
config.lua. - A rope keeps the length and node count it was made with.
- Players who leave with ropes out get them back at their next login, even after a restart.
- With
Config.Rules.AnyoneCanHandleon (the default), anyone can pick up, untie or coil up anyone's rope; coiling gives the item to whoever coils it.
Ropes in the Director#
whip_rope adds a Ropes group to the Director's cards. A run's ropes are found by name (rope unless a scenario makes more than one), and go when the run ends, a Test's too.
- Make a Rope, Move a Rope End, Change Rope Rules, Remove a Rope. Each end is tied to a placed car (front, back or middle), prop or spot, in the player's hand, or loose. The rules say whether players may pick it up and hang off it.
- Goal: Tie a Rope: on once any rope (a player's too, unless it asks for the run's) is tied to a placed car, prop or spot, or between two. Goal: Hang on a Rope: a run player hangs off one for as long as it asks.
- When a Rope Is Pulled Too Far: a run's rope is pulled past a stretch (default 35%); it can snap.
A rope never ties to an NPC (Check says so). A moving prop is tied to itself; a still one, and a spot, are tied to the map.
Debugging#
All need developer mode on; /ropes and /clearropes also run from the server console.
/ropedebug: your overlay of each rope's ends, stretch, pull and rays cast a second./ropestatus: what your game has, in F8./ropes: every rope out, in the server console./clearropes: takes every rope in. Owners get theirs back; a resource's rope is removed and its resource told (whip_rope:ropeRemoved).