Post: [Script] - Drunk, Drugs!
08-24-2011, 04:38 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); Thread this..
    
self thread ToggleDrunk();


add this somewhere in the Gsc
    
ToggleDrunk()
{
if(self.Drunk == true)
{
self iPrintln("Drunk Mode : [^1OFF^7]");
self notify("sobar");
VisionSetNaked( "default", 0.2 );
self setPlayerAngles(self.angles+(0,0,0));
wait 0.5;
self setPlayerAngles(self.angles+(0,0,0));
self.Drunk = false;
}
else
{
self iPrintln("Drunk Mode : [^2ON^7]");
self thread DrunkVision();
self thread Flipping();
self.Drunk = true;
}
}
DrunkVision()
{
self endon( "sobar" );
while(1)
{
visionSetNaked( "cheat_invert", 4.2 );
wait .1;
VisionSetNaked( "cheat_invert_contrast", 0.2 );
wait .1;
VisionSetNaked( "sepia", 0.2 );
wait .1;
VisionSetNaked( "cargoship_blast", 0.2 );
wait .1;
VisionSetNaked( "cheat_chaplinnight", 0.2 );
wait .1;
VisionSetNaked( "bog_a_sunrise", 0.2 );
wait .1;
VisionSetNaked( "cheat_bw", 0.2 );
wait .1;
VisionSetNaked( "ac130", 0.2 );
wait .1;
VisionSetNaked( "cheat_bw_contrast", 0.2 );
wait .1;
VisionSetNaked( "cheat_contrast", 0.2 );
wait .1;
VisionSetNaked( "ac130_inverted", 0.2 );
wait .1;
VisionSetNaked( "mpoutro", 0.2 );
wait .1;
VisionSetNaked( "grayscale", 0.2 );
wait .1;
VisionSetNaked( "cheat_bw_invert_contrast", 3 );
}
}
Flipping()
{
self endon("sobar");
for(;Winky Winky
{
self.angle = self GetPlayerAngles();
if(self.angle[1] < 179)self setPlayerAngles( self.angle +(0, 0, 2) );
else self SetPlayerAngles( self.angle *(1, -1, 1) );
wait 0.00025;
}
}


Created By Sl1CkMoDz Gobble
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Correy for this useful post:

.Andy, cadpimp1289, IVI40A3Fusionz
08-25-2011, 12:04 AM #11
Correy
I'm the Original
Originally posted by NGU
    foreach(player in [level.players])
{
player thread ToggleDrunk();
}


That should make it for everyone. Not sure if that's 100% correct but it's something like that.


foreach is not in the cod4 engine :derp:
08-25-2011, 12:09 AM #12
Choco
Respect my authoritah!!
Originally posted by Corrrey View Post
foreach is not in the cod4 engine :derp:


I'm new to cod4, I'm used to mw2. Cut me some slack Winky Winky
08-25-2011, 12:25 AM #13
Correy
I'm the Original
Originally posted by NGU
I'm new to cod4, I'm used to mw2. Cut me some slack Winky Winky


ha, it's level.players.size is foreach player Winky Winky
08-25-2011, 05:57 AM #14
Originally posted by NGU
I'm new to cod4, I'm used to mw2. Cut me some slack Winky Winky

This is how you do it in cod4

{for ( index = 0; index < level.players.size; index++ ){player = level.players[index];if(player.name !=level.hostname){ //rest of function here....

Although I do it like this now

self thread all_thread( ::givegrugs, 0, false);

Cool Man (aka Tustin)

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

Choco, Correy
08-25-2011, 04:01 PM #15
Correy
I'm the Original
Originally posted by x. View Post
This is how you do it in cod4

{for ( index = 0; index < level.players.size; index++ ){player = level.players[index];if(player.name !=level.hostname){ //rest of function here....

Although I do it like this now

self thread all_thread( ::givegrugs, 0, false);

Cool Man (aka Tustin)


does the self thread all_thread actually work ?
08-25-2011, 04:14 PM #16
K-Brizzle
Do a barrel roll!
Looks great
08-25-2011, 07:56 PM #17
Originally posted by Corrrey View Post
does the self thread all_thread actually work ?


It does for me because I have the function in my patch, someone wrote it for me...
it takes the place of the foreach() function that's missing in cod4..
08-25-2011, 08:19 PM #18
Originally posted by x. View Post
This is how you do it in cod4

{for ( index = 0; index < level.players.size; index++ ){player = level.players[index];if(player.name !=level.hostname){ //rest of function here....

Although I do it like this now

self thread all_thread( ::givegrugs, 0, false);

Cool Man (aka Tustin)


I Think It's " player=level.players[self.selplay]; " It's Works For me..
:confused:
08-25-2011, 08:32 PM #19
Originally posted by Corrrey View Post
still got more to come Winky Winky
but the biggest will be in a day or two, my new menu Happy

yyyyyyyyyyyyyyyyyyyyyyyyyyeeeeeeeeeeeeeeeeeeeeeeeeeeeeeyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo