]> de.git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blobdiff - scripts/entities.def
entities.def update for target_random
[xonotic/xonotic-maps.pk3dir.git] / scripts / entities.def
index 22ca96eb184a40dfc7eb6789281ed1719dd00210..5b726796e060b6e3bfa160a8f9b98137d01a725a 100644 (file)
@@ -119,6 +119,7 @@ target: all entities with a matching targetname will be triggered.
 target2: all entities with a matching targetname will be triggered.
 target3: all entities with a matching targetname will be triggered.
 target4: all entities with a matching targetname will be triggered.
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 speed: speed of button's displacement (default 40).
 platmovetype: movement type (1 = linear, 2 = cosine [default])
 wait: number of seconds button stays pressed (default 1, -1 = return immediately).
@@ -319,6 +320,9 @@ Attacking team's player spawning location in Assault. Should touch the floor, bu
 -------- KEYS --------
 target: this should point to a target_objective to decide when this spawning point is active.
 target2: trigger all entities with this targetname when someone spawns
+target3: trigger all entities with this targetname when someone spawns
+target4: trigger all entities with this targetname when someone spawns
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 cnt: weight of spawn point for random selection. Set to a lower value if you have many spawn points close together. Default value is 1.
 restriction: when 1, only bots can spawn here; when 2, only humans can spawn here (be careful with these, or the game will crash because someone cannot spawn)
 */
@@ -337,6 +341,9 @@ Defending team's player spawning location in Assault. Should touch the floor, bu
 -------- KEYS --------
 target: this should point to a target_objective to decide when this spawning point is active.
 target2: trigger all entities with this targetname when someone spawns
+target3: trigger all entities with this targetname when someone spawns
+target4: trigger all entities with this targetname when someone spawns
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 cnt: weight of spawn point for random selection. Set to a lower value if you have many spawn points close together. Default value is 1.
 restriction: when 1, only bots can spawn here; when 2, only humans can spawn here (be careful with these, or the game will crash because someone cannot spawn)
 */
@@ -693,6 +700,7 @@ Generic placeholder for inserting MD3 models in game. Requires compilation of ma
 -------- Q3MAP2 KEYS --------
 model: file name of model to include
 _frame: frame of model to include
+_skin: skin of model to include
 _remap: string of the form from;to specifying which texture name of the model to replace by which shader; * is allowed. Any key starting with this prefix will work, so if you need more remappings, create _remap2, etc.
 angle: view direction of the model
 angles: view direction of the model in PITCH YAW ROLL
@@ -899,6 +907,7 @@ target: target to activate when a teleporter targeting this is used
 target2: target to activate when a teleporter targeting this is used
 target3: target to activate when a teleporter targeting this is used
 target4: target to activate when a teleporter targeting this is used
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 angle: direction in which player will look when teleported, OR use
 angles: pitch and yaw when coming out of the teleporter (also specifies the direction the player will aim when coming out)
 cnt: weight for random selection, in case a teleporter points at multiple misc_teleporter_dest
@@ -940,6 +949,7 @@ target: point to next path_corner in the path.
 target2: triggered when a func_train stops at this target
 target3: triggered when a func_train stops at this target
 target4: triggered when a func_train stops at this target
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 targetname: the train following the path or the previous path_corner in the path points to this.
 speed: speed of func_train while moving to this path corner. If unset, the value from the func_train will be used.
 wait: number of seconds func_train will pause on this path corner before moving to next path corner (default: 0.1; to not wait, set this to -1
@@ -965,6 +975,7 @@ target: targetname of entities to be enabled/triggered on round start (e.g. the
 target2: targetname of entities to be enabled/triggered on round start (e.g. the func_assault_destructibles targeting the target_objective)
 target3: targetname of entities to be enabled/triggered on round start
 target4: targetname of entities to be enabled/triggered on round start
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 */
 
 /*QUAKED target_objective (.5 0 .5) (-8 -8 -8) (8 8 8) 
@@ -974,6 +985,7 @@ target: targetname of entities to be enabled/triggered on objective fulfilling (
 target2: targetname of entities to be enabled/triggered on objective fulfilling (e.g. the func_assault_destructibles targeting the target_objective)
 target3: targetname of entities to be enabled/triggered on objective fulfilling
 target4: targetname of entities to be enabled/triggered on objective fulfilling
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 targetname: targetname for this entity so it can be triggered by other entities.
 */
 
@@ -1071,6 +1083,7 @@ target: trigger all entities with this targetname when triggered
 target2: trigger all entities with this targetname when triggered
 target3: trigger all entities with this targetname when triggered
 target4: trigger all entities with this targetname when triggered
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 targetname: name that identifies this entity so it can be triggered
 delay: delay the triggering by the given time
 message: print this message to the player who activated the trigger
@@ -1127,6 +1140,7 @@ target: trigger all entities with this targetname when triggered
 target2: trigger all entities with this targetname when triggered
 target3: trigger all entities with this targetname when triggered
 target4: trigger all entities with this targetname when triggered
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 targetname: name that identifies this entity so it can be triggered
 delay: delay the triggering by the given time
 message: print this message to the player who activated the trigger
@@ -1149,6 +1163,7 @@ target: this must point to a misc_teleporter_dest entity. If it points to more t
 target2: target to activate when the teleporter is used
 target3: target to activate when the teleporter is used
 target4: target to activate when the teleporter is used
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 team: team that owns this teleporter (5 = red, 14 = blue, etc) (when set, only this team can teleport)
 targetname: when targeted by a func_button, pressing the button will reassign the teleporter to the team of the activator.
 -------- SPAWNFLAGS --------
@@ -1344,6 +1359,9 @@ NOTE for race_place: when the race starts after the qualifying, the player with
 -------- KEYS --------
 target: this should point to a trigger_race_checkpoint to decide when this spawning point is active. The checkpoint has to be AFTER this spawn.
 target2: trigger all entities with this targetname when someone spawns
+target3: trigger all entities with this targetname when someone spawns
+target4: trigger all entities with this targetname when someone spawns
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 cnt: weight of spawn point for random selection. Set to a lower value if you have many spawn points close together. Default value is 1.
 race_place: if target points to the trigger_race_checkpoint with cnt 0 (finish line), this sets which place the spawn corresponds to; the special value 0 stands for spawns for players who died in game, and -1 marks the spawnpoint for qualifying mode only; any race map must have spawnpoints with race_place being 1, 2, 3 or it gets marked as a frustrating map
 restriction: when 1, only bots can spawn here; when 2, only humans can spawn here (be careful with these, or the game will crash because someone cannot spawn)
@@ -1419,6 +1437,7 @@ target: trigger all entities with this targetname when starting the game
 target2: trigger all entities with this targetname when starting the game
 target3: trigger all entities with this targetname when starting the game
 target4: trigger all entities with this targetname when starting the game
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 wait: wait so many seconds before triggering
 */
 
@@ -1741,6 +1760,7 @@ target: trigger all entities with this targetname when triggered
 target2: trigger all entities with this targetname when triggered
 target3: trigger all entities with this targetname when triggered
 target4: trigger all entities with this targetname when triggered
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 targetname: name that identifies this entity so it can be triggered
 delay: delay the triggering by the given time
 message: print this message to the player who activated the trigger
@@ -1877,6 +1897,7 @@ target: all entities with a matching targetname will be triggered.
 target2: all entities with a matching targetname will be triggered.
 target3: all entities with a matching targetname will be triggered.
 target4: all entities with a matching targetname will be triggered.
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 -------- SPAWNFLAGS --------
 IGNORE_SAY: do not respond to "say" messages
 IGNORE_TEAMSAY: do not respond to "say_team" messages
@@ -1913,6 +1934,7 @@ target: must point to another trigger_warpzone, or...
 target2: is triggered when a player ENTERS the warpzone (and warps away)
 target3: is triggered when a player LEAVES the warpzone (from the other warp zone to this one)
 target4: is triggered in both cases
+target_random: instead of triggering ALL matched entities, trigger ONE of them by random
 targetname: must be pointed to by another trigger_warpzone. Should be pointed to by a misc_warpzone_position entity, or...
 killtarget: should point to a target_position entity, or
 warpzone_fadestart: start distance of fading out the warpzone