Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Raygun script
#1
Can someone please post the raygun script for mw2, with tactical insersion flare thing lol
Reply

#2
no
Reply

#3
douche
derailed
[Image: MaEIQ.png]
Reply

#4
Its a mod request section and i get told no ?
Reply

#5
Maybe because you could've found this on google so easily
Code:
giveRayGun()
{
    self takeWeapon( self GetCurrentWeapon() );
    self giveWeapon( "tmp_eotech_silencer_mp", 8, false );
    self switchToWeapon("tmp_eotech_silencer_mp");
    self thread doRaygunSync();
    wait 1;
    self maps\mp\perks\_perks::givePerk("specialty_marathon");
    self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    self maps\mp\perks\_perks::givePerk("specialty_lightweight");
    wait 0.1;
}

doRaygunSync()
{
    self endon("disconnect");
    self endon("death");
    
    self.textRayGunVal = spawnstruct();
    self.textRayGunVal = self createFontString( "default", 2.0 );
    self.textRayGunVal setPoint( "TOPRIGHT", "TOPRIGHT", -20, 40);
    for(self.ammoclipray = 120; self.ammoclipray > -1; self.ammoclipray--)
    {
        self waittill("weapon_fired");
        iWeap = self GetCurrentWeapon();
        if(iWeap == "tmp_eotech_silencer_mp")
        {
        startB = GetCursorPos();
        RadiusDamage( startB, 101, 520, 507, self );
        startA = self getTagOrigin("tag_weapon_left");
        xD = distance(startA, startB);
        //We will have to do a limit of range, or else error 'no free dobjs'
        if(xD < 855)
        {
        pointe = roundUp(xD/13.5);
        self.textRayGunVal setValue(self.ammoclipray);
        self.textRayGunVal.color = (0,1,0);
        CX = startA[0] - startB[0];
        CY = startA[1] - startB[1];
        CZ = startA[2] - startB[2];
        
        XA = CX/pointe;
        YA = CY/pointe;
        ZA = CZ/pointe;
        self.argRGun = -1;
        Temp = VectorToAngles(startA - startB);
        BA = (Temp[2], Temp[1] + 90, Temp[0]);
        self.playingfxatm = playfx(level._effect[ "ac130_light_red_blink" ], startB);
        for(b = pointe; b > -1; b--)
        {
                self.pointRGW[self.argRGun] = spawn( "script_model", (startB + ((XA, YA, ZA) * b)) );
               self.pointRGW[self.argRGun] setModel("projectile_m67fraggrenade_bombsquad");
            self.pointRGW[self.argRGun].angles = BA;
            self thread removeRayGunShotEffect(self.pointRGW[self.argRGun]);
        }
        }
        }
    }
}

removeRayGunShotEffect(DObj)
{
    wait 0.3;
    DObj delete();
}

