X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-maps.pk3dir.git;a=blobdiff_plain;f=scripts%2Fentities.ent;h=d340a49cbe92f0b1f1397a17ad029b33be2ded91;hp=7ef0fa20eed7d03f5ddba3319bfa614ca35412ae;hb=d46183b6034fbf94f72761a2f5e70560014da1ca;hpb=96f404a3a537e7f4bc6cb6514f1d5b8f3a0a3079 diff --git a/scripts/entities.ent b/scripts/entities.ent index 7ef0fa20..d340a49c 100644 --- a/scripts/entities.ent +++ b/scripts/entities.ent @@ -976,11 +976,17 @@ Aiming target for entities like light and trigger_push. Sound generating entity that plays sound files. If targeted, it plays the sound file every time when triggered. If not targeted, it loops the sound file as an ambient noise. +The sound name may also be of the form *soundname, and in that case the respective player sound is played -------- KEYS -------- path/name of .wav/.ogg file to play the activating button or trigger points to this. distance attenuation of the sound (a value from 0.1 to 3.9), default is 0.5 if targeted, 3 otherwise; set to -1 for no attenuation (global sound) volume of the sound +-------- SPAWNFLAGS -------- +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. +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. +the sound plays with no attenuation (same as setting atten to -1) +the sound is played to the activator only when triggered (cannot be combined with LOOPED_ON and LOOPED_OFF)