Script problems
Posted: Wed Mar 10, 2004 5:55 am
First of all I know part of the script below works because I have ambient sound and the fire sound.
The random explosions will not work as well as the plane bomber
// STORM ON REVIN
// ARCHITECTURE: WD_Echo_Rancid
// SCRIPTING: WD_Echo_Rancid
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Storm on Revin"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "WD_Echo_Rancid"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
exec global/exploder.scr
exec global/bomber.scr
level waitTill prespawn
thread start_sound
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/storm_on_revin.scr
exec global/ambient.scr mohdm1
level waittill spawn
thread random_explode
level.flyplane = 1
end
start_sound:
wait 1
$fire_speaker loopsound fire_med
end
random_explode:
wait (randomfloat 13 + 23)
$random_explode anim start
radiusdamage $random_explode 256 384
goto random_explode
end
The random explosion use to work I don;t know what happened. Anyone have any thoughts. What I want really is a axis plane to drop bombs throughout the map at random times during the game. I started with one path for one plane. 4 spline paths, a target(multiple) inside a square cylinder box...does this target need to be on the path, i have it on the path...and a speaker for plane sound...I followed nemesis's tutorial exactly and nothing for both the plane and the explosion.
One more question...I ran the pointfile and this red line came up pointing to my leak...How do I block this leak???
Thanks.
The random explosions will not work as well as the plane bomber
// STORM ON REVIN
// ARCHITECTURE: WD_Echo_Rancid
// SCRIPTING: WD_Echo_Rancid
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Storm on Revin"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "WD_Echo_Rancid"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
exec global/exploder.scr
exec global/bomber.scr
level waitTill prespawn
thread start_sound
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/storm_on_revin.scr
exec global/ambient.scr mohdm1
level waittill spawn
thread random_explode
level.flyplane = 1
end
start_sound:
wait 1
$fire_speaker loopsound fire_med
end
random_explode:
wait (randomfloat 13 + 23)
$random_explode anim start
radiusdamage $random_explode 256 384
goto random_explode
end
The random explosion use to work I don;t know what happened. Anyone have any thoughts. What I want really is a axis plane to drop bombs throughout the map at random times during the game. I started with one path for one plane. 4 spline paths, a target(multiple) inside a square cylinder box...does this target need to be on the path, i have it on the path...and a speaker for plane sound...I followed nemesis's tutorial exactly and nothing for both the plane and the explosion.
One more question...I ran the pointfile and this red line came up pointing to my leak...How do I block this leak???
Thanks.