Esc to clear, Enter to open the best match, click an export to open it in its page
whip_rope

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

ToHow
Put one outUse the Rope item. One end is in your hand
Tie the end you holdLook 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 upThe wheel (F1). Coiling takes 3 seconds and puts the rope in your pockets
Pick up or untie an endThe prompt on the end
Hang onThe 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#

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.

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.