What's new

Discussion [RELEASE] Raining Panzerschrek's

  • Thread starter Su AriZonaa
  • Start date
  • Views 1,539
S

Su AriZonaa

Getting There
Messages
1,450
Reaction score
663
This only works on first map for now, didnt make a toggle out of it either but can easily be made into one. If you were wondering what this does it randomly shoots Panzerschreks from the sky and kills the zombies. Whoever activates it gets the points too :lol:

Add This To OnPlayerSpawned
Code:
self thread RainHax();

Add This Somewhere to the gsc.
Code:
RainHax()
{
self endon("disconnect");
self.barraging = 0;
for(;;)
{
wait 0.5;
if(self UseButtonPressed() && self.barraging == 0)
{
for(;;)
{

i = self.origin;
self.barraging = 1;
x = randomIntRange(-3000,10000);
y = randomIntRange(-3000,10000);
z = randomIntRange(3000,10000);
MagicBullet( "panzerschrek", (x,y,z), (x,y,0), self );
wait 0.05;
}
}
}
}

What it looks like :biggrin:
 
A

Andrew74

Enthusiast
Messages
824
Reaction score
219
Lol real hard to convert, change the weapon name and remove self. =) I was messing with this like 3 weeks ago but never released was saving if I made another mod pack.
 
S

Su AriZonaa

Getting There
Messages
1,450
Reaction score
663
Never said it was hard, Im only releasing cause it lags real bad when activated.
 
I

IBeChanChanDooo

Enthusiast
Messages
190
Reaction score
20
Yes I posted the Mw2 code a few days agao Thank YOU!!!!!!!!! I Love this! Also I LOVE ANDREWS PATCH!

BTW does this need a toggle? or does it turn on when spawned?
 
S

Su AriZonaa

Getting There
Messages
1,450
Reaction score
663
if u are using andrews patch i advise just making it host only and making it a different button toggle
 
I

IBeChanChanDooo

Enthusiast
Messages
190
Reaction score
20
So I would make it above the use button pressed leke Getstance crouch and than change use buttong pressed to fragbuttonpressed? so then when i crouch and press rb it will let me turn it off/on?

Like this:
Code:
{
self endon("disconnect");
barraging = 0;
for(;;)
{
wait 0.5;
if( self GetStance() == "prone" ) 
if(self FragButtonPressed() && barraging == 0)
{
for(;;)
{

barraging = 1;
x = randomIntRange(-3000,10000);
y = randomIntRange(-3000,10000);
z = randomIntRange(3000,10000);
MagicBullet( "panzerschrek", (x,y,z), (x,y,0), self );
wait 0.05;
}
}
}
}

Or do I need to remove all of the selfs as in on the frag button pressed & get stance? BTW Im noob at coding so tell me what you think

Anybody?
 
S

Su AriZonaa

Getting There
Messages
1,450
Reaction score
663
So I would make it above the use button pressed leke Getstance crouch and than change use buttong pressed to fragbuttonpressed? so then when i crouch and press rb it will let me turn it off/on?

Like this:
Code:
{
self endon("disconnect");
barraging = 0;
for(;;)
{
wait 0.5;
if( self GetStance() == "prone" ) 
if(self FragButtonPressed() && barraging == 0)
{
for(;;)
{

barraging = 1;
x = randomIntRange(-3000,10000);
y = randomIntRange(-3000,10000);
z = randomIntRange(3000,10000);
MagicBullet( "panzerschrek", (x,y,z), (x,y,0), self );
wait 0.05;
}
}
}
}

Or do I need to remove all of the selfs as in on the frag button pressed & get stance? BTW Im noob at coding so tell me what you think

Anybody?

It doesnt have a toggle atm, can be made easily i will make onoe later on today.

not a patch :smile: haha jk

I like calling it a patch so :tongue:
 
D

deformagraphic

Enthusiast
Messages
115
Reaction score
2
make it a power-up,
and only for 10s :wink:
 
Top Bottom