Ray Gun code By master131

Posts 111 of 11 · Page 1 of 1
Ray Gun code By master131
Here is a Ray Gun script master131 made, it requires developer and developer_script set to 1.

Code:
doRayGun()
{
    self takeAllWeapons();
    self giveWeapon("uzi_mp", 0, self calcWeaponOptions(3, 0, 0, 0, 0));

    self endon("death");
    self endon("disconnect");
    while(1)
    {
        self waittill("weapon_fired");
        if(self getCurrentWeapon() != "uzi_mp")
            continue;
            
        soundEnt = spawn("script_model", self getAim());
        soundEnt playSoundAsMaster("mpl_kls_artillery_impact");
        {
            for(x = -1; x < 1; x+=0.25)
            {
                for(y = -1; y < 1; y+=0.25)
                {
                    for(z = -1; z < 1; z+=0.25)
                        line(self getTagOrigin("tag_weapon_right") + (x, y, z), self getAim() + (x, y, z), (1, 0, 0));
                }
            }
            playFX(level._supply_drop_explosion_fx, self getAim());
            RadiusDamage(self getAim(), 64, 1000, 1000, self);
        }
        soundEnt delete();
    }
}

getAim()
{
    forward = self getTagOrigin("tag_eye");
    end = self vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
    return Crosshair;
}

vector_scal(vec, scale)
{
    vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    return vec;
}
Result:


Credits:
master131
how to use mods
If it is master's.. why you post it?
Quote Originally Posted by B4M View Post
If it is master's.. why you post it?
he posted it cause master released the code on our site.
and as we know now assassinate is pretty brainless
Quote Originally Posted by B4M View Post
If it is master's.. why you post it?
Maybe because no1 has posted on this site yet?
pretty nice master
only that laser shoots from your head or something xd not your gun
I've been too lazy lately to post anything.
Goodjob,

OffTopic: I need the Connection u got mines fking laggy as shit.
That will be overloaded or will lag if u do this with 17 othe players
Quote Originally Posted by iKiLLYouCro View Post
That will be overloaded or will lag if u do this with 17 othe players
I think that to
That wikid fucking awsome GJ.GJ
Posts 111 of 11 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?