Author |
Topic: flying planes |
WHC_Grassy |
General Member Since: Apr 20, 2005 Posts: 1426 Last: Aug 25, 2007 [view latest posts] |
|
|
|
TheArmy |
General Member Since: Jun 24, 2006 Posts: 599 Last: Dec 25, 2009 [view latest posts] |
|
|
|
TheArmy |
General Member Since: Jun 24, 2006 Posts: 599 Last: Dec 25, 2009 [view latest posts] |
|
|
|
TheArmy |
General Member Since: Jun 24, 2006 Posts: 599 Last: Dec 25, 2009 [view latest posts] |
|
|
|
TheArmy |
General Member Since: Jun 24, 2006 Posts: 599 Last: Dec 25, 2009 [view latest posts] |
|
|
|
TexasRebel |
General Member Since: May 1, 2006 Posts: 373 Last: Aug 20, 2013 [view latest posts] |
|
|
Category: CoD2 Scripting Posted: Sunday, Aug. 5, 2007 03:56 am |
|
to double the speed
change level.PlaneSpeed = 15;
to
level.PlaneSpeed = 30;
and if you look at this section of the script . . . it will explain why the planes spawn apart from each other.
Code: stuka1 thread plane_flyby(org1,start1,"stuka_flyby");
wait .15;
stuka2 thread plane_flyby(org2,start2,"stuka_flyby");
wait .15;
stuka3 thread plane_flyby(org3,start3,"stuka_flyby");
wait 120;
it executes the plane_flyby function for stuka1 and then waits .15 seconds before it executes the same function for stuka2 and so on. |
|
|
|
TheArmy |
General Member Since: Jun 24, 2006 Posts: 599 Last: Dec 25, 2009 [view latest posts] |
|
|
|
TheArmy |
General Member Since: Jun 24, 2006 Posts: 599 Last: Dec 25, 2009 [view latest posts] |
|
|
Category: CoD2 Scripting Posted: Monday, Aug. 6, 2007 01:46 am |
|
I want to make the planes louder. Which number(s) do I adjust?
#Level Specific,,,,,,,,,,,,,,,
,stuka_flyby,,vehicles/stuka_by02.wav,1.25,,,,100000,,,,,,,,
,this is a stock sound in Cod2 try this one
stuka_flyby,,vehicles/mrk_airplane_drone3b_loop.wav,0.75,,na,0.4,0.7,50,5000,auto,,,looping,,mp_skyscraper
|
|
|
|
The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
Category: CoD2 Scripting Posted: Monday, Aug. 6, 2007 06:32 pm |
|
name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage
it's in there... |
|
|
|
TheArmy |
General Member Since: Jun 24, 2006 Posts: 599 Last: Dec 25, 2009 [view latest posts] |
|
|
Category: CoD2 Scripting Posted: Wednesday, Aug. 29, 2007 05:02 am |
|
I tried adding an addition 5 planes to my map and script and called them stuka4-8, but they don't fly. I don't know why the 5 additional planes aren't working. I just copied the script and changed the numbers and I double checked my values in radiant. Can someone please check my script maybe I did something wrong.
Code: main()
{
level thread planes();
}
planes()
{
level.PlaneSpeed = 30;
stuka1 = getent ("stuka1","targetname");
stuka2 = getent ("stuka2","targetname");
stuka3 = getent ("stuka3","targetname");
stuka4 = getent ("stuka4","targetname");
stuka5 = getent ("stuka5","targetname");
stuka6 = getent ("stuka6","targetname");
stuka7 = getent ("stuka7","targetname");
stuka8 = getent ("stuka8","targetname");
temp1 = getent (stuka1.target,"targetname");
//stuka1.dest = temp.origin;
org1 = temp1.origin;
//stuka1.start = stuka1.origin;
start1 = stuka1.origin;
stuka1 hide();
temp2 = getent (stuka2.target,"targetname");
//stuka2.dest = temp.origin;
org2 = temp2.origin;
//stuka2.start = stuka2.origin;
start2 = stuka2.origin;
stuka2 hide();
temp3 = getent (stuka3.target,"targetname");
//stuka3.dest = temp.origin;
org3 = temp3.origin;
//stuka3.start = stuka3.origin;
start3 = stuka3.origin;
stuka3 hide();
temp4 = getent (stuka4.target,"targetname");
//stuka4.dest = temp.origin;
org4 = temp4.origin;
//stuka4.start = stuka4.origin;
start4 = stuka4.origin;
stuka4 hide();
temp5 = getent (stuka5.target,"targetname");
//stuka5.dest = temp.origin;
org5 = temp5.origin;
//stuka5.start = stuka5.origin;
start5 = stuka5.origin;
stuka5 hide();
temp6 = getent (stuka6.target,"targetname");
//stuka6.dest = temp.origin;
org6 = temp6.origin;
//stuka6.start = stuka6.origin;
start6 = stuka6.origin;
stuka6 hide();
temp7 = getent (stuka7.target,"targetname");
//stuka7.dest = temp.origin;
org7 = temp7.origin;
//stuka7.start = stuka7.origin;
start7 = stuka7.origin;
stuka7 hide();
temp8 = getent (stuka8.target,"targetname");
//stuka8.dest = temp.origin;
org8 = temp8.origin;
//stuka8.start = stuka8.origin;
start8 = stuka8.origin;
stuka8 hide();
wait 2;
while (1)
{
stuka1 thread plane_flyby(org1,start1,"stuka_flyby");
wait 0;
stuka2 thread plane_flyby(org2,start2,"stuka_flyby");
wait 0;
stuka3 thread plane_flyby(org3,start3,"stuka_flyby");
wait 0;
stuka4 thread plane_flyby(org4,start4,"stuka_flyby");
wait 0;
stuka5 thread plane_flyby(org5,start5,"stuka_flyby");
wait 0;
stuka6 thread plane_flyby(org6,start6,"stuka_flyby");
wait 0;
stuka7 thread plane_flyby(org7,start7,"stuka_flyby");
wait 0;
stuka8 thread plane_flyby(org8,start8,"stuka_flyby");
wait 120;
}
}
plane_flyby(dest,start,sound)
{
// If you specified a sound to play then play it
if (isdefined(sound))
self playloopsound(sound);
wait 1;
self show();
self moveto(dest, level.PlaneSpeed, 0.1, 0.1);
wait level.PlaneSpeed;
self stoploopsound(sound);
self hide();
self.origin = start;
}
|
|
|
|