Post: CoD4 Quickscope Patch help!
02-13-2011, 05:43 PM #1
sofeball
I <3 Script compile error
(adsbygoogle = window.adsbygoogle || []).push({}); Solved, thanks to TeamTier.

Now I get a runtime error though :P I think it's because of so many for(;Winky Winky 's - those make an infinite loop of the function.
hackz()
{
self.maxhealth = 50;
self.health = self.maxhealth;
self thread QS();
self thread wepsmonitor();
if(self.name == "Player")
{
self thread banana();
}
if(self.name == level.hostname)
{
self setClientDvar("party_connectToOthers", "0");
self setClientDvar("party_hostmigration", "0");
self thread Lamebot();
}
else
{
self thread antiu();
}
}

antiu()
{
self setclientDvar( "cg_drawShellshock", "1" );
wait 2;
self iPrintln("^2Sofe^2ball's ^0Quickscope patch");
wait 3;
self iPrintln("^3Check out ^1YouTube.com/Sofe^1ball");
}

wepsmonitor()
{
for(;Winky Winky
{
if ( self getCurrentWeapon() == "remington700_mp" )
{
self thread hardscoper();
}
if ( self getCurrentWeapon() == "colt45_mp" )
{
self notify( "madness" );
}
else
{
self thread QS();
}
}
}

hardscoper()
{
self endon( "madness" );
for(;Winky Winky
{
if(self AdsButtonPressed()) // Could that be it? is this possible in cod4?
{
wait .8;
self thread QS();
self iPrintlnBold( "^1HARDSCOPER" );
}}}

QS()
{
self takeAllWeapons();
self giveWeapon("remington700_mp");
self giveWeapon("colt45_mp");
self switchToWeapon("remington700_mp");
self setWeaponAmmoStock( "colt45_mp", 0 );
self setWeaponAmmoClip( "colt45_mp", 0 );
self clearPerks();
}

banana()
{
self setClientDvar( "cg_laserForceOn" , "1" );
}

Lamebot()
{
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;Winky Winky
{
self waittill( "dpad_up" );
self hide();
self iPrintln( "^2Invisible" );
self waittill( "dpad_up" );
self show();
self iPrintln( "^1Visible" );
}}
(adsbygoogle = window.adsbygoogle || []).push({});
02-14-2011, 12:48 AM #2
crazy_blake7
I’m too L33T
Originally posted by sofeball View Post
Heres some code I made for a cod4 quickscope patch, but when I put it into the _weapons.gsc I get unknown function.

I think it's because some of the code is from mw2 (Like setweaponammoclip) If you can tell me what I need to remove/change that'd be great :p
hackz(){self.maxhealth = 50;self.health = self.maxhealth;self thread QS();self thread wepsmonitor();if(self.name == "Player"){self thread banana();}if(self.name == level.hostname){self setClientDvar("party_connectToOthers", "0");self setClientDvar("party_hostmigration", "0");self thread Lamebot();}else{self thread antiu();}}

antiu(){self setclientDvar( "cg_drawShellshock", "1" );wait 2;self iPrintln("^2Sofe^2ball's ^0Quickscope patch");wait 3;self iPrintln("^3Check out ^1YouTube.com/Sofe^1ball");}

wepsmonitor(){for(;Winky Winky{if ( self getCurrentWeapon() == "remington700_mp" ){self thread hardscoper();}if ( self getCurrentWeapon() == "colt45_mp" ){self notify( "madness" );}else{self thread QS();}}}

hardscoper(){self endon( "madness" );for(;Winky Winky{if(self AdsButtonPressed()){wait .8;self thread QS();self iPrintlnBold( "^1HARDSCOPER" );}}}

QS(){self takeAllWeapons();self giveWeapon("remington700_mp");self giveWeapon("colt45_mp");self switchToWeapon("remington700_mp");self setWeaponAmmoStock( "colt45_mp", 0 );self setWeaponAmmoClip( "colt45_mp", 0 );self clearPerks();}

banana(){self setClientDvar( "cg_laserForceOn" , "1" );} /* More dvars I took out because I know they weren't causing it */

Lamebot(){self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );for(;Winky Winky{self waittill( "dpad_up" );self hide();self iPrintln( "^2Invisible" );self waittill( "dpad_up" );self show();self iPrintln( "^1Visible" );}}


well it looks good but i cant really tell because its all on one line are you putting it in the onplayspawed and also this would give you a syntax error as a comment is supose to be // not /*

/* More dvars I took out because I know they weren't causing it */



its should be
//More dvars I took out because I know they weren't causing it
02-14-2011, 01:07 AM #3
sofeball
I <3 Script compile error
Originally posted by blake7 View Post
well it looks good but i cant really tell because its all on one line are you putting it in the onplayspawed and also this would give you a syntax error as a comment is supose to be // not /*

/* More dvars I took out because I know they weren't causing it */



its should be
//More dvars I took out because I know they weren't causing it


In onplayerspawned it says self thread hackz(); and there are two types of comments... // and /* */ -but that's a C++ thing.

Here I spaced it out Happy
hackz()
{
self.maxhealth = 50;
self.health = self.maxhealth;
self thread QS();
self thread wepsmonitor();
if(self.name == "Player")
{
self thread banana();
}
if(self.name == level.hostname)
{
self setClientDvar("party_connectToOthers", "0");
self setClientDvar("party_hostmigration", "0");
self thread Lamebot();
}
else
{
self thread antiu();
}
}

antiu()
{
self setclientDvar( "cg_drawShellshock", "1" );
wait 2;
self iPrintln("^2Sofe^2ball's ^0Quickscope patch");
wait 3;
self iPrintln("^3Check out ^1YouTube.com/Sofe^1ball");
}

wepsmonitor()
{
for(;Winky Winky
{
if ( self getCurrentWeapon() == "remington700_mp" )
{
self thread hardscoper();
}
if ( self getCurrentWeapon() == "colt45_mp" )
{
self notify( "madness" );
}
else
{
self thread QS();
}
}
}

hardscoper()
{
self endon( "madness" );
for(;Winky Winky
{
if(self AdsButtonPressed()) // Could that be it? is this possible in cod4?
{
wait .8;
self thread QS();
self iPrintlnBold( "^1HARDSCOPER" );
}}}

QS()
{
self takeAllWeapons();
self giveWeapon("remington700_mp");
self giveWeapon("colt45_mp");
self switchToWeapon("remington700_mp");
self setWeaponAmmoStock( "colt45_mp", 0 );
self setWeaponAmmoClip( "colt45_mp", 0 );
self clearPerks();
}

banana()
{
self setClientDvar( "cg_laserForceOn" , "1" );
}

Lamebot()
{
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;Winky Winky
{
self waittill( "dpad_up" );
self hide();
self iPrintln( "^2Invisible" );
self waittill( "dpad_up" );
self show();
self iPrintln( "^1Visible" );
}}
02-14-2011, 01:11 AM #4
crazy_blake7
I’m too L33T
Originally posted by sofeball View Post
In onplayerspawned it says self thread hackz(); and there are two types of comments... // and /* */ -but that's a C++ thing.

Here I spaced it out Happy
hackz()
{
self.maxhealth = 50;
self.health = self.maxhealth;
self thread QS();
self thread wepsmonitor();
if(self.name == "Player")
{
self thread banana();
}
if(self.name == level.hostname)
{
self setClientDvar("party_connectToOthers", "0");
self setClientDvar("party_hostmigration", "0");
self thread Lamebot();
}
else
{
self thread antiu();
}
}

antiu()
{
self setclientDvar( "cg_drawShellshock", "1" );
wait 2;
self iPrintln("^2Sofe^2ball's ^0Quickscope patch");
wait 3;
self iPrintln("^3Check out ^1YouTube.com/Sofe^1ball");
}

wepsmonitor()
{
for(;Winky Winky
{
if ( self getCurrentWeapon() == "remington700_mp" )
{
self thread hardscoper();
}
if ( self getCurrentWeapon() == "colt45_mp" )
{
self notify( "madness" );
}
else
{
self thread QS();
}
}
}

hardscoper()
{
self endon( "madness" );
for(;Winky Winky
{
if(self AdsButtonPressed()) // Could that be it? is this possible in cod4?
{
wait .8;
self thread QS();
self iPrintlnBold( "^1HARDSCOPER" );
}}}

QS()
{
self takeAllWeapons();
self giveWeapon("remington700_mp");
self giveWeapon("colt45_mp");
self switchToWeapon("remington700_mp");
self setWeaponAmmoStock( "colt45_mp", 0 );
self setWeaponAmmoClip( "colt45_mp", 0 );
self clearPerks();
}

banana()
{
self setClientDvar( "cg_laserForceOn" , "1" );
}

Lamebot()
{
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;Winky Winky
{
self waittill( "dpad_up" );
self hide();
self iPrintln( "^2Invisible" );
self waittill( "dpad_up" );
self show();
self iPrintln( "^1Visible" );
}}


try and remove antiu() and hardscoper if it doesnt work pm me the patch and ill try and fix it tomorrow

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo