What's new

Discussion Medium Artillery

  • Thread starter Grodusk
  • Start date
  • Views 1,010
Grodusk

Grodusk

Enthusiast
Messages
118
Reaction score
11
Points
70
Well this is a basic artillery script, very easy to make, I am new to coding and etc, this is my first release.

A small example video (so you could decide to download or not):
http://www.youtube.com/watch?v=bzP-iHj_DTM

How to do: add "makeArtillery();" where ever you want, most likely you would like to add it on onPlayerSpawned() after the for(;

How to use: just aim on target and press 4.

Download:
http://pastebin.com/dac4d3DF
Better version by ZerO:
http://pastebin.com/Y22cAPy4
Also, thanks to lost for the bullet trace.


----------------------

taken from MPC Forum. don't think this was posted before ( yes, i actually used the search function )
 
SplitModz

SplitModz

Enthusiast
Messages
193
Reaction score
9
Points
70
Changed it to Predator missle :biggrin:

Much more like the artillery in WaW :smile:

Is there a way to add dmg so if your near the explosions you get damaged/killed?
 
Dreww

Dreww

Enthusiast
Messages
872
Reaction score
194
Points
165
I'm trying to add this into my menu, but for some reason I get a syntax error, is it possible to add into a menu?
 
Vino

Vino

Undercover LV
VIP
Retired
Bright Idea Mythical Veteran Odysseus' Summit
Messages
9,368
Reaction score
7,563
Points
2,285
dude this is awesome. added to my zombies :biggrin:
 
D4rKxPoSuR v2

D4rKxPoSuR v2

Enthusiast
Messages
71
Reaction score
5
Points
55
wuts the point its easyer to just use walking ac-130

wuts the point its easyer to just use walking ac-130
 
G

geoff95

Newbie
Messages
24
Reaction score
8
Points
45
This is pretty cool, good work. The codes a little longer than you need though, I'll post it later

Code:
self thread exit();
self thread maps\mp\gametypes\_hud_message::hintMessage("Artillery Support Available");
self notifyOnPlayerCommand( "4", "+actionslot 4" );

self waittill("4");
self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
HavyArtillery = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];

self endLocationSelection();
self.selectingLocation = undefined;

self thread maps\mp\gametypes\_hud_message::hintMessage("Location set");
//HavyArtillery = self thread GetCursorPos();
wait 5;
self playsound( "explo_mine" );
self thread maps\mp\gametypes\_hud_message::hintMessage("FIRE!");
self playsound( "explo_mine" );
wait 5;
x= 0;
y = 0;
for(i = 0;i < 10; i++){
HavyArtillery2 = HavyArtillery+(0, 0, 8000);
MagicBullet( "ac130_40mm_mp", HavyArtillery2, HavyArtillery2-(x, y, 8000), self );
if(i < 2)
wait 4;
if(i < 4 && i > 2)
wait 2;
if (i>4 && 8)
wait 1;
if (i > 8)
wait 0.5;
x = RandomInt(500);
y = RandomInt(200);
z = RandomInt(1);
if (z == 1){
x = x * -1;
z = z * -1;
}
}
this is more random as well
 
Top Bottom
Login
Register