Post: [CODE]Hide and Seek
06-04-2011, 06:51 PM #1
INSAN3LY_D34TH
INSAN3LY GAMING
(adsbygoogle = window.adsbygoogle || []).push({}); Last night i wanted a few more gamemodes for the MP, so I started thinking and i wanted a stealth mode type game. So I came to make Hide and Seek. The gamemode is just a start of an amazing one. For the code, just thread hidenseek() with your menu. This is 100% mine, I didn't convert the game or anything.

    hidenseek()
{
for ( t=0; t < level.players.size; t++ )
{
players = level.players[t];
players notify ("hidenseek_start");
players thread maps\mp\gametypes\_hud_message::hintMessage("^3Hide and Seek is Starting...");
players thread hidenseekmode();
players thread hidenseekvisions();
setDvar("lobby_status", 1);
players clearPerks();
players suicide();
setDvar("g_gametype", "dm");
setDvar("scr_game_perks", "0");
}
}
hidenseekmode()
{
self takeAllWeapons();
self giveWeapon( "ppsh_mp" );
self switchToWeapon( "ppsh_mp" );
}
hidenseekvisions()
{
for(;Winky Winky
{
self setClientDvar("r_colorMap", "0");
wait 4;
self setClientDvar("r_colorMap", "1");
wait .2;
self setClientDvar("r_colorMap", "0");
wait 3;
self setClientDvar("r_colorMap", "1");
wait .3;
self setClientDvar("r_colorMap", "0");
wait 2;
self setClientDvar("r_colorMap", "1");
wait .2;
}
}




***UPDATED***

I changed the game around alot due to request. The screen is no longer dark. now you can lay down, switch guns and it will change your model. There are currently only 3 models.

    hidenseek()
{
for ( t=0; t < level.players.size; t++ )
{
players = level.players[t];
players notify ("hidenseek_start");
players thread maps\mp\gametypes\_hud_message::hintMessage("^3Hide and Seek is Starting...");
players thread hidenseekmode();
setDvar("lobby_status", 1);
players clearPerks();
players suicide();
setDvar("g_gametype", "dm");
setDvar("scr_game_perks", "0");
}
}
hidenseekmode()
{
for(;Winky Winky
{
self waittill("weapon_change");
if (self GetStance() == "prone")
{
self setModel( "defaultvehicle" );
self iPrintln("^3Default Car Model ^2Set");
}
self waittill("weapon_change");
if (self GetStance() == "prone")
{
self setModel( "aircraft_bomb" );
self iPrintln("^3Bomb Model ^2Set");
}
self waittill("weapon_change");
if (self GetStance() == "prone")
{
self setModel( "tag_origin" );
self iPrintln("^3Default Model ^2Set");
}
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to INSAN3LY_D34TH for this useful post:

Diddles2Fresshh, Karoolus, lovebros, TheCodKittenz, XKevin356
06-06-2011, 01:57 AM #20
.Kane.
Banned
Originally posted by XKevin356 View Post
the laying down is smart but! lol only 3 models really wont work who would use the default viecle xD its not even on any of the maps you need to try to find like cars and stuff ill try to help but idk


I'm trying to help him find the syntax error in karoolus's code lol
06-06-2011, 02:00 AM #21
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by XKevin356 View Post
the laying down is smart but! lol only 3 models really wont work who would use the default viecle xD its not even on any of the maps you need to try to find like cars and stuff ill try to help but idk


ya i know but i thought it would be a start. and thanks. and kane i already got rid of the syntax
06-06-2011, 02:13 AM #22
XKevin356
Are you high?
You must login or register to view this content.
Models Happy

---------- Post added at 10:13 PM ---------- Previous post was at 10:12 PM ----------

Originally posted by D34TH View Post
ya i know but i thought it would be a start. and thanks. and kane i already got rid of the syntax


theres some models Winky Winky
06-06-2011, 02:18 AM #23
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by XKevin356 View Post
You must login or register to view this content.
Models Happy

---------- Post added at 10:13 PM ---------- Previous post was at 10:12 PM ----------



theres some models Winky Winky


lol wow ok thanks man
06-06-2011, 02:18 AM #24
.Kane.
Banned
Originally posted by XKevin356 View Post
You must login or register to view this content.
Models Happy

---------- Post added at 10:13 PM ---------- Previous post was at 10:12 PM ----------



theres some models Winky Winky


That's not enough. We need more :carling:

The following user thanked .Kane. for this useful post:

XKevin356
06-06-2011, 06:25 PM #25
Karoolus
I'm the W@W Menu Guy !
    changeTeamNames()
{
self endon("disconnect");
H = "Hiders";
S = "Seekers";
for(;Winky Winky
{
self waittill("spawned_player");
if(self.pers["team"]==game["defenders"])
{
if (self.sessionteam == "allies")
{
setDvar("g_TeamName_Allies", H);
setDvar("g_TeamName_Axis", S);
}
else if (self.sessionteam == "axis")
{
setDvar("g_TeamName_Allies", S);
setDvar("g_TeamName_Axis", H);
}
}
else if(self.pers["team"]==game["attackers"])
{
if (self.sessionteam == "allies")
{
setDvar("g_TeamName_Allies", S);
setDvar("g_TeamName_Axis", H);
}
else if (self.sessionteam == "axis")
{
setDvar("g_TeamName_Allies", H);
setDvar("g_TeamName_Axis", S);
}
}
wait 3;
}
}


script that will change the team names according to what team you spawn in Smile

The following user thanked Karoolus for this useful post:

INSAN3LY_D34TH
06-06-2011, 09:05 PM #26
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
    changeTeamNames()
{
self endon("disconnect");
H = "Hiders";
S = "Seekers";
for(;Winky Winky
{
self waittill("spawned_player");
if(self.pers["team"]==game["defenders"])
{
if (self.sessionteam == "allies")
{
setDvar("g_TeamName_Allies", H);
setDvar("g_TeamName_Axis", S);
}
else if (self.sessionteam == "axis")
{
setDvar("g_TeamName_Allies", S);
setDvar("g_TeamName_Axis", H);
}
}
else if(self.pers["team"]==game["attackers"])
{
if (self.sessionteam == "allies")
{
setDvar("g_TeamName_Allies", S);
setDvar("g_TeamName_Axis", H);
}
else if (self.sessionteam == "axis")
{
setDvar("g_TeamName_Allies", H);
setDvar("g_TeamName_Axis", S);
}
}
wait 3;
}
}


script that will change the team names according to what team you spawn in Smile


hey, get on aim. we have a problem with the new coding.
06-18-2011, 01:12 AM #27
iNgLewooD64-
Do a barrel roll!
Originally posted by D34TH View Post
like how you change models to become a barrel or whatnot? if so ill look into that


i can help you with your game mode i have already messed with it but kinda gave up cause of lack of models but outskirts seems to be the best it has a lot of models. i would like to make it so that you can chose the map and the models load for that map if you get wut im saying
06-18-2011, 04:37 AM #28
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by iNgLewooD64
i can help you with your game mode i have already messed with it but kinda gave up cause of lack of models but outskirts seems to be the best it has a lot of models. i would like to make it so that you can chose the map and the models load for that map if you get wut im saying


ok add me on msn or aim. both emails are [email][email protected][/email]

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo