Post: RELEASE : Simple MW2 DeathMachine
12-17-2010, 09:38 PM #1
Default Avatar
Gizmo
Guest
(adsbygoogle = window.adsbygoogle || []).push({});
Heres my simple Death Machine code ive been working on Smile
Its just a small code I made after I got annoyed of my CoD4 Menu not recompressing properly :whistle:
Anyway, heres the GSC for it, Just put it in a self thread called giggity ;

[LINK AT BOTTOM OF PAGE Smile]
    
giggity()
{
self endon("disconenct");
self endon("death");

self takeAllWeapons();
self setclientdvar("player_sustainAmmo", "1");
self _setperk("specialty_bulletaccuracy");
self setClientDvar("perk_weapSpreadMultiplier", 0.20);
self giveWeapon ( "m240_grip_heartbeat_mp", 0 );
allowADS(false);

{
self waittill( "weapon_fired" );
MagicBullet( "ac130_40mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
}
}

GetCursorPosition()
{
return BulletTrace( self getTagOrigin("tag_eye"), vector_Scale(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scale(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}



People who are too lazy to bind but want to try click here...

    
giggity()
{
self endon( "disconnect" );
self endon( "death" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );

for(;Winky Winky
self waittill( "dpad_up" );
{
self endon("disconenct");
self endon("death");

self takeAllWeapons();
self setclientdvar("player_sustainAmmo", "1");
self _setperk("specialty_bulletaccuracy");
self setClientDvar("perk_weapSpreadMultiplier", 0.20);
self giveWeapon ( "m240_grip_heartbeat_mp", 0 );
allowADS(false);

{
self waittill( "weapon_fired" );
MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(),

self );
}
}

GetCursorPosition()
{
return BulletTrace( self getTagOrigin("tag_eye"), vector_Scale(anglestoforward(self

getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scale(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}
}
}



I may try experimenting by replacing m240_grip_heartbeat_mp with turret_minigun_mp later on Smile

Changed it to shoot 40mm, thanks iFool Winky Winky

If anyone is interested in a timer for the gun, here is the code, just insert it into whats allready there.
    
self endon( "+weapnext" ); //place with the other self end on's

wait 45; // place at the bottom of the thread , inside the braces
self takeAllWeapons(); //takes all weapons
self iPrintlnBold( "Change Weapon For a Gun" ); //Tells the player to change Gun
{self waittill("+weapnext"); //Waits until Weapnext is pressed
self giveWeapon ( "m4_fmj_xmags_mp", 0 ); //Gives you an M4 when Weapnext is pressed
}




Going to try "harrier_20mm_mp", ac130_25mm_mp and "cobra_player_minigun_mp" tomorrow Winky Winky

Have Fun Minigunning people Winky Winky

LINK ADDED FOR THE TEST PATCH :
ENJOY TESTING:
You must login or register to view this content.

(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Gizmo for this useful post:

Skyl1n3
12-17-2010, 10:32 PM #11
Cain
Tutorial Team Like A Boss
I just tried that, I never got an unknown function, but when I shot my gun, nothing happened.
12-17-2010, 10:34 PM #12
Default Avatar
Gizmo
Guest
Originally posted by iFool View Post
I just tried that, I never got an unknown function, but when I shot my gun, nothing happened.


Oh really ?
So it didnt like shoot a 25mm ?
Try changing it to shoot a 105mm shell Winky Winky
12-17-2010, 10:42 PM #13
Cain
Tutorial Team Like A Boss
Worked. But once I shoot 1 bullet it wont shoot another. I can haz help?

---------- Post added at 10:42 PM ---------- Previous post was at 10:38 PM ----------

Edit: Got it working, just put for(;Winky Winky in Winky Winky
12-17-2010, 10:42 PM #14
Default Avatar
Gizmo
Guest
Originally posted by iFool View Post
Worked. But once I shoot 1 bullet it wont shoot another. I can haz help?


Hmmmm
Give me 5 seconds, ill look at the code, But while your waiting, try shooting a 40mm shell.
12-17-2010, 10:43 PM #15
Cain
Tutorial Team Like A Boss
I got it working.. but how can I make it so that if I have a .. Golden Desert Eagle as my primary weapon it will enable the mod?
12-17-2010, 10:47 PM #16
Default Avatar
Gizmo
Guest
Originally posted by iFool View Post
I got it working.. but how can I make it so that if I have a .. Golden Desert Eagle as my primary weapon it will enable the mod?


Errrm, all you have to do is replace the m240_grip_heartbeat_mp part with "deserteaglegold" Winky Winky
12-17-2010, 10:50 PM #17
Cain
Tutorial Team Like A Boss
Wrong actually Winky Winky I want it to shoot the bullets only if it has a Golden Deagle as the Primary Weapon.

All your code does is give it.
12-17-2010, 10:52 PM #18
Default Avatar
Gizmo
Guest
Originally posted by iFool View Post
Wrong actually Winky Winky I want it to shoot the bullets only if it has a Golden Deagle as the Primary Weapon.

All your code does is give it.


Oh i get you, ill have a look, gimme a couple of seconds Smile

Ok im not entirely sure but try replacing weapon_fired with deserteaglegold_fired ,Might work
But dont forget, you will have to remove the "Take all weapon part" Otherwise you wont get a gold deagle Winky Winky

if it dont work, ill make a work around for it tomorrow, im in the middle of Five Zombies atm :p lol
12-17-2010, 10:53 PM #19
C R A V E
Computer Science and Finance
Wow nice trying it

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo