Shared definition of the cw_wood entity, a copy of cw_garbage that keeps its Garbage Spawnpoint name, the TYPE_WATERCAN and TYPE_SUPPLIES globals and the networked index variable.

Summary

Methods

Blocks every tool on the node.
Draw()client
Draws the node's model.
Picks a random garbage model and sets up the node's physics, colliding only with the world.
Stops the node from moving unless a player holds it or it is constrained.
Stores the node's type in the networked int 1, for TYPE_WATERCAN or TYPE_SUPPLIES only.
Sets up the networked int 0 (index).
Think()client
Does nothing on the client.
Returns TRANSMIT_ALWAYS, so the node is networked to every client.
Starts searching the node when a crouching, untied player uses it, like a garbage pile.

Methods

Blocks every tool on the node.

Parameters

  • player
  • trace
  • tool

Returns

  • Boolean Always false

Draws the node's model.

On the server

Picks a random garbage model and sets up the node's physics, colliding only with the world.

On the client

Does nothing on the client.

Defined in

Stops the node from moving unless a player holds it or it is constrained.

Parameters

  • physicsObject

Stores the node's type in the networked int 1, for TYPE_WATERCAN or TYPE_SUPPLIES only.

Parameters

  • entType Number TYPE_WATERCAN or TYPE_SUPPLIES

Sets up the networked int 0 (index).

Does nothing on the client.

Returns TRANSMIT_ALWAYS, so the node is networked to every client.

Returns

  • Number TRANSMIT_ALWAYS

Starts searching the node when a crouching, untied player uses it, like a garbage pile.

The search takes GetGarbageTime seconds within 192 units and runs PlayerTakeGarbage before removing the node.

Parameters

  • activator
  • caller

Defined in