Post: [CODE] RusterG's Ray Gun [RELEASE] with video
03-10-2011, 11:36 PM #1
RusterG
The one and Only
(adsbygoogle = window.adsbygoogle || []).push({}); so here is my ray gun Hope you's enjoy! Smile




    
equipRayGun(fxthan, fxthun, fxtrus)
{
self endon("disconnect");
self endon ("death");
wait .1;
playSoundonPlayers( game["music"]["victory_allies"], "allies" );
level._effect[ "ac130_flare1" ] = loadfx( "misc/flares_cobra" );
level._effect[ "ac130_flare" ] = loadfx( "misc/flares_cobra" );
level.spawnGlow["friendly"] = loadfx( "misc/flare_ambient" );
self giveWeapon("deserteagle_mp", 7, false);
self switchToWeapon("deserteagle_mp");
self iprintln("^2The gods have blessed you with a ^5Ray Gun!");
wait 3;
self maps\mp\gametypes\_hud_message::hintMessage("^5OMG its a ray gun! Go give em ^1hell!");
for(;Winky Winky
{
self waittill ( "weapon_fired" );
if( self getCurrentWeapon() == "deserteagle_mp" )

fxthan = SpawnFx(level._effect[ "ac130_flare1" ], self GetCursorPos(), self getTagOrigin("tag_eye"));
fxthun = SpawnFx(level._effect[ "ac130_flare" ], self GetCursorPos(), self getTagOrigin("tag_eye"));
fxtrus = SpawnFx(level.spawnGlow["friendly"], self GetCursorPos(), self getTagOrigin("tag_eye"));
MagicBullet("ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
fxthan.angles = (50,50,50);
fxthun.angles = (0,0,0);
fxtrus.angles = (0,0,0);
TriggerFX(fxthan);
TriggerFX(fxthun);
TriggerFX(fxtrus);
foreach(player in level.players)
{ if(player.team != self.team)
{ if(Distance(self.origin, player.origin) < 600)
{
player _unsetPerk("specialty_falldamage");
}
}
}
self switchToWeapon("deserteagle_mp");
wait .2;
fxthun delete();
wait .4;
fxthan delete();
fxtrus delete();
}
}



Credits:
Hawkins (used thundergun code) although i removed most of it
xQuZe- (Sounds thread helped alot)
DEREKTROTTER (Effects thread helped loads)
(adsbygoogle = window.adsbygoogle || []).push({});

The following 8 users say thank you to RusterG for this useful post:

Demmonnixx, Dillon, Fail, Febreze, JDixon1993, Mrs.Drake, Ninja, TOX!G
03-11-2011, 12:15 AM #11
Originally posted by RusterG View Post
yeah i need to understand alot more codes, i need to look online for some tutes and that to help me understand it better...

it has a tactical insertion with flares Happy it looks more like a ray gun than the 1 from that granny zombies seriously, an automatic smg that shoots lasers.... lol the normal ray gun shoots green plasma ball type projectiles and turns into a puff of smoke on impact...

the pack o punched ray gun does the same but shoots red plasma ball projectiles... granted this could be a hell of a lot better if a better coder had made it... but still i think i done a good job compared to how good i am at coding Happy


The easiest way to learn is to look at other peoples codes and try to understand what each part is doing.. looking online is a waste of time..

If you want a gun that shoots a green plasma ball, thats quite easy.. I'll have a go next time i feel like playing with mw2 Smile

The following user thanked x_DaftVader_x for this useful post:

RusterG
03-11-2011, 12:17 AM #12
RusterG
The one and Only
Originally posted by ..V.. View Post
The easiest way to learn is to look at other peoples codes and try to understand what each part is doing.. looking online is a waste of time..

If you want a gun that shoots a green plasma ball, thats quite easy.. I'll have a go next time i feel like playing with mw2 Smile


lol alright mate... thanks for the tips Smile Claps
03-11-2011, 12:18 AM #13
richiebanker
Vault dweller
Originally posted by ..V.. View Post
The easiest way to learn is to look at other peoples codes and try to understand what each part is doing.. looking online is a waste of time..

If you want a gun that shoots a green plasma ball, thats quite easy.. I'll have a go next time i feel like playing with mw2 Smile


srry to bother u but do u kno an xp booster for a non host patch, im wanna make the xp alot more since i got ranked match to work
03-11-2011, 12:38 AM #14
Winning
Former Staff
Not so perfected.

The following user thanked Winning for this useful post:

Alfa
03-11-2011, 01:01 AM #15
Demmonnixx
Vault dweller
Originally posted by RusterG View Post
yeah i need to understand alot more codes, i need to look online for some tutes and that to help me understand it better...

it has a tactical insertion with flares Happy it looks more like a ray gun than the 1 from that granny zombies seriously, an automatic smg that shoots lasers.... lol the normal ray gun shoots green plasma ball type projectiles and turns into a puff of smoke on impact...

the pack o punched ray gun does the same but shoots red plasma ball projectiles... granted this could be a hell of a lot better if a better coder had made it... but still i think i done a good job compared to how good i am at coding Happy


Do you know where I can get the code for the green plasma projectiles? I've looked and heard of people talking about it but have never seen it.

On topic: Thanks for releasing it, going to try it out....
03-11-2011, 02:51 AM #16
RusterG
The one and Only
i can see everyone is really enjoying my code Happy "Sarcasm" :\
03-11-2011, 04:45 PM #17
very nice Ruster Happy

The following user thanked dex2grigg for this useful post:

RusterG
03-11-2011, 07:46 PM #18
RusterG
The one and Only
Originally posted by dex2grigg View Post
very nice Ruster Happy


Thanks :y:
03-11-2011, 07:57 PM #19
PussayPatrol
I'm a neat monster...
Originally posted by RusterG View Post
yeah i need to understand alot more codes, i need to look online for some tutes and that to help me understand it better...

it has a tactical insertion with flares Happy it looks more like a ray gun than the 1 from that granny zombies seriously, an automatic smg that shoots lasers.... lol the normal ray gun shoots green plasma ball type projectiles and turns into a puff of smoke on impact...

the pack o punched ray gun does the same but shoots red plasma ball projectiles... granted this could be a hell of a lot better if a better coder had made it... but still i think i done a good job compared to how good i am at coding Happy



na man i think you did a good job keep up the good work Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo