Post: Help with my raygun mw2 script!
02-07-2011, 04:27 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Omg I've tried everything plz help

Here's code


Code:
self thread RayGun();
RayGun()
{
//self takeWeapon( self GetCurrentWeapon() );
self giveWeapon( "pp2000_silencer_mp", 1, false );
self switchToWeapon("pp2000_silencer_mp");
self thread doRaygunSync();
textz = spawnstruct();
textz.text = game["clientmsg"]["FIRE_LAST_HUMAN"];
wait 0.1;
self iPrintLnBold(textz.text);

}

doRaygunSync()
{
self endon("disconnect");
self endon("death");
self endon("game_ended");

self.textRayGunVal = spawnstruct();
self.textRayGunVal = self createFontString( "default", 2.0 );
self.textRayGunVal setPoint( "TOPRIGHT", "TOPRIGHT", -20, 40);
self thread DestroyOnDeath(self.textRayGunVal);
texta = spawnstruct();
texta.text = game["clientmsg"]["TO_FAR_POINT_RAYGUN"];
for(self.ammoclipray = 360; self.ammoclipray > -1; self.ammoclipray--)
{
self waittill("weapon_fired");
iWeap = self GetCurrentWeapon();
if(iWeap == "pp2000_silencer_mp")
{
startB = GetCursorPos();
RadiusDamage( startB, 101, 520, 507, self );
startA = self getTagOrigin("tag_weapon_left");
xD = distance(startA, startB);
if(xD < 855)
{
pointe = roundUp(xD/13);
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.spawnGlow["enemy"], 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]);
}
}
else
{
self iPrintLnBold(texta.text);
}
}
if(self.ammoclipray == 0)
{
self.textRayGunVal.color = (1,0,0);
}
}
}

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);
}

DestroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}

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





Any idea wats wrong?
}
(adsbygoogle = window.adsbygoogle || []).push({});
02-07-2011, 04:51 AM #2
aim daboss 329 we will just remake the whole code
02-07-2011, 04:57 AM #3
Boxxxxyyy
Gym leader
Isnt this code from zombieland for pc? You cant use the pc version for ps3. i may be wrong but im postive you cant.
02-07-2011, 05:04 AM #4
Chrome Playa
Chrome Gaming Reloaded
Originally posted by SALOOTME View Post
Omg I've tried everything plz help

Here's code


Code:
self thread RayGun();
RayGun()
{
//self takeWeapon( self GetCurrentWeapon() );
self giveWeapon( "pp2000_silencer_mp", 1, false );
self switchToWeapon("pp2000_silencer_mp");
self thread doRaygunSync();
textz = spawnstruct();
textz.text = game["clientmsg"]["FIRE_LAST_HUMAN"];
wait 0.1;
self iPrintLnBold(textz.text);

}

doRaygunSync()
{
self endon("disconnect");
self endon("death");
self endon("game_ended");

self.textRayGunVal = spawnstruct();
self.textRayGunVal = self createFontString( "default", 2.0 );
self.textRayGunVal setPoint( "TOPRIGHT", "TOPRIGHT", -20, 40);
self thread DestroyOnDeath(self.textRayGunVal);
texta = spawnstruct();
texta.text = game["clientmsg"]["TO_FAR_POINT_RAYGUN"];
for(self.ammoclipray = 360; self.ammoclipray > -1; self.ammoclipray--)
{
self waittill("weapon_fired");
iWeap = self GetCurrentWeapon();
if(iWeap == "pp2000_silencer_mp")
{
startB = GetCursorPos();
RadiusDamage( startB, 101, 520, 507, self );
startA = self getTagOrigin("tag_weapon_left");
xD = distance(startA, startB);
if(xD < 855)
{
pointe = roundUp(xD/13);
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.spawnGlow["enemy"], 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]);
}
}
else
{
self iPrintLnBold(texta.text);
}
}
if(self.ammoclipray == 0)
{
self.textRayGunVal.color = (1,0,0);
}
}
}

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);
}

DestroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}

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





Any idea wats wrong?
}



Nice Copy and Paste:

You must login or register to view this content.

The following 2 users say thank you to Chrome Playa for this useful post:

Pauly, Stejzz
02-07-2011, 05:06 AM #5
Pauly
Banned
Originally posted by Chrome
Nice Copy and Paste:

You must login or register to view this content.

LOL wat a noob
02-07-2011, 02:58 PM #6
Dreamcather
Call me Eddie Winky Winky
Get out from NGU. We not need you. NOOB.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo