]> git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blobdiff - scripts/entities.ent
trigger_gravity: support relays, minor improvements to entity description
[xonotic/xonotic-maps.pk3dir.git] / scripts / entities.ent
index 66a0f3b9e1b918f9396ba09adc68f28e318d57e1..638c2c01d8a55feb0e506a8154939140b61efddf 100644 (file)
@@ -798,11 +798,11 @@ By this you see that you HAVE to specify fade for a linear light... use values b
 </point>
 
 <point name="misc_laser" color=".5 .5 .5" box="-8 -8 -8 8 8 8">
-Laser beam emitter. Note that for the laser to be deadly, it has to start OUTSIDE the player's collision box. To ensure this, you may want to put this entity inside the walls (or directly on their surface), or cover it with a playerclip brush.
+Laser beam emitter. Note that for the laser to be deadly, it has to start OUTSIDE the player's collision box. To ensure this, you may want to put this entity inside the walls (or directly on their surface), or cover it with a playerclip brush. Can be controlled by relays.
 -------- KEYS --------
 <target key="target" name="target">target_position the laser targets (may be another entity, preferably target_position, possibly controlled by misc_follow)</target>
 <string key="mdl" name="mdl">name of particle effect for the beam end point (see effectinfo.txt; default is laser_deadly if dmg is set, and none if not)</string>
-<color key="colormod" name="colormod">color of the laser beam (default: red, that is, 1 0 0)</color>
+<color key="beam_color" name="beam_color">color of the laser beam (default: red, that is, 1 0 0)</color>
 <real key="dmg" name="dmg">damage inflicted by the beam per second, or -1 for an instant-death ray</real>
 <targetname key="targetname" name="targetname">name to target this (then its state is toggled)</targetname>
 <real key="alpha" name="alpha">when set, makes a dark laser of the given strength; may be combined with colormod</real>
@@ -815,7 +815,7 @@ Laser beam emitter. Note that for the laser to be deadly, it has to start OUTSID
 <flag key="NOTRACE" name="NOTRACE" bit="2">the laser passes through solid (faster rendering on clientside); non-FINITE lasers then never display their impact effect &quot;mdl&quot;!</flag>
 <flag key="INVERT_TEAM" name="INVERT_TEAM" bit="3">the team that owns this will NOT get hurt</flag>
 -------- NOTES --------
-Use trigger_monoflop if you want the laser to turn off for a while, then turn back on.
+Use trigger_monoflop and relay_activatetoggle if you want the laser to turn off for a while, then turn back on.
 When the laser's target has itself target set, its targets are triggered when someone enters or leaves the laser.
 </point>
 
@@ -1141,7 +1141,6 @@ The sound name may also be of the form *soundname, and in that case the respecti
 -------- SPAWNFLAGS --------
 <flag key="LOOPED_ON" name="LOOPED_ON" bit="0">the sound is looped and initially plays (the sound file MUST have the LOOP_START vorbis comment then!). It can be toggled by a trigger.</flag>
 <flag key="LOOPED_OFF" name="LOOPED_OFF" bit="1">the sound is looped and initially does not play (the sound file MUST have the LOOP_START vorbis comment then!). It can be toggled by a trigger.</flag>
-<flag key="GLOBAL" name="GLOBAL" bit="2">the sound plays with no attenuation (same as setting atten to -1)</flag>
 <flag key="ACTIVATOR" name="ACTIVATOR" bit="3">the sound is played to the activator only when triggered (cannot be combined with LOOPED_ON and LOOPED_OFF)</flag>
 </point>
 
@@ -1156,7 +1155,7 @@ Monster spawnpoint for Invasion
 
 <group name="trigger_counter" color=".5 .5 .5">
 Acts as an intermediary for an action that takes multiple inputs.
-After the counter has been triggered &quot;count&quot; times, it will fire all of its targets and remove itself.
+After the counter has been triggered &quot;count&quot; times, it will fire all of its targets.
 -------- KEYS --------
 <real key="count" name="count">how many times this needs to be triggered to activate its targets</real>
 <target key="target" name="target">trigger all entities with this targetname when triggered</target>
@@ -1166,6 +1165,7 @@ After the counter has been triggered &quot;count&quot; times, it will fire all o
 <target key="killtarget" name="killtarget">remove all entities with this targetname when triggered</target>
 -------- SPAWNFLAGS --------
 <flag key="NOMESSAGE" name="NOMESSAGE" bit="0">don't print a &quot;2 more to go...&quot;-like message when triggered</flag>
+<flag key="FIRE_AT_COUNT" name="FIRE_AT_COUNT" bit="2">fire at every count (behaves like trigger_multiple with limited shots)</flag>
 </group>
 
 <point name="trigger_delay" color=".5 .5 .5" box="-8 -8 -8 8 8 8">
@@ -1718,6 +1718,20 @@ You may want to target this by a race checkpoint, a teleporter, or a trigger_mul
 <flag key="ANDNOT" name="ANDNOT" bit="2">the items listed will get removed from the player</flag>
 </point>
 
+<point name="target_kill" color="1 0 0" box="-8 -8 -8 8 8 8">
+Kills whoever activates this target
+-------- KEYS --------
+<targetname key="targetname" name="targetname">used to trigger this</targetname>
+<string key="message" name="message">message to print</string>
+</point>
+
+<point name="target_levelwarp" color="1 1 0.5" box="-8 -8 -8 8 8 8">
+CAMPAIGN ONLY!!!! Warp to another campaign level
+-------- KEYS --------
+<targetname key="targetname" name="targetname">used to trigger this</targetname>
+<real key="message" name="message">index of the campaign level to warp to (starting from 1), 0 for next level</real>
+</point>
+
 <point name="target_spawn" color="1 0 1" box="-8 -8 -8 8 8 8">
 Spawns or modifies an entity when triggered.
 The entity field list is a single string of the form:
@@ -2335,18 +2349,19 @@ When triggered, its effect is turned off until triggered again.
 An area where gravity differs from the rest of the map.
 This acts as a modifier over the normal gravity (sv_gravity). e.g.: 0.5 is half the normal gravity, 2 is twice the normal gravity.
 -------- KEYS --------
-<real key="gravity" name="gravity">gravity offset in this area, defaults to 0 if not set</real>
+<real key="gravity" name="gravity">gravity multiplier in this area, defaults to 0 if not set</real>
 <sound key="noise" name="noise">sound to play when an entity enters the gravity zone, leave empty to disable</sound>
-<targetname key="targetname" name="targetname">you can use this to target the gravity zone with a trigger, which will toggle it when activated</targetname>
+<targetname key="targetname" name="targetname">you can use this to target the gravity zone with a relay to (de)activate the gravity multiplier</targetname>
 -------- SPAWNFLAGS --------
 <flag key="STICKY" name="STICKY" bit="0">entities keep their gravity after leaving the gravity zone</flag>
-<flag key="START_OFF" name="START_OFF" bit="1">when targeted, the gravity zone starts off and is enabled upon triggering</flag>
+<flag key="START_OFF" name="START_OFF" bit="1">when targeted, the gravity zone starts disabled</flag>
 </group>
 
 <point name="relay_activate" color="0 1 0" box="-8 -8 -8 8 8 8">
 Activates all targets
 List of currently supported target ents:
 trigger_conveyor
+trigger_gravity
 trigger_hurt
 trigger_heal
 trigger_impulse
@@ -2359,6 +2374,7 @@ func_conveyor
 func_fourier
 func_pointparticles
 func_vectormamamam
+misc_laser
 -------- KEYS --------
 <target key="target" name="target">trigger all entities with this targetname when triggered</target>
 <targetname key="targetname" name="targetname">name that identifies this entity so it can be triggered</targetname>
@@ -2368,6 +2384,7 @@ func_vectormamamam
 Deactivates all targets
 List of currently supported target ents:
 trigger_conveyor
+trigger_gravity
 trigger_hurt
 trigger_heal
 trigger_impulse
@@ -2380,6 +2397,7 @@ func_conveyor
 func_fourier
 func_pointparticles
 func_vectormamamam
+misc_laser
 -------- KEYS --------
 <target key="target" name="target">trigger all entities with this targetname when triggered</target>
 <targetname key="targetname" name="targetname">name that identifies this entity so it can be triggered</targetname>
@@ -2389,6 +2407,7 @@ func_vectormamamam
 Toggles all targets de/active
 List of currently supported target ents:
 trigger_conveyor
+trigger_gravity
 trigger_hurt
 trigger_heal
 trigger_impulse
@@ -2401,6 +2420,7 @@ func_conveyor
 func_fourier
 func_pointparticles
 func_vectormamamam
+misc_laser
 -------- KEYS --------
 <target key="target" name="target">trigger all entities with this targetname when triggered</target>
 <targetname key="targetname" name="targetname">name that identifies this entity so it can be triggered</targetname>
@@ -2413,7 +2433,11 @@ When no chmap key is set, the entity just ends the match when triggered. The pla
 <targetname key="targetname" name="targetname">The name other entities can use to target this entity</targetname>
 <string key="chmap" name="chmap">Map file to switch to, leave empty to make this entity just end the match</string>
 <string key="gametype" name="gametype">Switch to this gametype. If empty, the same gametype stays</string>
+<real key="count" name="count">fraction of players (excludes bots) that need to trigger this entity to change the level when MULTIPLAYER is set (default: 0.7)</real>
+-------- SPAWNFLAGS --------
+<flag key="MULTIPLAYER" name="MULTIPLAYER" bit="1">makes this entity only change level when a fraction of the players triggered it</flag>
 </point>
+
 <point name="turret_machinegun" color="1 0 0" box="-32 -32 0 32 32 50">
 Fast firing moderate damage bullet (hitscan) turret.
 -------- KEYS --------