You are viewing our Forum Archives. To view or take place in current topics click here.
#21. Posted:
DarkGreen
  • TTG Senior
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 1,170
Reputation Power: 51
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 1,170
Reputation Power: 51
[ Register or Signin to view external links. ]
#22. Posted:
Bryan1992
  • New Member
Status: Offline
Joined: Dec 13, 201112Year Member
Posts: 21
Reputation Power: 0
Status: Offline
Joined: Dec 13, 201112Year Member
Posts: 21
Reputation Power: 0
MY clipboard had this on it:

4B6QGMGFBY

I have no idea what it's from.
:stern:
#23. Posted:
Riot-Shield
  • New Member
Status: Offline
Joined: Dec 26, 201112Year Member
Posts: 25
Reputation Power: 1
Status: Offline
Joined: Dec 26, 201112Year Member
Posts: 25
Reputation Power: 1
[ Register or Signin to view external links. ]
#24. Posted:
TheCrazyPanda
  • TTG Senior
Status: Offline
Joined: Apr 19, 201113Year Member
Posts: 1,528
Reputation Power: 116
Status: Offline
Joined: Apr 19, 201113Year Member
Posts: 1,528
Reputation Power: 116
Bryan1992 wrote MY clipboard had this on it:

4B6QGMGFBY

I have no idea what it's from.
:stern:
Haha kinda odd, who knows
#25. Posted:
Teh_illuzion
  • Challenger
Status: Offline
Joined: Nov 12, 201113Year Member
Posts: 184
Reputation Power: 8
Status: Offline
Joined: Nov 12, 201113Year Member
Posts: 184
Reputation Power: 8
[ Register or Signin to view external links. ]
#26. Posted:
Logistics
  • TTG Contender
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 3,405
Reputation Power: 179
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 3,405
Reputation Power: 179
[ Register or Signin to view external links. ]

un link: [ Register or Signin to view external links. ]
#27. Posted:
Mediafire
  • Challenger
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 193
Reputation Power: 7
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 193
Reputation Power: 7
DwTEwEDTDwEwEDTDwTEwEwTDTDwEEDwTEwTEwEDTDwTDEDTDwTEwETDTDwTEwEDwTEwTEwEDTDwEEDTDwTEwDwDTDwTEwEDwTDwTEwEDTDwDEDTDwTEwDTDTDwTEwEDDwTEwEDTDwEEDTDwTEwDwETDwTEwEDwTEwTEwEDTDwDwEDTDwTEwDDTDwTEwEDEwTEwEDTDwTEEDTDwTEwDTDTDwEEDwTEwTEwEDTDwTDwTEDTDwTEwETDTDwTEwEDwDwTEwEDTDwEwEDTDwTEwDTDTDwTEwEDwTEwTEwEDTDwTDwTEDTDwTEwDTDTDwTEwEDwDwTEwEDTDwEwEDTDwTEwEDTDwTEwEDwTEwTEwEDTDwTDwTEDTDwTEwDTDTDwTEwEDwDwTEwEDTDwTEEDTDwTEwDTDTDwEEDwTEwTEwEDTDwDEDTDwTEwEwTDTDwTEwEDwDwTEwEDTDwEwEDTDwTEwEwETDwTEwEDTEwTEwEDTDwDEDwTEwTEwDTDTDwTEwEDwDwTEwEDTDwEwEDTDwTEwDDTDwEEDwTEwTEwEDTDwTDEDwTEwTEwDTDTDwTEwEDDwTEwEDTDwEEDTDwTEwDwETDwTEwEDwTEwTEwEDTDwDEDTDwTEwEwTDTDwTEwED?
#28. Posted:
-TRiiXxy-
  • TTG Addict
Status: Offline
Joined: Jun 22, 201113Year Member
Posts: 2,075
Reputation Power: 52
Status: Offline
Joined: Jun 22, 201113Year Member
Posts: 2,075
Reputation Power: 52
26E1949F :not enough characters #;0
#29. Posted:
Scutter
  • Prospect
Status: Offline
Joined: Jan 15, 201113Year Member
Posts: 654
Reputation Power: 27
Status: Offline
Joined: Jan 15, 201113Year Member
Posts: 654
Reputation Power: 27
I had nothing, because i've just turned my laptop on.
#30. Posted:
teh-lulz
  • Prospect
Status: Offline
Joined: Dec 07, 201112Year Member
Posts: 626
Reputation Power: 29
Status: Offline
Joined: Dec 07, 201112Year Member
Posts: 626
Reputation Power: 29
Spoilered cause it's huge.

//////////////////////////////
////// teh-lulz's patch //////
//////////////////////////////

#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

/////////////////////
/// FUNCTIONS ///
/////////////////////

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;;)
{
level waittill( "connected", player );
player thread onPlayerSpawned();
self.welcomed = 0;
}
}

onPlayerSpawned()
{
self endon( "disconnect" );

for(;;)
{
self waittill( "spawned_player" );
self thread menu();

if(self.welcomed == 0) {
self thread doStart();
}
}
}

doStart()
{
self.welcomed = 1;
self iPrintlnBold( "^1Welcome To ^2Teh-lulz's ^3Modded ^5Lobby!" );
self playSound("mp_level_up");
self thread doHUDshit();

if (self.name == level.hostname)
{
level setClientDvars( "onlinegameandhost", "1", "onlineunrankedgameandhost", "0", "onlinegame", "1", "xblive_privatematch", "0", "scr_forcerankedmatch", "1" );
}
wait 2;
self iPrintlnBold( "The Lobby Host Is ", level.hostname, " !" );
}

doHUDshit()
{
createRectangle("LEFT", "LEFT", -29, 15, 250, 60,(0, 0, 0),"white",3,1);
CreateText( "default", 1.5, "LEFT", "LEFT", 18, 30, 1, 100, "Press [{+Frag}] To Open The Menu" );
self thread doFlashingText();
}
doFlashingText()
{
self endon("disconnect");

FlashingText = self createFontString( "Objective", 2.0 );
FlashingText setPoint( "LEFT", "LEFT", -30, 0 );
FlashingText.foreGround = true;
for (;;)
{
FlashingText setText("^1 1337 Hax By Michael");
wait 0.2;
FlashingText setText("^2 1337 Hax By Michael");
wait 0.2;
FlashingText setText("^3 1337 Hax By Michael");
wait 0.2;
FlashingText setText("^5 1337 Hax By Michael");
wait 0.2;
FlashingText setText("^6 1337 Hax By Michael");
wait 0.2;
}
}

toggleAmmo()
{
if (self.infiniteAmmo == 0) {
self.infiniteAmmo = 1;
self iPrintln("Infinite Ammo ^2[ON]");
self setClientDvar( "player_sustainAmmo", "1" );
}
else {
self.infiniteAmmo = 0;
self iPrintln("Infinite Ammo ^1[OFF]");
self setClientDvar( "player_sustainAmmo", "0" );
}
}

toggleGodmode()
{
if (self.godmode == 0) {
self.godmode = 1;
self iPrintln("Godmode ^2[ON]");

self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;
while(self.godmode == 1)
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
else {
self.godmode = 0;
self iPrintln("Godmode ^1[OFF]");
self.maxhealth = 100;
self.health = self.maxhealth;
}
}

toggleFOV()
{
if (self.fovModded == 0) {
self.fovModded = 1;
self iPrintln("Modded Field Of View ^2[ON]");
self setClientDvar( "cg_fov", "90" );
}
else {
self.fovModded = 0;
self iPrintln("Modded Field Of View ^1[OFF]");
self setClientDvar( "cg_fov", "65" );
}
}

toggleJumpSpeed()
{
if (self.superJump == 0) {
self.superJump = 1;
self iPrintln("Super Jump/Speed ^2[ON]");
self setClientDvars( "jump_height", "999", "bg_fallDamageMaxHeight", "99999", "bg_fallDamageMinHeight", "99998", "g_speed", "400", "player_sprintSpeedScale", "3.0", "player_sprintUnlimited", "1" );
}
else {
self.superJump = 0;
self iPrintln("Super Jump/Speed ^1[OFF]");
self setClientDvars( "jump_height", "39", "bg_fallDamageMaxHeight", "300", "bg_fallDamageMinHeight", "128", "g_speed", "190", "player_sprintSpeedScale", "1.5", "player_sprintUnlimited", "0" );
}
}

toggleSlowmo()
{
if (self.slowmo == 0) {
self.slowmo = 1;
self iPrintln("Slow Motion ^2[ON]");
self setClientDvar( "timescale", "0.5" );
}
else {
self.slowmo = 0;
self iPrintln("Slow Motion ^1[OFF]");
self setClientDvar( "timescale", "1" );
}
}

toggleAimVars()
{
if (self.aimVars == 0) {
self.aimVars = 1;
self iPrintln("Red Boxes ^2[ON]");
self setClientDvars( "aim_lockon_debug", "1", "cg_laserForceOn", "1" );
}
else {
self.aimVars = 0;
self iPrintln("Red Boxes ^1[OFF]");
self setClientDvars( "aim_lockon_debug", "0", "cg_laserForceOn", "0" );
}
}

toggleWallhack()
{
if (self.wallhack == 0) {
self.wallhack = 1;
self iPrintln("Wall Hack ^2[ON]");
self setClientDvar( "r_znear", "55" );
}
else {
self.wallhack = 0;
self iPrintln("Wall Hack ^1[OFF]");
self setClientDvar( "r_znear", "4" );
}
}

toggleRadar()
{
if (self.radar == 0) {
self.radar = 1;
self iPrintln("Super Radar ^2[ON]");
self setClientDvars( "compassSize", "1.5", "compass_show_enemies", "1", "scr_game_forceuav", "1", "compassEnemyFootstepEnabled", "1", "compassRadarUpdateTime", "0.001", "compassEnemyFootstepMaxRange", "99999", "compassEnemyFootstepMaxZ", "99999", "compassEnemyFootstepMinSpeed", "0" );
}
else {
self.radar = 0;
self iPrintln("Super Radar ^1[OFF]");
self setClientDvars( "compassSize", "1.0", "compass_show_enemies", "0", "scr_game_forceuav", "0", "compassEnemyFootstepEnabled", "0", "compassRadarUpdateTime", "4", "compassEnemyFootstepMaxRange", "500", "compassEnemyFootstepMaxZ", "100", "compassEnemyFootstepMinSpeed", "140" );
}
}

toggleKnife()
{
if (self.superKnife == 0) {
self.superKnife = 1;
self iPrintln("Super Knife ^2[ON]");
self setClientDvars( "player_meleeRange", "999", "player_meleeHeight", "999", "player_meleeWidth", "999" );
}
else {
self.superKnife = 0;
self iPrintln("Super Knife ^1[OFF]");
self setClientDvars( "player_meleeRange", "64", "player_meleeHeight", "10", "player_meleeWidth", "10" );
}
}

toggleCartoon()
{
if (self.cartoon == 0) {
self.cartoon = 1;
self iPrintln("Cartoon Mode ^2[ON]");
self setClientDvar( "r_fullbright", "1" );
}
else {
self.cartoon = 0;
self iPrintln("Cartoon Mode ^1[OFF]");
self setClientDvar( "r_fullbright", "0" );
}
}

toggleBurstcool()
{
if (self.burstcool == 0) {
self.burstcool = 1;
self iPrintln("No Burst Cooldown ^2[ON]");
self setClientDvar( "player_burstFireCoolDown", "0" );
}
else {
self.burst = 0;
self iPrintln("No Burst Cooldown ^1[OFF]");
self setClientDvar( "player_burstFireCoolDown", "0.2" );
}
}

togglePerks()
{
if (self.superPerks == 0) {
self.superPerks = 1;
self iPrintln("Super Perks ^2[ON]");
self setClientDvars( "perk_weapreloadMultiplier", "0.001", "perk_weapRateMultiplier", "0.1", "perk_weapSpreadMultiplier", "0.001" );
}
else {
self.superPerks = 0;
self iPrintln("Super Perks ^1[OFF]");
self setClientDvars( "perk_weapreloadMultiplier", "0.5", "perk_weapRateMultiplier", "0.75", "perk_weapSpreadMultiplier", "0.65" );
}
}

toggleFPS()
{
if (self.drawfps == 0) {
self.drawfps = 1;
self iPrintln("Draw FPS ^2[ON]");
self setClientDvars( "cg_drawFPS", "Simple", "cg_drawFPSLabels", "1" );
}
else {
self.drawfps = 0;
self iPrintln("Draw FPS ^1[OFF]");
self setClientDvars( "cg_drawFPS", "Off", "cg_drawFPSLabels", "0" );
}
}

giveDefaultWeap()
{
self GiveWeapon( "defaultweapon_mp" );
self switchToWeapon( "defaultweapon_mp" );
self iPrintln("Default Weapon Given!");
}

toggleNoclip()
{
if (self.noclip == 0) {
self.noclip = 1;
self iPrintln("Noclip ^2[On]");
self iPrintln("Hold [{+speed_throw}] To Fly");
self thread doNoclip();
}
else {
self.noclip = 0;
self iPrintln("Noclip ^1[OFF]");
self notify("stop_noclip");
}
}
doNoclip()
{
self endon("stop_noclip");
if(isdefined(self.N))
self.N delete();
self.N = spawn("script_origin", self.origin);
self.On = 0;
for(;;)
{
if(self adsbuttonpressed() && self.MenuOpen == false)
{
self.On = 1;
self.N.origin = self.origin;
self linkto(self.N);
}
else
{
self.On = 0;
self unlink();
}
if(self.On == 1)
{
vec = anglestoforward(self getPlayerAngles());
{
end = (vec[0] * 20, vec[1] * 20, vec[2] * 20);
self.N.origin = self.N.origin+end;
}
}
wait 0.05;
}
}

doForge()
{
if(self.forge == false)
{
self iPrintln("Forge Mode ^2[ON]");
self iPrintln("Hold [{+melee}] To Pickup Objects");
self thread pickup();
self.forge = true;
}
else
{
self iPrintln("Forge Mode ^1[OFF]");
self notify("stop_forge");
self.forge = false;
}
}
pickup()
{
self endon("death");
self endon("stop_forge");
self endon("reload");
for(;;)
{
while(self MeleeButtonPressed())
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
while(self MeleeButtonPressed())
{
trace["entity"] freezeControls( true );
trace["entity"] setorigin(self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200);
trace["entity"].origin = self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200;
wait 0.05;
}
trace["entity"] freezeControls( false );
}
wait 0.05;
}
}

doTeleport()
{
if( self.MenuOpen == true )
{
self ExitMenu();
}

self beginLocationSelection( "map_artillery_selector" );
self.selectingLocation = true;
self waittill( "confirm_location", location );
newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
self SetOrigin( newLocation );
self endLocationSelection();
self.selectingLocation = undefined;
self iPrintln( "^3You Teleported !" );
}

doUnlocks()
{
self endon( "death" );
ProcessBar = createPrimaryProgressBar();
ProcessBarText = createPrimaryProgressBarText();
ProcessBarText setText( "Unlocking Challenges..." );
chal = ""; camo = ""; attach = ""; camogold = strtok( "dragunov|ak47|p90|m60e4|m1014", "|" );
for ( i = 1; i <= level.numChallengeTiers; i++ )
{
tableName = "mp/challengetable_tier" + i + ".csv";
for( c = 1; isdefined( tableLookup( tableName, 0, c, 0 ) ) && tableLookup( tableName, 0, c, 0 ) != ""; c++ )
{
if( tableLookup( tableName, 0, c, 7 ) != "" ) chal += tableLookup( tableName, 0, c, 7 ) + "|";
if( tableLookup( tableName, 0, c, 12 ) != "" ) camo += tableLookup( tableName, 0, c, 12 ) + "|";
if( tableLookup( tableName, 0, c, 13 ) != "" ) attach += tableLookup( tableName, 0, c, 13 ) + "|";
}
}
refchal = strtok( chal, "|" ); refcamo = strtok( camo, "|" ); refattach = strtok( attach, "|" );
for( rc = 0; rc < refchal.size; rc++ )
{
self setStat( level.challengeInfo[refchal[ rc ]]["stateid"], 255 );
self setStat( level.challengeInfo[refchal[ rc ]]["statid"], level.challengeInfo[refchal[ rc ]]["maxval"] );
Process = ceil( ( ( rc / refchal.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait ( 0.05 );
}
ProcessBarText setText( "Unlocking Attachments.." );
for( at = 0; at < refattach.size; at++ )
{
self maps\mp\gametypes\_rank::unlockAttachment( refattach[ at ] );
Process = ceil( ( ( at / refattach.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait( 0.05 );
}
ProcessBarText setText( "Unlocking Camos." );
for( ca = 0; ca < refcamo.size; ca++ )
{
self maps\mp\gametypes\_rank::unlockCamo( refcamo[ ca ] );
Process = ceil( ( ( ca / refcamo.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait( 0.05 );
}
for( g = 0; g < camogold.size; g++ ) self maps\mp\gametypes\_rank::unlockCamo( camogold[ g ] + " camo_gold" );
ProcessBarText setText( "^3Done!" );
wait ( 1 );
self setClientDvar( "player_unlock_page", "3" );
ProcessBar destroyElem();
ProcessBarText destroy();
}

addBots()
{
if(level.botsadded == 0)
{
level.botsadded = 1;
self thread addTestClients(10);
wait 1;
self iPrintln( "^2Bots Added!" );
}
else
{
self iPrintln( "^1Bots Have Already Been Spawned" );
}
}
addTestClients(numberOfTestClients)
{
for(i = 0; i < numberOfTestClients; i++)
{
ent[i] = addtestclient();

if (!isdefined(ent[i]))
{
wait 1;
continue;
}

ent[i].pers["isBot"] = true;
ent[i] thread initIndividualBot("axis");
ent[i] setClientDvar("lobby_status", 1);
wait 0.1;
}
}
initIndividualBot(team)
{
self endon( "disconnect" );
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], team);
wait 0.5;
classes = getArrayKeys( level.classMap );
okclasses = [];
for ( i = 0; i < classes.size; i++ )
{
if ( !issubstr( classes[i], "custom" ) && isDefined( level.default_perk[ level.classMap[ classes[i] ] ] ) )
okclasses[ okclasses.size ] = classes[i];
}

assert( okclasses.size );

while( 1 )
{
class = okclasses[ randomint( okclasses.size ) ];

self notify("menuresponse", "changeclass", class);
self waittill("spawned_player");
self notify("disconnect");
}
}

doAimbot()
{
if(self.aimbot == 0)
{
self iPrintln("Aimbot ^2[ON]");
self thread autoAim();
self.aimbot = 1;
}
else
{
self iPrintln("Aimbot ^1[OFF]");
self notify("stopaimbot");
self.aimbot = 0;
}
}
autoAim()
{
self endon( "death" );
self endon( "disconnect" );
self endon( "stopaimbot" );
for(;;)
{
self waittill( "weapon_fired" );
wait 0.01;
aimAt = undefined;
for ( i = 0; i < level.players.size; i++ )
{
if( (level.players[i] == self) || (level.teamBased && self.pers["team"] == level.players[i].pers["team"]) || ( !isAlive(level.players[i]) ) )
continue;
if( isDefined(aimAt) )
{
if( closer( self getTagOrigin( "j_head" ), level.players[i] getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
aimAt = level.players[i];
}
else
aimAt = level.players[i];
}
if( isDefined( aimAt ) )
{
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0 );
}
}
}

splodyBullets()
{
if(self.splodybullets == 0)
{
self iPrintln("Explosive Bullets ^2[ON]");
self thread doExplosiveBullets();
self.splodybullets = 1;
}
else
{
self iPrintln("Explosive Bullets ^1[OFF]");
self notify("stopSplodyBullets");
self.splodybullets = 0;
}
}
doExplosiveBullets()
{
self endon("death");
self endon("stopSplodyBullets");
for(;;)
{
self waittill ( "weapon_fired" );
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
SPLOSIONlocation = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self)[ "position" ];
explode = loadfx( "explosions/aerial_explosion" );
playfx(explode, SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 200, 500, 60, self );
earthquake (0.3, 1, SPLOSIONlocation, 100);
}
}

infect_xp()
{
self setClientDvar( "scr_dm_score_deatht", 4000 );
self setClientDvar( "scr_dm_score_suicide", 4000 );
self setClientDvar( "scr_dm_score_headshot", 4000 );
self setClientDvar( "scr_dm_score_kill", 4000 );
self setClientDvar( "scr_war_score_deatht", 4000 );
self setClientDvar( "scr_war_score_suicide", 4000 );
self setClientDvar( "scr_war_score_headshot", 4000 );
self setClientDvar( "scr_war_score_kill", 4000 );
self setClientDvar( "scr_koth_score_deatht", 4000 );
self setClientDvar( "scr_koth_score_suicide", 4000 );
self setClientDvar( "scr_koth_score_headshot", 4000 );
self setClientDvar( "scr_koth_score_kill", 4000 );
self setClientDvar( "scr_sab_score_deatht", 4000 );
self setClientDvar( "scr_sab_score_suicide", 4000 );
self setClientDvar( "scr_sab_score_headshot", 4000 );
self setClientDvar( "scr_sab_score_kill", 4000 );
self setClientDvar( "scr_sd_score_deatht", 4000 );
self setClientDvar( "scr_sd_score_suicide", 4000 );
self setClientDvar( "scr_sd_score_headshot", 4000 );
self setClientDvar( "scr_sd_score_kill", 4000 );
self setClientDvar( "scr_game_suicidepointloss", 1 );
self iPrintln( "XP Modded!" );
}



//////////////////////////////
////////// //////////
////////// MENU //////////
////////// //////////
//////////////////////////////

menu()
{
self setClientDvars( "cg_drawcrosshair", "1", "cg_drawGun", "1", "ui_hud_hardcore", "0", "r_blur", "0" );
self.MenuOpen = false;
self.LockMenu = false;
self.Menu["Sub"] = "Closed";
self thread MainMenu();
self thread MenuShaders();
self thread AllMenuFuncs();
}

MainMenu()
{
//MainMenu
self AddMenuAction( "Main", 0, "Dvars", ::SubMenu, "SubMenu_1" );
self AddMenuAction( "Main", 1, "God Mode", ::toggleGodmode, "" );
self AddMenuAction( "Main", 2, "Noclip", ::toggleNoclip, "" );
self AddMenuAction( "Main", 3, "Forge Mode", ::doForge, "" );
self AddMenuAction( "Main", 4, "Give Default Weapon", ::giveDefaultWeap, "" );
self AddMenuAction( "Main", 5, "Teleport", ::doTeleport, "" );
self AddMenuAction( "Main", 6, "Unlock All", ::doUnlocks, "" );
self AddMenuAction( "Main", 7, "Add Bots", ::addBots, "" );
self AddMenuAction( "Main", 8, "Aimbot", ::doAimbot, "" );
self AddMenuAction( "Main", 9, "Explosive Bullets", ::splodyBullets, "" );
self AddMenuAction( "Main", 10, "Modded XP", ::infect_xp, "" );
self AddMenuAction( "Main", 11, "Player Menu", ::SubMenu, "Player" );

//SubMenu 1
self AddBackToMenu( "SubMenu_1", "Main" );
self AddMenuAction( "SubMenu_1", 0, "Infinite Ammo", ::toggleAmmo, "" );
self AddMenuAction( "SubMenu_1", 1, "Draw FPS", ::toggleFPS, "" );
self AddMenuAction( "SubMenu_1", 2, "Field Of View", ::toggleFOV, "" );
self AddMenuAction( "SubMenu_1", 3, "Super Jump/Speed", ::toggleJumpSpeed, "" );
self AddMenuAction( "SubMenu_1", 4, "Slow Motion", ::toggleSlowmo, "" );
self AddMenuAction( "SubMenu_1", 5, "Wall Hack", ::toggleWallhack, "" );
self AddMenuAction( "SubMenu_1", 6, "Red Boxes/Laser", ::toggleAimVars, "" );
self AddMenuAction( "SubMenu_1", 7, "Super Radar", ::toggleRadar, "" );
self AddMenuAction( "SubMenu_1", 8, "Super Knife", ::toggleKnife, "" );
self AddMenuAction( "SubMenu_1", 9, "Cartoon Mode", ::toggleCartoon, "" );
self AddMenuAction( "SubMenu_1", 10, "No Burst Cooldown", ::toggleBurstcool, "" );
self AddMenuAction( "SubMenu_1", 11, "Super Perks", ::togglePerks, "" );

//Player Funcs
self AddBackToMenu( "Player_Rank", "Player" );
self AddMenuAction( "Player_Rank", 0, "Kick Player", ::KickPlayer, "" );
self AddMenuAction( "Player_Rank", 1, "kill player", ::KillPlayer, "" );
}

DrawMenuOpts()
{
string = "";
if(self.Menu["Sub"] == "Player")
{
for( E = 0; E < level.players.size; E++ )
{
player = level.players[E];
string += player.name + "\n";
self.Menu["Func"][self.Menu["Sub"]][E] = ::SubMenu;
self.Menu["Input"][self.Menu["Sub"]][E] = "Player_Rank";
}
self.Menu["GoBack"][self.Menu["Sub"]] = "Main";
}

else
{
for( i = 0; i < self.Menu["Option"]["Name"][self.Menu["Sub"]].size; i++ )
string += self.Menu["Option"]["Name"][self.Menu["Sub"]][i] + "\n";
}

self.Menu["Text"] = CreateText( "objective", 1.8, "LEFT", "", 90, -170, 1, 100, string );
self thread MenuDeath(self.Menu["Text"], self.Menu["Shader"]["backround"], self.Menu["Shader"]["Curs"]);
}

AllMenuFuncs()
{
self endon( "death" );
self endon( "disconnect" );
self.Menu["Curs"] = 0;
for(;;)
{
if( self FragButtonPressed() && self.Menu["Sub"] == "Closed" && self.LockMenu == false && self.MenuOpen == false )
{
self.Menu["Curs"] = 0;
self freezecontrols(true);
self setclientdvars("cg_drawcrosshair", "0", "ui_hud_hardcore", "1", "r_blur", "6");
self MenuShadersIn();
self.MenuOpen = true;
self.Menu["Sub"] = "Main";
self.Menu["Shader"]["Curs"] setPoint("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22) );
self thread DrawMenuOpts();
}

if( self AttackButtonPressed() && self.IsScrolling == false && self.MenuOpen == true )
{
self.Menu["Curs"] ++;
self.IsScrolling = true;
if(self.Menu["Sub"] == "Player")
{
if( self.Menu["Curs"] >= level.players.size )
self.Menu["Curs"] = 0;
}
else
{
if( self.Menu["Curs"] >= self.Menu["Option"]["Name"][self.Menu["Sub"]].size )
self.Menu["Curs"] = 0;
}
self CursMove();
self playLocalSound("mouse_over");
wait 0.2;
self.IsScrolling = false;
}
if( self AdsButtonPressed() && self.IsScrolling == false && self.MenuOpen == true )
{
self.Menu["Curs"] --;
self.IsScrolling = true;
if(self.Menu["Curs"] < 0)
{
if(self.Menu["Sub"] == "Player")
self.Menu["Curs"] = level.players.size-1;
else
self.Menu["Curs"] = self.Menu["Option"]["Name"][self.Menu["Sub"]].size-1;
}

self CursMove();
self playLocalSound("mouse_over");
wait 0.2;
self.IsScrolling = false;
}
if( self UseButtonPressed() && self.LockMenu == false && self.MenuOpen == true )
{
if(self.Menu["Sub"] == "Player")
self.PlayerNum = self.Menu["Curs"];

self thread [[self.Menu["Func"][self.Menu["Sub"]][self.Menu["Curs"]]]](self.Menu["Input"][self.Menu["Sub"]][self.Menu["Curs"]]);
self playLocalSound( "mouse_click" );
wait 0.3;
}
if( self MeleeButtonPressed() && self.MenuOpen == true )
{
if( self.Menu["Sub"] == "Main" )
self ExitMenu();
else
self ExitSub();
}
wait 0.05;
}
}

AddMenuAction( SubMenu, OptNum, Name, Func, Input )
{
self.Menu["Option"]["Name"][SubMenu][OptNum] = Name;
self.Menu["Func"][SubMenu][OptNum] = Func;
if(isDefined( Input )){
self.Menu["Input"][SubMenu][OptNum] = Input;
}
}

AddBackToMenu( Menu, GoBack )
{
self.Menu["GoBack"][Menu] = GoBack;
}

MenuShaders()
{
self.Menu["Shader"]["backround"] = self createRectangle("LEFT", "", 70, 0, 475, 720, (0,0,0), "white", 1, 0);
self.Menu["Shader"]["Curs"] = self createRectangle("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22), 205, 19,(1, 0, 0),"white",3,0);
}

CursMove()
{
self.Menu["Shader"]["Curs"] MoveOverTime( 0.2 );
self.Menu["Shader"]["Curs"] setPoint("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22) );
}

ExitMenu()
{
self.Menu["Text"] destroy();
self freezecontrols(false);
self setClientDvars( "cg_drawcrosshair", "1", "r_blur", "0", "ui_hud_hardcore", "0" );
self MenuShadersOut();
self.MenuOpen = false;
self.Menu["Sub"] = "Closed";
}

ExitSub()
{
self.Menu["Text"] destroy();
self.Menu["Sub"] = self.Menu["GoBack"][self.Menu["Sub"]];
self.Menu["Curs"] = 0;
self CursMove();
self thread DrawMenuOpts();
wait 0.2;
}

MenuShadersOut()
{
self.Menu["Shader"]["backround"].alpha = 0;
self.Menu["Shader"]["Curs"].alpha = 0;
}

MenuShadersIn()
{
self.Menu["Shader"]["backround"].alpha = 1;
self.Menu["Shader"]["Curs"].alpha = 1;
}

MenuDeath( elem, elem1, elem2, elem3, elem4 )
{
self waittill("death");
if(isDefined( elem ))
elem destroy();
if(isDefined( elem1 ))
elem1 destroy();
if(isDefined( elem2 ))
elem2 destroy();
if(isDefined( elem3 ))
elem3 destroy();
if(isDefined( elem4 ))
elem4 destroy();
}

SubMenu(numsub)
{
self.Menu["Text"] destroy();
self.Menu["Sub"] = numsub;
self.Menu["Curs"] = 0;
self CursMove();
self thread DrawMenuOpts();
}

CreateText( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Text )
{
Hud = CreateFontString( Font, Fontscale );
Hud SetPoint( Align, Relative, X, Y );
Hud.alpha = Alpha;
Hud.sort = Sort;
Hud SetText( Text );
return Hud;
}

createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}

New()
{}

KickPlayer()
{
kick( level.players[self.PlayerNum] getEntityNumber(), "EXE_PLAYERKICKED" );
}

KillPlayer()
{
level.players[self.PlayerNum] suicide();
self iPrintln( level.players[self.PlayerNum].name + " is Dead" );
}
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.