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-10-2011, 11:37 PM #2
xrtzx
Gym leader
it sucks donkey balls Not Happy or Sad:derp:
03-10-2011, 11:39 PM #3
RusterG
The one and Only
Originally posted by xrtzx View Post
it sucks donkey balls Not Happy or Sad:derp:


thanks, i welcome all comments...
03-10-2011, 11:46 PM #4
Lopez.
[Insert]
Looks pretty cool
03-10-2011, 11:46 PM #5
RusterG
The one and Only
Originally posted by God
Looks pretty cool


thanks Smile
........
03-10-2011, 11:54 PM #6
JDixon1993
Space Ninja
Originally posted by RusterG View Post
thanks, i welcome all comments...



nice bro i like and i like your as well XD
03-10-2011, 11:55 PM #7
lazyboyz2
I am error
nice bro..btw im xikarma--x uk the one who got u the cl on cod4, i cant try this anymore =(
03-10-2011, 11:59 PM #8
RusterG
The one and Only
Originally posted by JDixon1993 View Post
nice bro i like and i like your as well XD

Thanks mate Happy
Originally posted by lazyboyz2 View Post
nice bro..btw im xikarma--x uk the one who got u the cl on cod4, i cant try this anymore =(


thanks mate, yeah thanks for that cl mate, i really appreciated that Winky Winky

that sucks man...
03-11-2011, 12:00 AM #9
Originally posted by RusterG View Post
thanks, i welcome all comments...



Firstly.. Its GOOD that you are trying things Smile

BUT..

You need to start trying to understand the code more, you have a lot of stuff you dont need in there..

And I still dont think that looks like a ray gun, its just a few sparks at your bullet trace...
03-11-2011, 12:04 AM #10
RusterG
The one and Only
Originally posted by ..V.. View Post
Firstly.. Its GOOD that you are trying things Smile

BUT..

You need to start trying to understand the code more, you have a lot of stuff you dont need in there..

And I still dont think that looks like a ray gun, its just a few sparks at your bullet trace...


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

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo