What's new

Discussion [RELEASE-ish] Toggle What You Shoot

  • Thread starter SnappiestJack
  • Start date
  • Views 991
S

lloydie

Contributor
Messages
2,942
Reaction score
642
I know its not the best thing ever and not the hardest code but i thought i would realase it anyway.
This works 100% cannot get vid capture card broke and I havent got the pc copy, feel free to make a vid and post it here!
You need to thread:
Code:
self thread Beam();
Code:
self thread PwnGunChange();
Code:
self thread Player_Buttons();

Code:
Player_Buttons()
{
self endon ( "disconnect" );
self endon ( "death" );
for(;;)
{
wait 1;
if( self UseButtonPressed() )
{
if( self GetStance() == "crouch" )
{
self notify( "change_shoot" );
}
}
}
}
Beam()
{
self endon( "beam_off" );
for(;;)
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
if(self.pickedbullet == 0)
{
model = spawn("script_model", SPLOSIONlocation ); 
model setModel( "zombie_x2_icon" );
}
if(self.pickedbullet == 1)
{
model = spawn("script_model", SPLOSIONlocation ); 
model setModel( "zombie_bomb" );
}
if(self.pickedbullet == 2)
{
model = spawn("script_model", SPLOSIONlocation ); 
model setModel( "zombie_skull" );
}
if(self.pickedbullet == 3)
{
model = spawn("script_model", SPLOSIONlocation ); 
model setModel( "zombie_treasure_box" );
}
if(self.pickedbullet == 4)
{
level._effect["zombie_mainframe_beam"] = loadfx("maps/zombie/fx_zombie_mainframe_beam");
playfx(level._effect["transporter_beam"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 150, 300, 150, self );
}
if(self.pickedbullet == 5)
{
level._effect["betty_explode"] = loadfx("weapon/bouncing_betty/fx_explosion_betty_generic");
playfx(level._effect["betty_explode"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 150, 300, 150, self );
}
if(self.pickedbullet == 6)
{
model = spawn("script_model", SPLOSIONlocation ); 
model setModel( "defaultvehicle" );
}

PwnGunChange()
{
self endon( "beam_off" );
for(;;)
{
self waittill( "change_shoot" );
self.pickedbullet = 0;
self iprintlnbold("^2DOUBLE POINTS");
self waittill( "change_shoot" );
self.pickedbullet = 1;
self iprintlnbold("^2NUKEs");
self waittill( "change_shoot" );
self.pickedbullet = 2;
self iprintlnbold("^2SKULL");
self waittill( "change_shoot" );
self.pickedbullet = 3;
self iprintlnbold("^2RANDOM BOX");
self waittill( "change_shoot" );
self.pickedbullet = 4;
self iprintlnbold("^2BEAM");
self waittill( "change_shoot" );
self.pickedbullet = 5;
self iprintlnbold("^2BETTY");
self waittill( "change_shoot" );
self.pickedbullet = 6;
self iprintlnbold("^2CAR");
self waittill( "change_shoot" );
self notify( "beam_off" );
}
}
vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
No need to thread the vector_scal(vec, scale)
Credit:
Andrew 74 : Base code from his v3
lloydie : Making it toggle
 
S

Su AriZonaa

Getting There
Messages
1,450
Reaction score
663
Ya i guess credit goes to andrew for converting to waw. But no not really cause lost4468 made it for mw2 first
 
M

Mike

Contributor
Messages
3,475
Reaction score
639
Nope.. Get rid of andrews credits. Lost4468 made this first (for mw2).
 
W

- Woookie -

Enthusiast
Messages
343
Reaction score
33
How do this work im discombobulated 0_o
I know how to add it ect... I was wondering how you would toggle the bullet like what button?

But nice release +Rep
 
N

ninja storm2

Newbie
Messages
22
Reaction score
1
Nope.. Get rid of andrews credits. Lost4468 made this first (for mw2).
lost is really gay he didnt makeanything at all he's justa poser of andrew74 posts and threads lost could suck my **** because hes gay and a ***. jesus another poser
 
S

Su AriZonaa

Getting There
Messages
1,450
Reaction score
663
U must be high lmao
 
B

Babyface

Enthusiast
Messages
880
Reaction score
54
lost is really gay he didnt makeanything at all he's justa poser of andrew74 posts and threads lost could suck my **** because hes gay and a ***. jesus another poser
haha how much you wanna bet that is andrew 74
 
Top Bottom