Page 1 of 1

ubersound problem

Posted: Wed Mar 24, 2004 3:19 pm
by agentmad007
hi
first of all i run moh breakthrough not mohaa

i did a small map stargate and i want to add some sounds and my aim is to have exactly this:

1) trigger console commande
2)sound1 loaded
3)wait 2 sec
4)sound2 loaded
5)wait 2 sec
6)gate open
7)wait 15 sec
8) gate close and trigger off

i want to notice that i read the topics about unbersound and it dont work for me so i ask here to know if someone can advise me something

so here is my folders and scripts

maps/dm/projet_stargate.bsp and projet_stargate.scr
sound/stargate/sound1.wav and sound2.wav
ubersound/projet_stargate.scr


here is the script for maps/dm/projet_stargate.scr

Code: Select all




main: 

   // set scoreboard messages 
   setcvar "g_obj_alliedtext1" "" 
   setcvar "g_obj_alliedtext2" "" 
   setcvar "g_obj_alliedtext3" "" 
   setcvar "g_obj_axistext1" "" 
   setcvar "g_obj_axistext2" "" 
   setcvar "g_obj_axistext3" "" 

   setcvar "g_scoreboardpic" "none" 

///////////////////////////////////////////

level waittill prespawn 

   exec global/DMprecache.scr 
   level.script = "maps/dm/projet_stargate.scr" 

   $gate1 hide 
   $gate1_tele nottriggerable 

level waittill spawn 

end 
//////////////////////////////////////////// 
///////////STARGATE//////////// 
//////////////////////////////////////////// 


stargate_on: 


$gate1 playsound sound1
wait2
$gate1 playsound sound2
wait2
$gate1 show // the stargate effect shows up 
$gate1_tele triggerable // the teleporter is active 
wait 15
$gate1 hide // the sg effect is hidden 
$gate1_tele nottriggerable // the teleporter is turned off 
end  

and here is my ubersound/projet_stargate.scr

Code: Select all


//============================================== 
// UBERSOUND FILE 
//============================================== 

//============================================== 
// WORK AROUND SOUNDS - optimized - 3/16/04 
//============================================== 

settiki none 


alias sound1 sound/stargate/sound1.wav soundparms 1.0 0.0 1.0 0.0 160 1600 item loaded maps "e dm lib obj test " 
alias sound2 sound/stargate/sound2.wav soundparms 1.0 0.0 1.0 0.0 160 1600 item loaded maps "e dm lib obj test " 

end

TY

Posted: Wed Mar 24, 2004 3:53 pm
by agentmad007
problem solved .....it was just a typing error !
bit the script i posted is ok it work fine .........if you want to use........