Posted: Thu Mar 28, 2019 1:11 pm Post subject:
Tiberian Sun - Ambient Sound
Hi all,
is it possible to insert some ambient sounds? for example dog barks or lake sounds. if it is possible to do this - is it also possible to loop any kind of sound effects? QUICK_EDIT
Ambient as in hearable all over the map, regardless where the players screen currently is focused, no. Only a few hardcoded sound effects play global, like the jellyfish PropulsionSoundEffect's
However you can do create local ambient effects with a little workaround
-create a dummy building (copy of an invisible light post)
-give this dummy building in art.ini an infinitely looped ActiveAnim
-give this dummy ActiveAnim via TrailerAnim another dummy anim which plays your sound and you can use TrailerSeperation to control the delay/interval at which the sound is repeated
You can also play with the key RandomLoopDelay, to give the sound a random delay. However be warned, that this might cause a sync loss in network/online games as soon as some kind of damage is also involved. _________________ SHP Artist of Twisted Insurrection: Nod buildings
rules.ini
;add new anims to this lists end
[Animations]
: ;using TS Client, the last used number is 751=KODIAK_AD
752=SNDLOOP
753=THESOUND
[SOUDLITE]
Name=Invisible Light Post
Image=GALITE you want to have it use it's own art.ini section
InvisibleInGame=yes
Insignificant=yes
Selectable=no
Strength=6000
Armor=wood
TechLevel=-1
Nominal=yes
Sight=0
Points=30
Power=0
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=1
; LightVisibility=5000
; LightIntensity=0.2
; LightRedTint=0.05
; LightGreenTint=0.05
; LightBlueTint=0.01
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,LGSparkSys
Powered=true
art.ini
[SOUDLITE]
Cameo=LITEICON
Image=GALITE ;it can use the same SHP
Remapable=yes
Foundation=1x1
TerrainPalette=yes
NewTheater=yes
ExtraDamageStage=false
ActiveAnim=SNDLOOP
;this loops infinitely
[SNDLOOP]
Image=CLRANIM ;create a new clranim.shp with 10 empty frames of 1x1pixel canvas size
Rate=300
LoopCount=-1
TrailerAnim=THESOUND
TrailerSeperation=100 ;play every 100 timeunits (*) the anim
;feel free to give this dummy anim a better name
[THESOUND]
Image=CLRANIM ;use the same dummy SHP
Report=METEOR1 ;set here your sound effect (don't forget to also include it in sound.ini)
(*)no clue exactly how the delay is measured, frames or seconds. _________________ SHP Artist of Twisted Insurrection: Nod buildings
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum