Post: Air Propulsion Gun
07-09-2012, 03:25 PM #1
LightModz
League Champion
(adsbygoogle = window.adsbygoogle || []).push({});


Credits:
zxz0O0


this gun basically sucks or blows players. to change the function press L2.

    airgun()
{
self takeAllWeapons();
self giveWeapon("rpg_mp",6,false);
self SetWeaponAmmoStock("rpg_mp",0);
self setweaponammoclip("rpg_mp",0);
self switchToWeapon("rpg_mp");
self thread AirPop();
self thread CheckKey();
if(!isDefined(self.AirPropHud))
self HudElem();
self thread CheckMode();
}




CheckKey()
{
self endon("death");
self endon("disconnect");
self notifyOnPlayerCommand("noattack","-attack");
for(;Winky Winky
{
self waittill("noattack");
self.isAir = false;
}
}

AirPop()
{
self endon("death");
self endon("disconnect");
self notifyOnPlayerCommand("attack","+attack");
for(;Winky Winky
{
self waittill("attack");
self.isAir = true;
self.stingerStage = 2;
if(self getCurrentWeapon()!="rpg_mp")
continue;

while(self.isAir)
{
if(self getCurrentWeapon()!="rpg_mp")
{
self.isAir = false;
break;
}
ForwardTrace = Bullettrace(self getEye(),self getEye()+anglestoforward(self getplayerangles())*100000,true,self);
playerAngles = self GetPlayerAngles();
AtF = AnglesToForward(playerAngles);
self playLoopSound("oxygen_tank_leak_loop");
foreach(player in level.players)
{
if(player==self)
continue;

enemyToSelf = distance(self.origin,player.origin);
if(enemyToSelf>512)
continue;

if(ForwardTrace["entity"]!=player)
{

nearestPoint = PointOnSegmentNearestToPoint( self getEye(), ForwardTrace["position"], player.origin );
PtoO = distance(player.origin,nearestPoint);
co = (cos(35)*512);
TopLine = sqrt((512*512)-(co*co));
Multi = 512/TopLine;

if(enemyToSelf<PtoO*Multi)
continue;

}

dist = distance(self.origin,player.origin);
multi = 300/dist;
if(multi<1)
multi = 1;
if(self.AirPropSuction)
player setVelocity(player getVelocity() - (AtF[0]*(300*(multi)),AtF[1]*(300*(multi)),(AtF[2]+0.25)*(300*(multi))));
else
player setVelocity(player getVelocity() + (AtF[0]*(200*(multi)),AtF[1]*(200*(multi)),(AtF[2]+0.25)*(200*(multi))));
player ViewKick(100,self.origin);
}
wait 0.15;
}
self stopLoopSound("oxygen_tank_leak_loop");
}
}

HudElem()
{
self.AirPropHud = self createFontString("default",2);
self.AirPropHud setPoint("center","right",300,90);
self.AirPropSuction = false;
self.AirPropHud setText("Propulsion");

self thread DestroyOnDeath(self.AirPropHud);
}

DestroyOnDeath(elem)
{
self waittill("death");
elem destroy();
self stopLoopSound("oxygen_tank_leak_loop");
}

CheckMode()
{
self endon("death");
self endon("disconnect");
self notifyOnPlayerCommand("useButton","+smoke");
for(;Winky Winky
{
self waittill("useButton");
if(self getCurrentWeapon()!="rpg_mp")
continue;
self.AirPropSuction = !self.AirPropSuction;
self disableWeapons();
if(self.AirPropSuction)
self.AirPropHud setText("Suction");
else
self.AirPropHud setText("Propulsion");
self playSound("elev_run_end");
self playSound("elev_door_interupt");
self playSound("elev_run_start");
wait 1.5;
self EnableWeapons();
}
}

(adsbygoogle = window.adsbygoogle || []).push({});

The following 15 users say thank you to LightModz for this useful post:

247Yamato, fluffyTHEnutsak, GiGaOcTeTs, idropcats, Ingloreusemodz, KCxFTW, JokerRey, Ninja, Jango, Cmd-X, Rangers 1690, RaspberryIce, T_m_b07, TheFallen, WinterLobbies
07-09-2012, 05:55 PM #11
Originally posted by LightModz View Post
this gun basically sucks or blows players.


giggity :carling:
07-09-2012, 06:20 PM #12
Ingloreusemodz
Sexy Pimp Yo
Just tried it lol
Soo much fun thanks mate Happy
07-09-2012, 08:13 PM #13
You Came out with some pretty cool shit man thanks for sharing
07-10-2012, 05:58 AM #14
need it for 1.13
07-10-2012, 06:02 AM #15
LightModz
League Champion
Originally posted by MacBookPro View Post
need it for 1.13


gsc mods wont work with cfg coding :L
07-10-2012, 06:03 AM #16
Originally posted by LightModz View Post
gsc mods wont work with cfg coding :L

yeah man i know, it would be good but.
07-10-2012, 10:47 AM #17
zxz0O0
Are you high?
Thanks for posting here...

The following user thanked zxz0O0 for this useful post:

247Yamato

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo