Post: [Gamemode]Drunk or High?
02-18-2011, 10:23 PM #1
Fifa97
Maggbot timeout!
(adsbygoogle = window.adsbygoogle || []).push({}); THIS IS BASICALLY GAMEMODE VERSION OF MY YOU'RE PISSED CODE
Credits to .,.,.,., and Playstation3lb and Chrome Playa
Just thought I will release it at this stage
    Drunkorhigh(){
self endon("disconnect");
notifyData = spawnstruct();
notifyData.titleText = "^1 YOU ARE ****ED!";
notifyData.notifyText = "^1PRESS [{+actionslot 2}] to go High!!";
notifyData.notifyText2 = "^1PRESS [{+actionslot 3}] to Piss yourself!!";
notifyData.glowColor = (0.0, 0.0, 1.0);
notifyData.duration = 7;
notifyData.font = "DAStacks";
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
self thread High();
self thread Drunk();
}
High(){
self endon("death");
self notifyOnPlayerCommand("dpad_down","+actionslot 2");
for(;Winky Winky{
self waittill("dpad_down");
High = spawnstruct();
High.titleText = "Shit!...";
High.notifyText = "Lay off the Crack";
High.glowColor = (0.0, 0.0, 1.0);
High.duration = 5;
High.font = "DAStacks";
self thread maps\mp\gametypes\_hud_message::notifyMessage( High );
wait 1;
self thread health_hud();
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientdvar("compassSize", 2.5 );
self setClientDvar( "g_speed", "500" );
while (1) {
self VisionSetNakedForPlayer("mpnuke", 1);
wait 0.1;
self VisionSetNakedForPlayer("cheat_chaplinnight", 1);
wait 0.1;
self VisionSetNakedForPlayer("ac130_inverted", 1);
wait 0.1;
self VisionSetNakedForPlayer("aftermath", 1);
}}}
Drunk(){
self endon("death");
self notifyOnPlayerCommand("dpad_left","+actionslot 3");
for(;Winky Winky{
self waittill("dpad_left");
Pissed = spawnstruct();
Pissed.titleText = "Shit!...";
Pissed.notifyText = "Where am I?";
Pissed.glowColor = (0.0, 0.0, 1.0);
Pissed.duration = 5;
Pissed.font = "DAStacks";
self thread maps\mp\gametypes\_hud_message::notifyMessage( Pissed );
wait 1;
self thread zzzz();
self thread health_hud();
self shellshock( "mp_radiation_med", 100 );
self setClientdvar("compassSize", 0.5 );
self setClientDvar( "laserForceOn", "1" );
self setClientDvar( "g_speed", "200" );
self setBlurForPlayer(4,0.7);
while(1){
self VisionSetNakedForPlayer( "cheat_chaplinnight", .5 );
wait 0.05;
self VisionSetNakedForPlayer( "cargoship_blast", .5 );
wait 0.05;
}}}
health_hud()
{

self endon( "disconnect" );

x = 80;
y = 40;

self.health_bar = NewClientHudElem( self );
self.health_bar.x = x + 80;
self.health_bar.y = y + 2;
self.health_bar.alignX = "left";
self.health_bar.alignY = "top";
self.health_bar.horzAlign = "fullscreen";
self.health_bar.vertAlign = "fullscreen";
self.health_bar.alpha = 1;
self.health_bar.foreground = 1;
self.health_bar setshader( "black", 1, 8 );

self.health_text = NewClientHudElem( self );
self.health_text.x = x + 80;
self.health_text.y = y;
self.health_text.alignX = "left";
self.health_text.alignY = "top";
self.health_text.horzAlign = "fullscreen";
self.health_text.vertAlign = "fullscreen";
self.health_text.alpha = 1;
self.health_text.fontScale = 1;
self.health_text.foreground = 1;

for ( ;; )
{
wait ( 0.05 );

width = self.health / self.maxhealth * 300;
width = int( max( width, 1 ) );
self.health_bar setShader( "black", width, 8 );

self.health_text SetValue( self.health );
}
}
zzzz() {

self endon("disconnect");
self endon("crap");

for(;Winky Winky{

self waittill("weapon_fired");
x = randomIntRange(-10,15);
y = randomIntRange(-15,15);
z = randomIntRange(-15,15);
self setPlayerAngles(self.angles + (x, y, z));
self thread xxxx();
}
}

xxxx(){
wait 1;
self notify("crap");
self thread zzzz();}

add to onplayerspawned
self thread Drunkorhigh();
or call in from menu.
Feel free to post feedback and possible improvements
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Fifa97 for this useful post:

Ju1cy
02-18-2011, 10:33 PM #2
LOL sounds great
02-18-2011, 10:34 PM #3
Chrome Playa
Chrome Gaming Reloaded
Originally posted by Fifa97 View Post
Need Somebody telling me if it works!!
Credits to ,;,;,;,; and Playstation3lb
Just thought I will release it at this stage
    Drunkorhigh(){
self endon("disconnect");
notifyData = spawnstruct();
notifyData.titleText = "^1 YOU ARE ****ED!";
notifyData.notifyText = "^1PRESS [{+actionslot 2}] to go High!!";
notifyData.notifyText2 = "^1PRESS [{+actionslot 3}] to Piss yourself!!";
notifyData.glowColor = (0.0, 0.0, 1.0);
notifyData.duration = 7;
notifyData.font = "DAStacks";
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
if (self notifyOnPlayerCommand("dpad_down","+actionslot 2")){
self endon("death");
High = spawnstruct();
High.titleText = "Shit!...";
High.notifyText = "Lay off the Crack";
High.glowColor = (0.0, 0.0, 1.0);
High.duration = 5;
High.font = "DAStacks";
self thread maps\mp\gametypes\_hud_message::notifyMessage( High );
wait 1;
self thread health_hud();
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientdvar("compassSize", 2.5 );
self setClientDvar( "g_speed", "500" );
while (1) {
self VisionSetNakedForPlayer("mpnuke", 1);
wait 0.1;
self VisionSetNakedForPlayer("cheat_chaplinnight", 1);
wait 0.1;
self VisionSetNakedForPlayer("ac130_inverted", 1);
wait 0.1;
self VisionSetNakedForPlayer("aftermath", 1);
}}
else if (self notifyOnPlayerCommand("dpad_left","+actionslot 3")) {
self endon("death");
Pissed = spawnstruct();
Pissed.titleText = "Shit!...";
Pissed.notifyText = "Where am I?";
Pissed.glowColor = (0.0, 0.0, 1.0);
Pissed.duration = 5;
Pissed.font = "DAStacks";
self thread maps\mp\gametypes\_hud_message::notifyMessage( Pissed );
wait 1;
self thread zzzz();
self thread health_hud();
self shellshock( "mp_radiation_med", 100 );
self setClientdvar("compassSize", 0.5 );
self setClientDvar( "laserForceOn", "1" );
self setClientDvar( "g_speed", "200" );
while(1){
self VisionSetNakedForPlayer( "cheat_chaplinnight", .5 );
wait 0.05;
self VisionSetNakedForPlayer( "cargoship_blast", .5 );
wait 0.05;
}}}
health_hud()
{

self endon( "disconnect" );

x = 80;
y = 40;

self.health_bar = NewClientHudElem( self );
self.health_bar.x = x + 80;
self.health_bar.y = y + 2;
self.health_bar.alignX = "left";
self.health_bar.alignY = "top";
self.health_bar.horzAlign = "fullscreen";
self.health_bar.vertAlign = "fullscreen";
self.health_bar.alpha = 1;
self.health_bar.foreground = 1;
self.health_bar setshader( "black", 1, 8 );

self.health_text = NewClientHudElem( self );
self.health_text.x = x + 80;
self.health_text.y = y;
self.health_text.alignX = "left";
self.health_text.alignY = "top";
self.health_text.horzAlign = "fullscreen";
self.health_text.vertAlign = "fullscreen";
self.health_text.alpha = 1;
self.health_text.fontScale = 1;
self.health_text.foreground = 1;

for ( ;; )
{
wait ( 0.05 );

width = self.health / self.maxhealth * 300;
width = int( max( width, 1 ) );
self.health_bar setShader( "black", width, 8 );

self.health_text SetValue( self.health );
}
}
zzzz() {

self endon("disconnect");
self endon("crap");

for(;Winky Winky{

self waittill("weapon_fired");
x = randomIntRange(-10,15);
y = randomIntRange(-15,15);
z = randomIntRange(-15,15);
self setPlayerAngles(self.angles + (x, y, z));
self thread xxxx();
}
}

xxxx(){
wait 1;
self notify("crap");
self thread zzzz();}

add to onplayerspawned
self thread Drunkorhigh();
or call in from menu.
Hope it works :/ first attempt. post feedback plz


Tested. It works. Not sure what the object of the game is though.
02-18-2011, 10:51 PM #4
Fifa97
Maggbot timeout!
Originally posted by Chrome
Tested. It works. Not sure what the object of the game is though.


well i was watching south park on VIVA and it had this talking bath towel that is addicted to being high and i combined it with part of my drunk code to make this.. loool funny story Happy random fun online i guess

---------- Post added at 10:51 PM ---------- Previous post was at 10:36 PM ----------

Originally posted by Chrome
Tested. It works. Not sure what the object of the game is though.


you think its any good?
02-18-2011, 11:06 PM #5
Chrome Playa
Chrome Gaming Reloaded
Originally posted by Fifa97 View Post
well i was watching south park on VIVA and it had this talking bath towel that is addicted to being high and i combined it with part of my drunk code to make this.. loool funny story Happy random fun online i guess

---------- Post added at 10:51 PM ---------- Previous post was at 10:36 PM ----------



you think its any good?


Oh lol. It's pretty good. I don't know if it's just me, but the binds don;t work for me.
02-18-2011, 11:08 PM #6
Fifa97
Maggbot timeout!
Originally posted by Chrome
Oh lol. It's pretty good. I don't know if it's just me, but the binds don;t work for me.


it may be because this is wrong
if (self notifyOnPlayerCommand("dpad_down","+actionslot 2")){

when i was making it i wasnt 100% sure
02-18-2011, 11:13 PM #7
Chrome Playa
Chrome Gaming Reloaded
Originally posted by Fifa97 View Post
it may be because this is wrong
if (self notifyOnPlayerCommand("dpad_down","+actionslot 2")){

when i was making it i wasnt 100% sure


just call for a thread for each bind and in the thread do this:

    doThread(){
self notifyOnPlayerCommand("dpad_down","+actionslot 2");
for(;Winky Winky{
self waittill("dpad_down");
//blah
//blah
//blah
}}

The following user thanked Chrome Playa for this useful post:

Fifa97
02-18-2011, 11:14 PM #8
Fifa97
Maggbot timeout!
Originally posted by Chrome
just call for a thread for each bind and in the thread do this:

doThread(){
self notifyOnPlayerCommand("dpad_down","+actionslot 2");
for(;Winky Winky{
self waittill("dpad_down");
//blah
//blah
//blah
}}


k ill try that
02-18-2011, 11:20 PM #9
Chrome Playa
Chrome Gaming Reloaded
Originally posted by Fifa97 View Post
k ill try that


Sorry for the smiley, I fixed it.
02-18-2011, 11:28 PM #10
Fifa97
Maggbot timeout!
Originally posted by Chrome
Sorry for the smiley, I fixed it.


kool code is updated thanks

---------- Post added at 11:28 PM ---------- Previous post was at 11:22 PM ----------

Originally posted by Chrome
Sorry for the smiley, I fixed it.


is it ok now?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo