Jump to content

Entities Target

From Kingpin Wiki

target_blaster

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Code leftovers from Q2, fires a blaster bolt in the set direction when triggered.

Spawnflags

Flag Name Description
1 NOTRAIL
2 NOEFFECTS

Keys

Key Description
dmg Damage inflicted (default=15).
speed Bolt speed (default=1000).

target_changelevel

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Load a new map when triggered. You can specify the info_player_start to use in the next map, adding its ID after a $ symbol (example: "map2$start1" will load "map2.bsp" and use the info_player_start called "start1"). Put a * symbol before the next map name to create a new unit, so the game forgets infos regarding visited levels (example: "*map2").

Keys

Key Description
map (*)(destination level)($)(info_player_start ID).
targetname This entity's ID.

target_character

Map Entity Color: (0 0 1) (COLOR PREVIEW) Dimensions: Size of map components used

Used with target_string (must be on same "team")

Also can be used with target_clock.

Keys

Key Description
team String team, must be the same ID as target_string.
count Position in the string (default=1).
targetname This entity's ID.

target_crosslevel_target

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Triggered by a trigger_crosslevel_trigger elsewhere within a unit. If multiple triggers are checked, all must be true. Delay, target, and killtarget also work.

Spawnflags

Flag Name Description
1 TRIGGER1
2 TRIGGER2
4 TRIGGER3
8 TRIGGER4
16 TRIGGER5
32 TRIGGER6
64 TRIGGER7
128 TRIGGER8

Keys

Key Description
target Target entity's ID.
delay Delay before using targets if the trigger has been activated (default=1).
killtarget ID of the entity to delete when triggered.
message Message to display on trigger.

target_crosslevel_trigger

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Once this trigger is touched or used, any trigger_crosslevel_target with the same trigger number is automatically used when a level is started within the same unit.

Spawnflags

Flag Name Description
1 TRIGGER1
2 TRIGGER2
4 TRIGGER3
8 TRIGGER4
16 TRIGGER5
32 TRIGGER6
64 TRIGGER7
128 TRIGGER8

Keys

Key Description
targetname This entity's ID.

target_earthquake

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

When triggered, this initiates a level-wide earthquake, affecting all players and monsters.

Keys

Key Description
speed Severity of the quake (default=200).
count Duration of the quake (default=5).
targetname This entity's ID.

target_explosion

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Spawns an explosion when used.

Keys

Key Description
targetname This entity's ID.
target Target entity's ID.
delay Wait time before explosion.
dmg How much radius damage should be done (default=0).
fxdensity Explosion size -- 1 to 100 (default=10).

target_fire

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Spawns a fire.

Keys

Key Description
fxdensity Size of fire -- 1 to 100 (default=10).
deadticks Random fire sections per frame (default=3).
duration How long the fire stays alive in seconds, lasts forever if -1 (default=5.0).
dmg Damage per second (default='fxdensity').
reactdelay Fire spread factor -- 0.0 to 10.0 (default=1).
target Target entity's ID.
targetname This entity's ID.

target_flamethrower

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Shoots flame when triggered on, does not when triggered off.

Keys

Key Description
dmg Damage the flame does per frame (default=2).
fxdensity Set to 1 to start on.
deadticks Angle adjustment up and down -- -90 to 90 (default=0).
targetname This entity's ID.

target_goal

Map Entity Color: (1 0 1) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Code leftovers from Q2, can be triggered once only, counts a goal completed.

Keys

Key Description
noise Wav sound to play when triggered (default='misc/secret.wav').

target_laser

Map Entity Color: (0 .5 .8) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Code leftovers from Q2, fires a laser when triggered.

Spawnflags

Flag Name Description
1 START_ON Set default state to ON.
2 RED
4 GREEN
8 BLUE
16 YELLOW
32 ORANGE
64 FAT

Keys

Key Description
target Target entity's ID -- shooting direction (overrides angle).
angle Shooting direction.
dmg Damage inflicted when blocked (default=1).

target_lightramp

Map Entity Color: (0 .5 .8) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Spawnflags

Flag Name Description
1 TOGGLE Maintain state, switch only when triggered.

Keys

Key Description
target Target entity's ID.
targetname This entity's ID.
speed How many seconds the ramping will take.
message Two letters: starting lightlevel and ending lightlevel ('a'=dark to 'z'=bright).

target_mal_laser

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Code leftovers from Q2 MP1, Mal's laser.

Spawnflags

Flag Name Description
1 START_ON Set default state to ON.
2 RED
4 GREEN
8 BLUE
16 YELLOW
32 ORANGE
64 FAT

Keys

Key Description
targetname This entity's ID.
angle Shooting direction.
delay Delay before first shot (default=0.1).
wait Time between two shots (default=0.1).
dmg Damage inflicted when blocked (default=5).

target_secret

Map Entity Color: (1 0 1) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Code leftovers from Q2, can be triggered once only, counts a secret found.

Keys

Key Description
noise Wav sound to play when triggered (default='misc/secret.wav').

target_spawner

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Will spawn an entity when triggered. The spawned entity inherits this entity's spawnflags, angle, and origin.

Keys

Key Description
targetname This entity's ID.
target Spawned entity's classname.
speed Spawned entity's velocity.
angle Spawned entity's direction.

target_speaker

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Sound emitter. Plays a sound each time the entity is triggered. Can be toggled on and off if LOOPED-ON or LOOPED-OFF is set (looped sounds are always 'attenuation=3', 'volume=1').

Spawnflags

Flag Name Description
1 LOOPED_ON Sound is looped, default state is on.
2 LOOPED_OFF Sound is looped, default state is off (must be triggered).
4 IMPORTANT Defined as reliable, always has priority over other effects.

Keys

Key Description
targetname This entity's ID.
noise Wav file to play.
attenuation Radius -- -1=whole level, 1=normal fighting sound, 2=idle sound, 3=ambient sound (default=1).
volume Volume -- 0 to 1 (default=1).

target_splash

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

A particle emitter, spawns particles when triggered.

Keys

Key Description
sounds Particle type - 1 = sparks, 2 = brown water, 3 = blue water, 4 = lava, 5 = multicolored particles, 6 = blood, 7 = fireworks, 8 = smoke.
count Amount of particles -- 1 to 10 (default=3).
dmg Radius damage (default=0).
alphalevel Smoke only: Opacity level -- 1 to 10 (default=4).
firetype Smoke only: Smoke size -- 5 to 32 (default=24).
deadticks Smoke only: Lifetime in seconds -- 1 to 60 (default=6).
fxdensity Smoke only: Speed of rising -- 1 to 100 (default=24).
rotate Smoke only: X Y Z velocity (default=up).

target_string

Map Entity Color: (0 0 1) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

String to display on target_character's.

Keys

Key Description
targetname This entity's ID
team target_character]]'s.
message Message to display on target_character's.

target_temp_entity

Map Entity Color: (1 0 0) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Fires an origin-based temp entity event to the clients.

Keys

Key Description
style Type byte.