Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
custom airstrike help
#21
yep

the only map, as far as i know didnt test them al

but like eehm
highrise <3, i love highrise the best map! Smile
add me on steam guys

krijnrien

its easier to explain and this is taking alot of more time
Reply

#22
then you only have to change highrise coordinates...
Code:
CB0MB()
{   self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");
//self iprintlnbold("^1COLOSSUS AIRSTRIKE ^7INCOMING!");
if(getdvar("mapname")=="mp_highrise")
{
b0=spawn("script_model",(-1083,12350,4533));
b1=spawn("script_model",(-1500,12350,4533));
b2=spawn("script_model",(-750,12350,4533));
b3=spawn("script_model",(-1200,12350,4533));
b0 setModel("vehicle_b2_bomber");
b1 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b2 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b3 setModel("vehicle_b2_bomber");
b0.angles=(0,180,0);
b1.angles=(0,180,0);
b2.angles=(0,180,0);
b3.angles=(0,180,0);
b0 playLoopSound("veh_b2_dist_loop");
b0 MoveTo((-1083,1900,4533),40);
b1 MoveTo((-1500,1900,4533),40);
b2 MoveTo((-750,1900,4533),40);
b3 MoveTo((-1200,1900,4533),40);
b0.owner=o;
b1.owner=o;
b2.owner=o;
b3.owner=o;
b0.killCamEnt=o;
b1.killCamEnt=o;
b2.killCamEnt=o;
b3.killCamEnt=o;
o thread ROAT(b0,30,"ac_died");
o thread ROAT(b1,30,"ac_died");
o thread ROAT(b2,30,"ac_died");
o thread ROAT(b3,30,"ac_died");
}else{
o=self;
b0=spawn("script_model",(15000,0,3000));
b1=spawn("script_model",(15000,1000,3000));
b2=spawn("script_model",(15000,-2000,3000));
b3=spawn("script_model",(15000,-1000,3000));
b0 setModel("vehicle_b2_bomber");
b1 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b2 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b3 setModel("vehicle_b2_bomber");
b0.angles=(0,180,0);
b1.angles=(0,180,0);
b2.angles=(0,180,0);
b3.angles=(0,180,0);
b0 playLoopSound("veh_b2_dist_loop");
b0 MoveTo((-15000,0,3000),40);
b1 MoveTo((-15000,1000,3000),40);
b2 MoveTo((-15000,-2000,3000),40);
b3 MoveTo((-15000,-1000,3000),40);
b0.owner=o;
b1.owner=o;
b2.owner=o;
b3.owner=o;
b0.killCamEnt=o;
b1.killCamEnt=o;
b2.killCamEnt=o;
b3.killCamEnt=o;
o thread ROAT(b0,30,"ac_died");
o thread ROAT(b1,30,"ac_died");
o thread ROAT(b2,30,"ac_died");
o thread ROAT(b3,30,"ac_died");
}


foreach(p in level.players){
if (level.teambased){
if ((p!=o)&&(p.pers["team"]!=self.pers["team"]))
if (isAlive(p)) p thread RB0MB(b0,b1,b2,b3,o,p);
}else{
if(p!=o)
if (isAlive(p)) p thread RB0MB(b0,b1,b2,b3,o,p);
}
wait 0.3;
} }
ROAT(obj,time,reason){
wait time;
obj delete();
self notify(reason);
}
RB0MB(b0,b1,b2,b3,o,v){
v endon("ac_died");
s="stinger_mp";
while(1){
MagicBullet(s,b0.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b0.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b1.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b1.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b2.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b2.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b3.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b3.origin,v.origin,o);
wait 5.43;
} }
Reply

#23
WORKED!!!
you had everything right smile i was just doing something wrong Smile
plz dont close or solve it yet


any1 else have some ideas?
Reply

#24
(11-03-2011, 16:36)krijnrien Wrote: WORKED!!!
you had everything right smile i was just doing something wrong Smile
plz dont close or solve it yet


any1 else have some ideas?

really?
where the coordinates right?
Reply

#25
this is the correct code guys

with a fixed highrise issue
Code:
CB0MB()
{   self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");
self iprintlnbold("^1COLOSSUS AIRSTRIKE ^7INCOMING!");
self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
        self.selectingLocation = true;
        self waittill( "confirm_location", location, directionYaw );
        self endLocationSelection();
        self.selectingLocation = undefined;
if(getdvar("mapname")=="mp_highrise")
{
o=self;
b0=spawn("script_model",(-400,12350,4533));
b1=spawn("script_model",( 500,12350,4533));//harrier
b2=spawn("script_model",(-2500,12250,4533));//harrier zie onder links
b3=spawn("script_model",(-1700,12350,4533));// links van waar ze naartoe gaan
b0 setModel("vehicle_b2_bomber");
b1 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b2 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b3 setModel("vehicle_b2_bomber");
b0.angles=(0,270,0);
b1.angles=(0,270,0);
b2.angles=(0,270,0);
b3.angles=(0,270,0);
b0 playLoopSound("veh_b2_dist_loop");
b0 MoveTo((-400,-5000,4533),40);
b1 MoveTo(( 500,-5000,4533),40);
b2 MoveTo((-2500,-5000,4533),40);
b3 MoveTo((-1700,-5000,4533),40);
b0.owner=o;
b1.owner=o;
b2.owner=o;
b3.owner=o;
b0.killCamEnt=o;
b1.killCamEnt=o;
b2.killCamEnt=o;
b3.killCamEnt=o;
o thread ROAT(b0,30,"ac_died");
o thread ROAT(b1,30,"ac_died");
o thread ROAT(b2,30,"ac_died");
o thread ROAT(b3,30,"ac_died");
}
else
{
o=self;
b0=spawn("script_model",(15000,0,3000));
b1=spawn("script_model",(15000,1000,3000));
b2=spawn("script_model",(15000,-2000,3000));
b3=spawn("script_model",(15000,-1000,3000));
b0 setModel("vehicle_b2_bomber");
b1 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b2 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b3 setModel("vehicle_b2_bomber");
b0.angles=(0,180,0);
b1.angles=(0,180,0);
b2.angles=(0,180,0);
b3.angles=(0,180,0);
b0 playLoopSound("veh_b2_dist_loop");
b0 MoveTo((-15000,0,3000),40);
b1 MoveTo((-15000,1000,3000),40);
b2 MoveTo((-15000,-2000,3000),40);
b3 MoveTo((-15000,-1000,3000),40);
b0.owner=o;
b1.owner=o;
b2.owner=o;
b3.owner=o;
b0.killCamEnt=o;
b1.killCamEnt=o;
b2.killCamEnt=o;
b3.killCamEnt=o;
o thread ROAT(b0,30,"ac_died");
o thread ROAT(b1,30,"ac_died");
o thread ROAT(b2,30,"ac_died");
o thread ROAT(b3,30,"ac_died");
}


foreach(p in level.players){
if (level.teambased){
if ((p!=o)&&(p.pers["team"]!=self.pers["team"]))
if (isAlive(p)) p thread RB0MB(b0,b1,b2,b3,o,p);
}else{
if(p!=o)
if (isAlive(p)) p thread RB0MB(b0,b1,b2,b3,o,p);
}
wait 0.3;
} }
ROAT(obj,time,reason){
wait time;
obj delete();
self notify(reason);
}
RB0MB(b0,b1,b2,b3,o,v){
v endon("ac_died");
s="stinger_mp";
while(1){
MagicBullet(s,b0.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b0.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b1.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b1.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b2.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b2.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b3.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b3.origin,v.origin,o);
wait 5.43;
} }
Reply

#26
(11-03-2011, 17:09)krijnrien Wrote: this is the correct code guys

with a fixed highrise issue
Code:
CB0MB()
{   self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");
self iprintlnbold("^1COLOSSUS AIRSTRIKE ^7INCOMING!");
self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
        self.selectingLocation = true;
        self waittill( "confirm_location", location, directionYaw );
        self endLocationSelection();
        self.selectingLocation = undefined;
if(getdvar("mapname")=="mp_highrise")
{
o=self;
b0=spawn("script_model",(-400,12350,4533));
b1=spawn("script_model",( 500,12350,4533));//harrier
b2=spawn("script_model",(-2500,12250,4533));//harrier zie onder links
b3=spawn("script_model",(-1700,12350,4533));// links van waar ze naartoe gaan
b0 setModel("vehicle_b2_bomber");
b1 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b2 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b3 setModel("vehicle_b2_bomber");
b0.angles=(0,270,0);
b1.angles=(0,270,0);
b2.angles=(0,270,0);
b3.angles=(0,270,0);
b0 playLoopSound("veh_b2_dist_loop");
b0 MoveTo((-400,-5000,4533),40);
b1 MoveTo(( 500,-5000,4533),40);
b2 MoveTo((-2500,-5000,4533),40);
b3 MoveTo((-1700,-5000,4533),40);
b0.owner=o;
b1.owner=o;
b2.owner=o;
b3.owner=o;
b0.killCamEnt=o;
b1.killCamEnt=o;
b2.killCamEnt=o;
b3.killCamEnt=o;
o thread ROAT(b0,30,"ac_died");
o thread ROAT(b1,30,"ac_died");
o thread ROAT(b2,30,"ac_died");
o thread ROAT(b3,30,"ac_died");
}
else
{
o=self;
b0=spawn("script_model",(15000,0,3000));
b1=spawn("script_model",(15000,1000,3000));
b2=spawn("script_model",(15000,-2000,3000));
b3=spawn("script_model",(15000,-1000,3000));
b0 setModel("vehicle_b2_bomber");
b1 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b2 setModel("vehicle_av8b_harrier_jet_opfor_mp");
b3 setModel("vehicle_b2_bomber");
b0.angles=(0,180,0);
b1.angles=(0,180,0);
b2.angles=(0,180,0);
b3.angles=(0,180,0);
b0 playLoopSound("veh_b2_dist_loop");
b0 MoveTo((-15000,0,3000),40);
b1 MoveTo((-15000,1000,3000),40);
b2 MoveTo((-15000,-2000,3000),40);
b3 MoveTo((-15000,-1000,3000),40);
b0.owner=o;
b1.owner=o;
b2.owner=o;
b3.owner=o;
b0.killCamEnt=o;
b1.killCamEnt=o;
b2.killCamEnt=o;
b3.killCamEnt=o;
o thread ROAT(b0,30,"ac_died");
o thread ROAT(b1,30,"ac_died");
o thread ROAT(b2,30,"ac_died");
o thread ROAT(b3,30,"ac_died");
}


foreach(p in level.players){
if (level.teambased){
if ((p!=o)&&(p.pers["team"]!=self.pers["team"]))
if (isAlive(p)) p thread RB0MB(b0,b1,b2,b3,o,p);
}else{
if(p!=o)
if (isAlive(p)) p thread RB0MB(b0,b1,b2,b3,o,p);
}
wait 0.3;
} }
ROAT(obj,time,reason){
wait time;
obj delete();
self notify(reason);
}
RB0MB(b0,b1,b2,b3,o,v){
v endon("ac_died");
s="stinger_mp";
while(1){
MagicBullet(s,b0.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b0.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b1.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b1.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b2.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b2.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b3.origin,v.origin,o);
wait 0.43;
MagicBullet(s,b3.origin,v.origin,o);
wait 5.43;
} }

it must be -500...
(ben jij nederlands?)
Reply

#27
yep xD ik ben nederlands
yep xD i am dutch
and not it musn't be -500 cuz then the harrier will fly in the stealth bomber Smile ( if i am right)
Reply

#28
(11-04-2011, 15:43)krijnrien Wrote: yep xD ik ben nederlands
yep xD i am dutch
and not it musn't be -500 cuz then the harrier will fly in the stealth bomber Smile ( if i am right)

haha nice 1
Reply

#29
its totally correct now, i make a new thread in code scripts about this, and about how to make it host abuse Big Grin
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 12,437 10-29-2013, 07:22
Last Post: xInfinity.
  Custom xanims DidUknowiPwn 8 7,075 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,728 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 15,343 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,551 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,515 06-22-2013, 07:33
Last Post: mattyman
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 156,046 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 30,662 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [Request] custom gun mod ColorCorrects 2 3,169 05-18-2013, 22:19
Last Post: mitchhacker
  Custom load screen mw3? balakent 4 4,538 05-04-2013, 14:48
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
6 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.