is there anyway I can make the "play random ambiant" play on all computers when playing.. not just the host?
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
# Jedi Knight Cog Script # 00_RandomAmbient.cog # Plays a random sound at random intervals with random volume and panning # # # [SXC] # (C) 1997 LucasArts Entertainment Co. All Rights Reserved symbols message startup message timer sound wav0 sound wav1 sound wav2 sound wav3 int numsounds flex min_interval flex range_interval flex min_volume flex range_volume int temp local end code #================================================================================================== startup: settimer(min_interval+(rand()*range_interval)); return; #================================================================================================== timer: temp = rand()*numsounds; playsoundglobal(wav0[temp], (min_volume+(rand()*range_volume)), ((rand()*2)-1.0), 0); settimer(min_interval+(rand()*range_interval)); return; end
# JK Cog Script # # PJ_RandomAmbient.cog # # Plays a random sound at random intervals with random volume and panning # -based on the JK 00_playrandomamient.cog # [PJB] symbols message startup message timer sound wav0 sound wav1 sound wav2 sound wav3 int numsounds flex min_interval flex max_interval flex min_volume flex range_volume int temp local end code startup: settimer(min_interval+(rand()*(max_interval-min_interval))); return; timer: temp = rand()*numsounds; playsoundglobal(wav0[temp], min_volume+(rand()*range_volume), (rand()*2)-1.0, 0); settimer(min_interval+(rand()*(max_interval-min_interval))); return; end