X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-maps.pk3dir.git;a=blobdiff_plain;f=scripts%2Fentities.def;h=8a89f28f1e408ede8d21e474ae702a2c521054e1;hp=8e6b9b5bfab57388ccf6d4045bcd772afff7ec76;hb=f879e0523ca5a81650ea0edee80ad5a8410e25ae;hpb=e9f60a861e8332bb9251385c2206e70295d362d3 diff --git a/scripts/entities.def b/scripts/entities.def index 8e6b9b5b..8a89f28f 100644 --- a/scripts/entities.def +++ b/scripts/entities.def @@ -1431,7 +1431,7 @@ Example is a Mario-style question mark block which could throw a new weapon_nex -------- KEYS -------- targetname: used to trigger this message: entity field list -target: when set, target_spawn edits entities, instead of creating new ones +target: when set, target_spawn edits entities, instead of creating new ones; the special value *activator causes the activator to be edited count: make sure no more than count entities have been created by this (refuse to spawn new ones if exceeded) killtarget: reference entity (can be used as $killtarget) target2: reference entity (can be used as $target2) @@ -1775,3 +1775,31 @@ Must target a target_position that indicates the view to be shown (and whose ang target: must point to a target_position */ +/*QUAKED target_music (1 0 0) (-8 -8 -8) (8 8 8) +Background music target (when this is used, the cdtrack line in mapinfo must not be used, and there MUST be a default target_music). +When triggered, the background music is switched to the given track. +When targetname is not set, this is the default track of the map. +-------- KEYS -------- +targetname: The name other entities can use to target this entity (when not set, this one is the default) +noise: the music to play (as full sound file name) +volume: the volume (default: 1) +fade_time: fade-in time +fade_rate: fade-out time +lifetime: when set, the music created by this target is switched back to the default one when this time expires +-------- SPAWNFLAGS -------- +START_OFF: the trigger is off initially +*/ + +/*QUAKED trigger_music (1 0 0) ? +Background music trigger (when this is used, the cdtrack line in mapinfo must not be used, and there MUST be a default target_music). +When triggered, its effect is turned off until triggered again. +-------- KEYS -------- +targetname: The name other entities can use to target this entity +noise: the music to play (as full sound file name) +volume: the volume (default: 1) +fade_time: fade-in time +fade_rate: fade-out time +-------- SPAWNFLAGS -------- +START_OFF: the trigger is off initially +*/ +