Func train

From MovieBattles II Wiki

Jump to: navigation, search

DESCRIPTION

A train is a mover that moves between path_corner target points.


SPAWNFLAGS

START_ON - Default to start not running and must be triggered, this starts it running in world start.

TOGGLE - Keep firing until used again (fires at intervals of 'wait')

BLOCK_STOPS - ????

CRUSH_THROUGH - spawnflag combined with a dmg value will make the train pass through entities and damage them on contact as well.

PLAYER_USE - Player can use it with the use button.

INACTIVE - Starts ready to be triggered, this sets it in need of activation first by means of a target_activate.


KEYS&VALUES

model2 - .md3 model to also draw.

speed - Default 100.

dmg - Default 2

target - Next path corner.

color - ConstantLight color. (Default setup with light entity selected press K to bring up color picker.)

light - ConstantLight radius.


_lightmapscale - Floating point value scaling the resolution of lightmaps on brushes/patches in this entity (default 1.0).

_cs OR _castshadows - Allows per-entity control over shadow casting. Defaults to 0 on entities, 1 on world. 0 = no shadow casting. 1 = cast shadows on world. > 1 = cast shadows on entities with _rs (or _receiveshadows) with the corresponding value, AND world. Negative values imply same, but DO NOT cast shadows on world.

_rs OR _receiveshadows - Allows per-entity control over shadow reception. Defaults to 1 on everything (world shadows). 0 = receives NO shadows. > 1 = receive shadows only from corresponding keyed entities (see above) and world. < 1 = receive shadows ONLY from corresponding keyed entities.

_celshader - Sets the cel shader used for this geometry. Note: omit the 'textures/' prefix.

_indexmap OR alphamap - Path/name for the art file used to guide the mapping of textures on the terrain surface.

_layer OR layers - Integer value is the number unique root shaders that will be use on the terrain.

_shader OR shader - Path to the metashader used to assign textures to the terrain entity. Note: Omit the 'textures/' prefix.

script_targetname - Referred to by script as the recipient of set of instructions. Most entities can use this key.


NOTES

Trains MUST HAVE AN ORIGIN BRUSH.

The train spawns at the first target it is pointing at.

If model2 key is used you need to add an origin brush to reference the point of origin of the model.

If an origin brush is used the you must select the origin brush first then all other brushes that make up this entity. Then create this entity.

Personal tools