Defines the Zip Tie item for the Metropolice Force and Overwatch factions, which ties up the character the player is looking at after a timed action.

The target must be untied, within 192 units and facing away or ragdolled. The delay comes from Schema:GetDexterityTime; on success Schema:TiePlayer is called, the zip tie is used up, agility progresses and a tied Combine unit raises a lost-contact line on the Combine display. The file also adds the item's English and Russian notification strings.

Summary

Methods

Blocks dropping the zip tie, with a notification, while the player is tying someone.
Starts tying up the player being looked at.

Methods

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_zip_tie.lua:142

Blocks dropping the zip tie, with a notification, while the player is tying someone.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_zip_tie.lua:48

Starts tying up the player being looked at.

The target must be untied, within 192 units and facing away or ragdolled. Tying takes Schema:GetDexterityTime seconds; on success the target is tied, Combine are alerted when the target is Combine, the zip tie is used up and agility progresses. Nothing happens when the zip tie is gone by then. Always returns false so the item is only removed once tying succeeds.

Parameters

  • player
  • itemEntity

Defined in