Post: [RELEASE]Deathmachine - 100% working!
10-05-2011, 01:39 AM #1
Choco
Respect my authoritah!!
(adsbygoogle = window.adsbygoogle || []).push({}); Video:


Here's the script:

    DeathMachine()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
self iPrintlnBold( "^1Deathmachine equipped for 30 seconds!" );
self thread timer();
self thread watchGun();
self thread endDM();
//thread your menuClose here
self allowADS(false);
self allowSprint(false);
self setPerk("specialty_bulletaccuracy");
self setPerk("specialty_rof");
self setClientDvar("perk_weapSpreadMultiplier", 0.20);
self setClientDvar("perk_weapRateMultiplier", 0.20);
self giveWeapon( "saw_grip_mp" );
self switchToWeapon( "saw_grip_mp" );
for(;Winky Winky
{
weap = self GetCurrentWeapon();
self setWeaponAmmoClip(weap, 150);
wait 0.2;
}
}

timer()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
timerText = self createFontString( "objective", 2.0 );
timerText setPoint( "TOP", "TOP");
for(i=30; i>=0; i--)
{
timerText setText( "^1Time remaining: "+i );
wait 1;
if(i == 0)
{
timerText destroy();
}
}
self notify("time_expired");
}

endDM()
{
self endon("disconnect");
self endon("death");
self waittill("time_expired");
self takeWeapon("saw_grip_mp");
self setClientDvar("perk_weapRateMultiplier", 0.7);
self setClientDvar("perk_weapSpreadMultiplier", 0.6);
self allowADS(true);
self allowSprint(true);
}

watchGun()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
for(;Winky Winky
{
if( self GetCurrentWeapon() != "saw_grip_mp")
{
self switchToWeapon( "saw_grip_mp" );
}
wait 0.01;
}
}


Execute it with:
    self thread DeathMachine();


Video coming soon Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to Choco for this useful post:

Cien, Diddles2Fresshh, lovebros, xAUSTIN, xxshredgnarxx, User2340034u
10-05-2011, 02:25 AM #2
im kinda a noob can you show me how i add this?
10-05-2011, 02:32 AM #3
Originally posted by .Choco View Post
Here's the script:

    DeathMachine()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
self iPrintlnBold( "^1Deathmachine equipped for 30 seconds!" );
self thread timer();
self thread watchGun();
self thread endDM();
self CloseMenu();
self allowADS(false);
self allowSprint(false);
self setPerk("specialty_bulletaccuracy");
self setPerk("specialty_rof");
self setClientDvar("perk_weapSpreadMultiplier", 0.20);
self setClientDvar("perk_weapRateMultiplier", 0.20);
self giveWeapon( "saw_grip_mp" );
self switchToWeapon( "saw_grip_mp" );
for(;Winky Winky
{
weap = self GetCurrentWeapon();
self setWeaponAmmoClip(weap, 150);
wait 0.2;
}
}

timer()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
timerText = self createFontString( "objective", 2.0 );
timerText setPoint( "TOP", "TOP");
for(i=30; i>=0; i--)
{
timerText setText( "^1Time remaining: "+i );
wait 1;
if(i == 0)
{
timerText destroy();
}
}
self notify("time_expired");
}

endDM()
{
self endon("disconnect");
self endon("death");
self waittill("time_expired");
self takeWeapon("saw_grip_mp");
self setClientDvar("perk_weapRateMultiplier", 0.7);
self setClientDvar("perk_weapSpreadMultiplier", 0.6);
self allowADS(true);
self allowSprint(true);
}

watchGun()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
for(;Winky Winky
{
if( self GetCurrentWeapon() != "saw_grip_mp")
{
self switchToWeapon( "saw_grip_mp" );
}
wait 0.01;
}
}


Execute it with:
    self thread DeathMachine();


Video coming soon Smile


Nice man but can u get me a link of a MW2 Patch Editor and Converter mine doesnt work I <3 coding patches.

The following user groaned xAUSTIN for this awful post:

Jeremy
10-05-2011, 03:58 AM #4
lallyman
Can’t trickshot me!
Originally posted by .Choco View Post
Here's the script:

    DeathMachine()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
self iPrintlnBold( "^1Deathmachine equipped for 30 seconds!" );
self thread timer();
self thread watchGun();
self thread endDM();
self CloseMenu();
self allowADS(false);
self allowSprint(false);
self setPerk("specialty_bulletaccuracy");
self setPerk("specialty_rof");
self setClientDvar("perk_weapSpreadMultiplier", 0.20);
self setClientDvar("perk_weapRateMultiplier", 0.20);
self giveWeapon( "saw_grip_mp" );
self switchToWeapon( "saw_grip_mp" );
for(;Winky Winky
{
weap = self GetCurrentWeapon();
self setWeaponAmmoClip(weap, 150);
wait 0.2;
}
}

timer()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
timerText = self createFontString( "objective", 2.0 );
timerText setPoint( "TOP", "TOP");
for(i=30; i>=0; i--)
{
timerText setText( "^1Time remaining: "+i );
wait 1;
if(i == 0)
{
timerText destroy();
}
}
self notify("time_expired");
}

endDM()
{
self endon("disconnect");
self endon("death");
self waittill("time_expired");
self takeWeapon("saw_grip_mp");
self setClientDvar("perk_weapRateMultiplier", 0.7);
self setClientDvar("perk_weapSpreadMultiplier", 0.6);
self allowADS(true);
self allowSprint(true);
}

watchGun()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "time_expired" );
for(;Winky Winky
{
if( self GetCurrentWeapon() != "saw_grip_mp")
{
self switchToWeapon( "saw_grip_mp" );
}
wait 0.01;
}
}


Execute it with:
    self thread DeathMachine();


Video coming soon Smile


Could you explain to me what for(i=30; i>=0; i--) means please? I'm trying to learn GSC and I don't get that code. I get everything else in the code though Smile
10-05-2011, 06:41 AM #5
Originally posted by lallyman View Post
Could you explain to me what for(i=30; i>=0; i--) means please? I'm trying to learn GSC and I don't get that code. I get everything else in the code though Smile
It counts down from 30 to 0 .. look here >> You must login or register to view this content.

The following user thanked x_DaftVader_x for this useful post:

lallyman
10-05-2011, 09:03 AM #6
Amanda
Can’t trickshot me!
    for(i=30; i>=0; i--) 
{
timerText setText( "^1Time remaining: "+i );
wait 1;
if(i == 0)
{
timerText destroy();
}


30 SetText() ??? This will overflow on PS3 when the timer reaches 5 provided you don't use any other text strings in the program. If you do, it will crash in about 5-10 sec!
Instead of this use a HUD Element timer like in my AC-130...

    ac130timer( duration )
{
level.HUDItem[ "timer" ] = newClientHudElem( self );
level.HUDItem[ "timer" ].x = -100;
level.HUDItem[ "timer" ].y = 20;
level.HUDItem[ "timer" ].alignX = "right";
level.HUDItem[ "timer" ].alignY = "bottom";
level.HUDItem[ "timer" ].horzAlign = "right";
level.HUDItem[ "timer" ].vertAlign = "bottom";
level.HUDItem[ "timer" ].font = "objective";
level.HUDItem[ "timer" ].fontScale = 2.5;
level.HUDItem[ "timer" ] setTimer( 60.0 );
level.HUDItem[ "timer" ].alpha = 1.0;
level.HUDItem[ "timer" ] setTimer( duration );
self waittill( "death" );
level.HUDItem[ "timer" ] destroy();
}
10-05-2011, 11:23 AM #7
Choco
Respect my authoritah!!
Originally posted by lallyman View Post
Could you explain to me what for(i=30; i>=0; i--) means please? I'm trying to learn GSC and I don't get that code. I get everything else in the code though Smile


I'll break it down for you Winky Winky

    for(i=30; i>=0; i--)


    i=30;

This creates a variable "i" with a value of 30.

    i>=0

This says that "i" must remain greater than or equal to 0.

    i--

This says that "i" will go down 1 digit every time the loop repeats.

Anything in the brackets after the for statement will be looped. Here's a simple for loop:

    for(i=0; i<11; i++)
{
self iPrintlnBold(i);
wait 1;
}


This will create a timer that counts to 10 Smile

Hopefully this helps Winky Winky

The following user thanked Choco for this useful post:

lallyman
10-05-2011, 11:34 AM #8
Originally posted by .Choco View Post
I'll break it down for you Winky Winky



    i>=0

This says that "i" must remain greater than or equal to 0.



That actually says "keep looping all the time i is bigger than or equal to zero and then stop"

The following user thanked x_DaftVader_x for this useful post:

Choco
10-05-2011, 08:34 PM #9
Choco
Respect my authoritah!!
Updated with video Winky Winky
10-06-2011, 12:11 AM #10
Blackstorm
Veni. Vidi. Vici.
Originally posted by x. View Post
That actually says "keep looping all the time i is bigger than or equal to zero and then stop"


Yep, the middle slot is telling the loop to keep going until the middle slot is false. =D

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo