Call of Duty 5: Triggers: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ center =Damage= Trigger that responds to taking damage. Damage trigger will trigger if a bullet intersects them or if a projectile or grenade explodes i...)
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
[[Image:warning.png]] KVP lists may be incomplete or outdated as the Radiant info has not been updated since CoD2.
[[Image:Triggers.jpg|center]]


=Damage=
{| style="width:100%"
Trigger that responds to taking damage. Damage trigger will trigger if a bullet intersects
|-
them or if a projectile or grenade explodes inside the trigger.
|__TOC__
|[[Image:Triggers.jpg]]
|}


=Disk=
Unknown


=FriendlyChain=
==Damage==
Forces any touching entity to be considered on the targeted friendly chain.
Trigger that responds to taking damage. Damage trigger will trigger if a bullet intersects
them or if a projectile or grenade explodes inside the trigger.


=Hurt=
{| border="2"
Any entity that touches this will be hurt.
|-
It does dmg points of damage each server frame.
|'''Key'''
Targeting the trigger will toggle its on / off state.
|'''Value / Description'''
|-
|accumulate
|If set, this much damage must be accumulated before it will trigger
|-
|spawnflags
|For combinations add up the single spawnflag values (see below)
|-
|threshold
|If set, the min amount of damage that must be done to it to trigger it
|-
|wait
| -1 = one time only, otherwise triggers every frame
|}


=Look At=
Note that accumulate & threshold can be used at the same time.
Requires a player to look at this trigger.


=Multiple=
{| border="2"
Trigger that responds to players by default.
|-
Can be triggered multiple times.
|'''Spawnflag'''
|'''Value'''
|'''Description'''
|-
|PISTOL_NO
|1
|turns off response to pistol damage
|-
|RIFLE_NO
|2
|turns off response to rifle damage
|-
|PROJ_NO
|4
|turns off response to projectile damage from grenades and rockets.<br>Note that turning off projectile damage will also turn off splash damage, whether or not the splash is on.
|-
|EXPLOSION_NO
|8
|turns off response to explosion damage
|-
|SPLASH_NO
|16
|turns off response to splash damage from grenades and rockets.  
|-
|MELEE_NO
|32
|turns off response to melee damage
|-
|FIRE_NO
|64
|turns off response to flame/fire damage
|-
|MISC_NO
|128 ??
|turns off response to all other misc types of damage
|}


=Once=
Must be targeted at one or more entities.
Once triggered, this entity is destroyed.


=Radius=
==Disk==
Trigger that responds to players by default within radius.
Trigger that responds to players by default within radius. Like [[#Radius|Radius trigger]] but fixed height.


=Use=
[[Image:Trigger_disk.jpg]]
When activated will use its target.


=Use Touch=
{| border="2"
When the player is touching and activated, the trigger will use its target
|-
|'''Key'''
|'''Value / Description'''
|-
|radius
|Adjust radius with alt-'[' and alt-']'
|-
|wait
| -1 = one time only, otherwise triggers every frame
|}




Sources: [http://wiki.treyarch.com/wiki/Triggers Treyarch's Wiki]
==FriendlyChain==
Forces any touching entity to be considered on the targeted friendly chain.


[[Image:Trigger_friendlychain.jpg]]
==Hurt==
Any entity that touches this will be hurt.
It does dmg points of damage each server frame.
Targeting the trigger will toggle its on / off state.
{| border="2"
|-
|'''Key'''
|'''Value / Description'''
|-
|dmg
|default 5 (whole numbers only)
|}
The entity must be used first before it will count down its life.
{| border="2"
|-
|'''Spawnflag'''
|'''Value'''
|'''Description'''
|-
|START_OFF
|1
|??
|-
|PLAYER_ONLY
|2
|only damages the player
|-
|SILENT
|4
|supresses playing the sound
|-
|NO_PROTECTION
|8
|*nothing* stops the damage
|-
|SLOW
|16
|changes the damage rate to once per second
|-
|ONCE
|32
|??
|}
==Look At==
Requires a player to look at this trigger.
==Multiple==
Trigger that responds to players by default.
Can be triggered multiple times.
{| border="2"
|-
|'''Key'''
|'''Value / Description'''
|-
|wait
| -1 = one time only, otherwise triggers every frame
|}
Variable sized repeatable trigger.
==Once==
Must be targeted at one or more entities. Once triggered, this entity is destroyed.
(You can actually do the same thing with trigger_multiple with a wait of -1)
==Radius==
Trigger that responds to players by default within radius and height.
[[Image:Trigger_radius.jpg]]
{| border="2"
|-
|'''Key'''
|'''Value / Description'''
|-
|height
|Adjust height with alt-',' and alt-'.'
|-
|radius
|Adjust radius with alt-'[' and alt-']'
|-
|wait
| -1 = one time only, otherwise triggers every frame
|}
==Use==
When activated will use its target.
{| border="2"
|-
|'''Key'''
|'''Value / Description'''
|-
|delay
|time (in seconds) before it can be used again
|-
|offnoise
|specifies an alternate sound
|-
|cursorhint
|sets the cursor hint icon to display when the player looks at it. Default is HINT_ACTIVATE.
|-
|hintstring
|hint string to display over the icon. Auto replaces [Use] with the key the player must press.<br>Example: "Press [Use] to plant the bomb"
|}
"cursorhint" cursor types:
*HINT_ACTIVATE
*HINT_FRIENDLY
*HINT_HEALTH
*HINT_INHERIT
*HINT_NOICON
*HINT_SEAT
*HINT_SPECTATOR
<!-- obsolete (no string reference in CoD4/5 executables):
HINT_DOOR
HINT_DOOR_LOCKED
HINT_LADDER
HINT_MG42
HINT_NOACTIVATE
HINT_NONE -->
==Use Touch==
When the player is touching and activated, the trigger will use its target.
Keys and values like for [[#Use|Use trigger]]
Sources: Radiant Entity editor and [http://wiki.treyarch.com/wiki/Triggers Treyarch's Wiki]
[[Category:Call of Duty 5]]
[[Category:Call of Duty 5]]
[[Category:Modtools]]
[[Category:Modtools]]
Line 45: Line 244:
[[Category:Radiant]]
[[Category:Radiant]]
[[Category:Basic Editing]]
[[Category:Basic Editing]]
[[Category:Mantle]]

Latest revision as of 00:23, 18 July 2009

 KVP lists may be incomplete or outdated as the Radiant info has not been updated since CoD2.


Damage

Trigger that responds to taking damage. Damage trigger will trigger if a bullet intersects them or if a projectile or grenade explodes inside the trigger.

Key Value / Description
accumulate If set, this much damage must be accumulated before it will trigger
spawnflags For combinations add up the single spawnflag values (see below)
threshold If set, the min amount of damage that must be done to it to trigger it
wait -1 = one time only, otherwise triggers every frame

Note that accumulate & threshold can be used at the same time.

Spawnflag Value Description
PISTOL_NO 1 turns off response to pistol damage
RIFLE_NO 2 turns off response to rifle damage
PROJ_NO 4 turns off response to projectile damage from grenades and rockets.
Note that turning off projectile damage will also turn off splash damage, whether or not the splash is on.
EXPLOSION_NO 8 turns off response to explosion damage
SPLASH_NO 16 turns off response to splash damage from grenades and rockets.
MELEE_NO 32 turns off response to melee damage
FIRE_NO 64 turns off response to flame/fire damage
MISC_NO 128 ?? turns off response to all other misc types of damage


Disk

Trigger that responds to players by default within radius. Like Radius trigger but fixed height.

Key Value / Description
radius Adjust radius with alt-'[' and alt-']'
wait -1 = one time only, otherwise triggers every frame


FriendlyChain

Forces any touching entity to be considered on the targeted friendly chain.


Hurt

Any entity that touches this will be hurt. It does dmg points of damage each server frame. Targeting the trigger will toggle its on / off state.

Key Value / Description
dmg default 5 (whole numbers only)

The entity must be used first before it will count down its life.

Spawnflag Value Description
START_OFF 1 ??
PLAYER_ONLY 2 only damages the player
SILENT 4 supresses playing the sound
NO_PROTECTION 8 *nothing* stops the damage
SLOW 16 changes the damage rate to once per second
ONCE 32 ??


Look At

Requires a player to look at this trigger.


Multiple

Trigger that responds to players by default. Can be triggered multiple times.

Key Value / Description
wait -1 = one time only, otherwise triggers every frame

Variable sized repeatable trigger.


Once

Must be targeted at one or more entities. Once triggered, this entity is destroyed.

(You can actually do the same thing with trigger_multiple with a wait of -1)


Radius

Trigger that responds to players by default within radius and height.

Key Value / Description
height Adjust height with alt-',' and alt-'.'
radius Adjust radius with alt-'[' and alt-']'
wait -1 = one time only, otherwise triggers every frame


Use

When activated will use its target.

Key Value / Description
delay time (in seconds) before it can be used again
offnoise specifies an alternate sound
cursorhint sets the cursor hint icon to display when the player looks at it. Default is HINT_ACTIVATE.
hintstring hint string to display over the icon. Auto replaces [Use] with the key the player must press.
Example: "Press [Use] to plant the bomb"


"cursorhint" cursor types:

  • HINT_ACTIVATE
  • HINT_FRIENDLY
  • HINT_HEALTH
  • HINT_INHERIT
  • HINT_NOICON
  • HINT_SEAT
  • HINT_SPECTATOR


Use Touch

When the player is touching and activated, the trigger will use its target.

Keys and values like for Use trigger


Sources: Radiant Entity editor and Treyarch's Wiki