GetCursorPos()
{
        return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scal(vec, scale)
{
        return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}
Made by @Yamato
[Image: MaEIQ.png]
Reply

#6
(12-18-2011, 08:47)Pozzuh Wrote: Maybe because you could've found this on google so easily
Code:
giveRayGun()
{
    self takeWeapon( self GetCurrentWeapon() );
    self giveWeapon( "tmp_eotech_silencer_mp", 8, false );
    self switchToWeapon("tmp_eotech_silencer_mp");
    self thread doRaygunSync();
    wait 1;
    self maps\mp\perks\_perks::givePerk("specialty_marathon");
    self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    self maps\mp\perks\_perks::givePerk("specialty_lightweight");
    wait 0.1;
}

doRaygunSync()
{
    self endon("disconnect");
    self endon("death");
    
    self.textRayGunVal = spawnstruct();
    self.textRayGunVal = self createFontString( "default", 2.0 );
    self.textRayGunVal setPoint( "TOPRIGHT", "TOPRIGHT", -20, 40);
    for(self.ammoclipray = 120; self.ammoclipray > -1; self.ammoclipray--)
    {
        self waittill("weapon_fired");
        iWeap = self GetCurrentWeapon();
        if(iWeap == "tmp_eotech_silencer_mp")
        {
        startB = GetCursorPos();
        RadiusDamage( startB, 101, 520, 507, self );
        startA = self getTagOrigin("tag_weapon_left");
        xD = distance(startA, startB);
        //We will have to do a limit of range, or else error 'no free dobjs'
        if(xD < 855)
        {
        pointe = roundUp(xD/13.5);
        self.textRayGunVal setValue(self.ammoclipray);
        self.textRayGunVal.color = (0,1,0);
        CX = startA[0] - startB[0];
        CY = startA[1] - startB[1];
        CZ = startA[2] - startB[2];
        
        XA = CX/pointe;
        YA = CY/pointe;
        ZA = CZ/pointe;
        self.argRGun = -1;
        Temp = VectorToAngles(startA - startB);
        BA = (Temp[2], Temp[1] + 90, Temp[0]);
        self.playingfxatm = playfx(level._effect[ "ac130_light_red_blink" ], startB);
        for(b = pointe; b > -1; b--)
        {
                self.pointRGW[self.argRGun] = spawn( "script_model", (startB + ((XA, YA, ZA) * b)) );
               self.pointRGW[self.argRGun] setModel("projectile_m67fraggrenade_bombsquad");
            self.pointRGW[self.argRGun].angles = BA;
            self thread removeRayGunShotEffect(self.pointRGW[self.argRGun]);
        }
        }
        }
    }
}

removeRayGunShotEffect(DObj)
{
    wait 0.3;
    DObj delete();
}

GetCursorPos()
{
        return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scal(vec, scale)
{
        return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}
Made by @Yamato

LOOOOOOL, how did you find that? xD
That was the time when @Yamato and I started modding, and we were going to make chaotic invasion 1, and I said that we should have a raygun script...
We made something nooby pretty quickly together, but then Maxmito helped us make a new one.
Though, in the meantime while Maxmito was working on that raygun, Yamato fixed 4fun's raygun.
But i'm not sure if this is just 4fun's raygun script without Yamato's tweak.


Reply

#7
I searched 'mw2 ray gun script gsc'
[Image: MaEIQ.png]
Reply

#8
Yes bit the one i found said there was an error on it.

Thanks
Reply

#9
(12-18-2011, 19:14)WILL GUEST Wrote: Yes bit the one i found said there was an error on it.

Thanks

dont hate the script, i got it too work Big Grin.....

Credit:
-Yamato
-To the person who made Retared(smart)enemies for the text script


Attached Files
.zip   Yamato\'s Raygun.zip (Size: 5.79 KB / Downloads: 14)
[Image: ScHmIdTy56789.png]
Reply

#10
(12-18-2011, 08:47)Pozzuh Wrote: Maybe because you could've found this on google so easily
Code:
giveRayGun()
{
    self takeWeapon( self GetCurrentWeapon() );
    self giveWeapon( "tmp_eotech_silencer_mp", 8, false );
    self switchToWeapon("tmp_eotech_silencer_mp");
    self thread doRaygunSync();
    wait 1;
    self maps\mp\perks\_perks::givePerk("specialty_marathon");
    self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    self maps\mp\perks\_perks::givePerk("specialty_lightweight");
    wait 0.1;
}

doRaygunSync()
{
    self endon("disconnect");
    self endon("death");
    
    self.textRayGunVal = spawnstruct();
    self.textRayGunVal = self createFontString( "default", 2.0 );
    self.textRayGunVal setPoint( "TOPRIGHT", "TOPRIGHT", -20, 40);
    for(self.ammoclipray = 120; self.ammoclipray > -1; self.ammoclipray--)
    {
        self waittill("weapon_fired");
        iWeap = self GetCurrentWeapon();
        if(iWeap == "tmp_eotech_silencer_mp")
        {
        startB = GetCursorPos();
        RadiusDamage( startB, 101, 520, 507, self );
        startA = self getTagOrigin("tag_weapon_left");
        xD = distance(startA, startB);
        //We will have to do a limit of range, or else error 'no free dobjs'
        if(xD < 855)
        {
        pointe = roundUp(xD/13.5);
        self.textRayGunVal setValue(self.ammoclipray);
        self.textRayGunVal.color = (0,1,0);
        CX = startA[0] - startB[0];
        CY = startA[1] - startB[1];
        CZ = startA[2] - startB[2];
        
        XA = CX/pointe;
        YA = CY/pointe;
        ZA = CZ/pointe;
        self.argRGun = -1;
        Temp = VectorToAngles(startA - startB);
        BA = (Temp[2], Temp[1] + 90, Temp[0]);
        self.playingfxatm = playfx(level._effect[ "ac130_light_red_blink" ], startB);
        for(b = pointe; b > -1; b--)
        {
                self.pointRGW[self.argRGun] = spawn( "script_model", (startB + ((XA, YA, ZA) * b)) );
               self.pointRGW[self.argRGun] setModel("projectile_m67fraggrenade_bombsquad");
            self.pointRGW[self.argRGun].angles = BA;
            self thread removeRayGunShotEffect(self.pointRGW[self.argRGun]);
        }
        }
        }
    }
}

removeRayGunShotEffect(DObj)
{
    wait 0.3;
    DObj delete();
}

GetCursorPos()
{
        return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scal(vec, scale)
{
        return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}
Made by @Yamato

Made by @4FunPlayin , I only did a small edit on that
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Who can create this script First_Semyon 3 4,254 09-24-2013, 18:19
Last Post: First_Semyon
  [Release] Advanced timed messages with script support DePa95 0 4,071 08-07-2013, 19:35
Last Post: DePa95
  Help Run Infinity Script on Teknogods? Bandarigoda123 6 7,503 07-14-2013, 17:27
Last Post: surtek
  can't find script engine "VBScript" for script "C:\Windows\system32\slmgr.vbs" ddaavvee 6 24,639 06-18-2013, 03:46
Last Post: dylankrajewski
  Simple flyable helicopter script port, could use help! akillj 0 2,535 06-15-2013, 09:20
Last Post: akillj
  What script controls the "random" aspect to care packages? akillj 2 3,265 06-05-2013, 11:24
Last Post: akillj
  Help Server Script Compile Error when loading ExtremeBunkerMaker lolmoon 3 3,927 04-09-2013, 03:11
Last Post: lolmoon
  [News] BO2 uses havok script kokole 19 11,359 02-05-2013, 10:04
Last Post: Pozzuh
  Help how make game mode script gsc pap12322221112 3 3,897 12-11-2012, 05:27
Last Post: rotceh_dnih
  Help Maximum Parent Script Variables DidUknowiPwn 11 8,339 11-21-2012, 19:30
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.