Files
2026-05-20 12:29:30 -07:00

187 lines
6.0 KiB
Modula-2

/***********************************************************************
trigger
***********************************************************************/
entityDef trigger_multiple {
"editor_color" ".5 .5 .5"
"editor_mins" "?"
"editor_maxs" "?"
"editor_material" "textures/common/trigmulti"
"editor_usage" "Variable sized repeatable trigger. Must be targeted at one or more entities. " \
"The basic time between firing is a random time between (wait - random) and (wait + random).\n" \
"\n" \
"'wait' seconds between triggerings. Use '-1' to indicate one time only. (default 0.5)\n" \
"'delay' seconds to wait before firing after triggered (default 0)\n" \
"'call' script function to call when triggered\n" \
"'requires' item required in players inventory to fire\n" \
"'removeItem' if above item is removed from inventory when used\n" \
"'anyTouch' anything can touch it, players, mobs\n" \
"'noTouch' cannot be touched, must be triggered\n" \
"'random' wait variance (default 0)\n"
"spawnclass" "idTrigger_Multi"
"wait" "0.5"
"random" "0"
"delay" "0"
}
entityDef trigger_once {
"editor_color" ".5 .5 .5"
"editor_mins" "?"
"editor_maxs" "?"
"editor_material" "textures/common/trigonce"
"editor_usage" "Variable sized single-use trigger. Must be targeted at one or more entities. " \
"\n" \
"'delay' seconds to wait before firing after triggered (default 0)\n" \
"'call' script function to call when triggered\n" \
"'requires' item required in players inventory to fire\n" \
"'removeItem' if above item is removed from inventory when used\n" \
"'anyTouch' anything can touch it, players, mobs\n" \
"'noTouch' cannot be touched, must be triggered\n"
"spawnclass" "idTrigger_Multi"
"wait" "-1"
"random" "0"
"delay" "0"
}
entityDef trigger_timer {
"editor_color" "0.3 0.1 0.6"
"editor_mins" "-8 -8 -8"
"editor_maxs" "8 8 8"
"editor_material" "textures/common/trigtimer"
"editor_usage" "Repeatedly fires its targets. Can be turned on or off by using. " \
"The basic time between firing is a random time between (wait - random) and (wait + random).\n"
"\n" \
"'start_on' whether timer should be active when the level starts.\n"
"'wait' seconds between triggerings. Use '-1' to indicate one time only.\n" \
"'call' script function to call when triggered\n" \
"'random' wait variance\n"
"spawnclass" "idTrigger_Timer"
"start_on" "0"
"wait" "0.5"
"random" "0"
}
entityDef trigger_relay {
"editor_color" "0.3 0.1 0.6"
"editor_mins" "-8 -8 -8"
"editor_maxs" "8 8 8"
"editor_material" "textures/common/trigrelay"
"editor_usage" "Non-touchable repeatable trigger. Used as a proxy for triggering multiple targets in script, or " \
"from other entities. Must be targeted at one or more entities. " \
"The basic time between firing is a random time between (wait - random) and (wait + random).\n" \
"\n" \
"'wait' seconds between triggerings. Use '-1' to indicate one time only. (default 0.5)\n" \
"'delay' seconds to wait before firing after triggered (default 0)\n" \
"'call' script function to call when triggered\n" \
"'requires' item required in players inventory to fire\n" \
"'removeItem' if above item is removed from inventory when used\n" \
"'random' wait variance (default 0)\n"
"spawnclass" "idTrigger_Multi"
"wait" "0.5"
"random" "0"
"delay" "0"
"notouch" "1"
}
entityDef trigger_hurt {
"editor_color" "0.8 0.1 0.2"
"editor_mins" "?"
"editor_maxs" "?"
"editor_material" "textures/common/trighurt"
"editor_usage" "Damages the activator Can be turned on or off by other triggers."
"editor_var on" "whether or not it is active."
"editor_var damage" "damage per server frame to inflict."
"spawnclass" "idTrigger_Hurt"
"on" "1"
"damage" "5"
}
entityDef trigger_count {
"editor_color" ".3 .5 .8"
"editor_mins" "-8 -8 -8"
"editor_maxs" "8 8 8"
"editor_usage" "Countable trigger.\n"\
"'count' number of times to be triggered before firing"
"spawnclass" "idTrigger_Count"
}
entityDef trigger_presize {
"editor_color" ".5 .5 .5"
"editor_mins" "-64 -64 -16"
"editor_maxs" "64 64 16"
"editor_material" "textures/common/trigmulti"
"editor_usage" "Variable sized repeatable trigger. Must be targeted at one or more entities. " \
"The basic time between firing is a random time between (wait - random) and (wait + random).\n" \
"\n" \
"'wait' seconds between triggerings. Use '-1' to indicate one time only. (default 0.5)\n" \
"'delay' seconds to wait before firing after triggered (default 0)\n" \
"'call' script function to call when triggered\n" \
"'requires' item required in players inventory to fire\n" \
"'removeItem' if above item is removed from inventory when used\n" \
"'anyTouch' anything can touch it, players, mobs\n" \
"'noTouch' cannot be touched, must be triggered\n" \
"'random' wait variance (default 0)\n"
"spawnclass" "idTrigger_Multi"
"wait" "0.5"
"random" "0"
"delay" "0"
}
entityDef trigger_fade {
"editor_color" "0.8 0.1 0.2"
"editor_mins" "-8 -8 -8"
"editor_maxs" "8 8 8"
"editor_material" "textures/common/trigfade"
"editor_usage" "Fades the screen to fadeColor over fadeTime ( in seconds )."
"editor_var fadeColor" "Color to fade to."
"editor_var fadeTime" "How long it takes to fade."
"spawnclass" "idTrigger_Fade"
"fadeColor" "0 0 0 1"
"fadeTime" "1.0"
}
entityDef trigger_guiOverlay {
"editor_color" "0.8 0.1 0.2"
"editor_mins" "-8 -8 -8"
"editor_maxs" "8 8 8"
"editor_material" "textures/common/triggui"
"editor_usage" "Toggles an overlay gui full screen over the view."
"editor_var overlayGui" "gui to overlay"
"spawnclass" "idTrigger_GuiOverlay"
}