Sniperhanz
hallo ich habe gelesen das man mortars setzen kann aber bei mir funzt der script irgendwie nicht kann mir jemand helfen
also ich habe es so gemacht ich will das bei mir stukas über die map fliegen und
das die stukas bomben abwerfen die auch explotieren da habe ich was von priv.grob gefunden hier
nun habe ich es ausprobiert doch es funzt net kann mir jemand sagen was ich falsch gemacht habe
planes.gsc
main()
{
thread precacheFX();
thread siren();
}
precacheFX()
{
level._effect["mortar_explosion"][0] = loadfx ("fx/impacts/minefield.efx");
level._effect["mortar_explosion"][1] = loadfx ("fx/impacts/minefield.efx");
}
siren()
{
bomb1 = getent("bomb1","targetname");
bomb1 hide();
soundent = getent ("sirene","targetname");
wait 15;
sound = randomint(2);
if (sound == 0)
soundent playsound ("sirene");
if (sound == 1)
soundent playsound ("sirene");
wait 60;
thread squadron();
}
squadron()
{
soundent = getent ("stukacoming","targetname");
sound = randomint(2);
if (sound == 0)
soundent playsound ("stukacoming");
if (sound == 1)
soundent playsound ("stukacoming");
level thread planes();
}
planes()
{
level.PlaneSpeed = 4;
stuka1 = getent ("stuka1","targetname");
stuka2 = getent ("stuka2","targetname");
stuka3 = getent ("stuka3","targetname");
temp = getent (stuka1.target,"targetname");
stuka1.dest = temp.origin;
stuka1.start = stuka1.origin;
stuka1 hide();
temp = getent (stuka2.target,"targetname");
stuka2.dest = temp.origin;
stuka2.start = stuka2.origin;
stuka2 hide();
temp = getent (stuka3.target,"targetname");
stuka3.dest = temp.origin;
stuka3.start = stuka3.origin;
stuka3 hide();
wait 60;
stuka1 thread plane_flyby("stuka_flyby");
stuka2 thread plane_flyby("stuka_flyby");
stuka3 thread plane_flyby("stuka_flyby");
while (1)
{
wait 480;
stuka1 thread plane_flyby("stuka_flyby");
wait .15;
stuka2 thread plane_flyby("stuka_flyby");
wait .15;
stuka3 thread plane_flyby("stuka_flyby");
}
}
plane_flyby(sound)
{
if (isdefined (sound))
self playsound (sound);
wait 15;
self show();
self moveto(self.dest, level.PlaneSpeed, 0.1, 0.1);
wait level.PlaneSpeed;
self hide();
self.origin = self.start;
thread mortars();
}
mortars()
{
wait(1);
mortars = getentarray ("mortar","targetname");
bomb1 = getent("bomb1","targetname");
rand = randomint(mortars.size);
mortars[rand] playsound("mortar_incoming");
bomb1 show();
bomb1 moveto((-5671,297,-990),2);
bomb1 waittill ("movedone");
bomb1 moveto((-5671,340,-990),2);
origin = mortars[rand] getorigin();
playfx(level.effect["mortar_explosion"][randomint(2)],origin);
mortars[rand] playsound("mortar_explosion");
wait 1;
}
sound.csv
name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dis
t_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compressi
on,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage
ambient_mp_meinemap,,ambient/amb_france04_ext.mp3,0.57,,,,,,,local,streamed
,,looping,,mp_meinemap
stuka_flyby,,misc/stuka.wav,0.85,,,,,,,local,,,,,mp_meinemap
radio1,,misc/downtownsniper_victory_GRFINAL.mp3,0.85,,,,,,,voice,streamed,,
looping,,mp_meinemap
radio2,,misc/morgenrot.mp3,0.85,,,,,,,voice,streamed,,looping,,mp_meinemap
radio3,,misc/lass mich.mp3,0.85,,,,,,,voice,streamed,,looping,,mp_meinemap
radio,,misc/emt_demolition_gertrapped_1.wav,1,,,,,,,local,,,,,mp_meinemap
mortar_incoming,,misc/incoming05.wav,1,,,,,,,local,,,,,mp_meinemap
mortar_explosion,,misc/Mortar_dirt01.wav,1,,,,,,,local,,,,,mp_meinemap
stukacoming,,misc/stuka_planeby2.wav,1,,,,,,,local,,,,,mp_meinemap
sirene,,misc/sirene.mp3,0.85,,,,,,,voice,streamed,,looping,,mp_meinemap
die sirenen heulen auch nicht auf die bombe faellt aber erst 15 sek später wo die stukas schon drüber sind
und sobald die bombe unten ist kommt eine fehler meldung console planes.gsc line 108
K A ich werd noch verrückt PLZ bitte hilfe
--- edited by yoda: Smileys in diesem Beitrag zwecks Leserlichkeit deaktiviert ---
also ich habe es so gemacht ich will das bei mir stukas über die map fliegen und
das die stukas bomben abwerfen die auch explotieren da habe ich was von priv.grob gefunden hier
nun habe ich es ausprobiert doch es funzt net kann mir jemand sagen was ich falsch gemacht habe
planes.gsc
main()
{
thread precacheFX();
thread siren();
}
precacheFX()
{
level._effect["mortar_explosion"][0] = loadfx ("fx/impacts/minefield.efx");
level._effect["mortar_explosion"][1] = loadfx ("fx/impacts/minefield.efx");
}
siren()
{
bomb1 = getent("bomb1","targetname");
bomb1 hide();
soundent = getent ("sirene","targetname");
wait 15;
sound = randomint(2);
if (sound == 0)
soundent playsound ("sirene");
if (sound == 1)
soundent playsound ("sirene");
wait 60;
thread squadron();
}
squadron()
{
soundent = getent ("stukacoming","targetname");
sound = randomint(2);
if (sound == 0)
soundent playsound ("stukacoming");
if (sound == 1)
soundent playsound ("stukacoming");
level thread planes();
}
planes()
{
level.PlaneSpeed = 4;
stuka1 = getent ("stuka1","targetname");
stuka2 = getent ("stuka2","targetname");
stuka3 = getent ("stuka3","targetname");
temp = getent (stuka1.target,"targetname");
stuka1.dest = temp.origin;
stuka1.start = stuka1.origin;
stuka1 hide();
temp = getent (stuka2.target,"targetname");
stuka2.dest = temp.origin;
stuka2.start = stuka2.origin;
stuka2 hide();
temp = getent (stuka3.target,"targetname");
stuka3.dest = temp.origin;
stuka3.start = stuka3.origin;
stuka3 hide();
wait 60;
stuka1 thread plane_flyby("stuka_flyby");
stuka2 thread plane_flyby("stuka_flyby");
stuka3 thread plane_flyby("stuka_flyby");
while (1)
{
wait 480;
stuka1 thread plane_flyby("stuka_flyby");
wait .15;
stuka2 thread plane_flyby("stuka_flyby");
wait .15;
stuka3 thread plane_flyby("stuka_flyby");
}
}
plane_flyby(sound)
{
if (isdefined (sound))
self playsound (sound);
wait 15;
self show();
self moveto(self.dest, level.PlaneSpeed, 0.1, 0.1);
wait level.PlaneSpeed;
self hide();
self.origin = self.start;
thread mortars();
}
mortars()
{
wait(1);
mortars = getentarray ("mortar","targetname");
bomb1 = getent("bomb1","targetname");
rand = randomint(mortars.size);
mortars[rand] playsound("mortar_incoming");
bomb1 show();
bomb1 moveto((-5671,297,-990),2);
bomb1 waittill ("movedone");
bomb1 moveto((-5671,340,-990),2);
origin = mortars[rand] getorigin();
playfx(level.effect["mortar_explosion"][randomint(2)],origin);
mortars[rand] playsound("mortar_explosion");
wait 1;
}
sound.csv
name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dis
t_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compressi
on,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage
ambient_mp_meinemap,,ambient/amb_france04_ext.mp3,0.57,,,,,,,local,streamed
,,looping,,mp_meinemap
stuka_flyby,,misc/stuka.wav,0.85,,,,,,,local,,,,,mp_meinemap
radio1,,misc/downtownsniper_victory_GRFINAL.mp3,0.85,,,,,,,voice,streamed,,
looping,,mp_meinemap
radio2,,misc/morgenrot.mp3,0.85,,,,,,,voice,streamed,,looping,,mp_meinemap
radio3,,misc/lass mich.mp3,0.85,,,,,,,voice,streamed,,looping,,mp_meinemap
radio,,misc/emt_demolition_gertrapped_1.wav,1,,,,,,,local,,,,,mp_meinemap
mortar_incoming,,misc/incoming05.wav,1,,,,,,,local,,,,,mp_meinemap
mortar_explosion,,misc/Mortar_dirt01.wav,1,,,,,,,local,,,,,mp_meinemap
stukacoming,,misc/stuka_planeby2.wav,1,,,,,,,local,,,,,mp_meinemap
sirene,,misc/sirene.mp3,0.85,,,,,,,voice,streamed,,looping,,mp_meinemap
die sirenen heulen auch nicht auf die bombe faellt aber erst 15 sek später wo die stukas schon drüber sind
und sobald die bombe unten ist kommt eine fehler meldung console planes.gsc line 108
K A ich werd noch verrückt PLZ bitte hilfe
--- edited by yoda: Smileys in diesem Beitrag zwecks Leserlichkeit deaktiviert ---