LOADING MODZ
THIS IS VARY ANNOYING I KNOW SO JOIN OR LOG IN, IT TAKES LIKE 2 SECONDS <3 Shadow Ghost and Loading

Pwnzers zombies uncompressed

Go down

Pwnzers zombies uncompressed

Post by 3LIT3 Loading on Mon Oct 31, 2011 12:49 am

Code:
 
#include common_scripts\utility;#include maps\mp\_airsupport;#include maps\mp\_utility;#include maps\mp\gametypes\_hud_util;main(){}init(){thread onPlayerConnect();thread onPlayerConnected();thread doZombieTimer();thread checkIfAllDead();thread spawnMysteryBox();thread doGlobalVars();thread trackTime();level.onPlayerKilled = ::onPlayerKilled;level.onPlayerDamage = ::onPlayerDamage;precacheShader( "compass_waypoint_target" );PrecacheShader( "perk_times_two" );PrecacheShader( "hud_ammo_refill_drop" );PrecacheShader( "hud_ks_minigun" );PrecacheShader( "headicon_dead" );}onPlayerConnect(){for(;;){level waittill( "connecting", player );player thread onPlayerSpawned();player thread Variables();player thread createHealth();}}onPlayerConnected(){for(;;){level waittill( "connected", player );player thread setupGame();player thread checkDistance();player thread doVariables();}}onPlayerSpawned(){for(;;){self waittill( "spawned_player" );if( self._infected == false ){if( self.pers["team"] == "allies" ){self thread doHumanWeapons();self thread doHumanSettings();}else if( self.pers["team"] != "allies" ){self._infected = false;self [[level.allies]]();}}else if( self._infected == true ){if( self.pers["team"] == "axis" ){self thread doZombieWeapons();self thread doZombieSettings();}else if( self.pers["team"] != "axis" ){self._infected = true;self [[level.axis]]();}}}}doVariables(){setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );setDvar( "scr_game_hardpoints", 0 );setDvar( "scr_game_killstreaks", 0 );self setClientDvar( "ammoCounterHide", 1 );self setClientDvar( "actionSlotsHide", 1 );self setClientDvar( "ui_xpText", 0 );}trackTime(){for(;;){wait RandomFloatRange( 75, 120 );level thread spawnDogs();}}spawnDogs(){for( i = 0;i < level.players.size;i++ ){if( level.players[i].pers["team"] == "axis" && level.players[i]._infected == true ){level.players[i] thread maps\mp\_dogs:: useKillstreakDogs( "dogs_mp" );iPrintlnBold( "^1DOGS INCOMING!!!!!" );break;}else{wait 0.01;}}}doGlobalVars(){setDvar( "didyouknow", "Welcome to PwnZombies Mod" );setDvar( "sv_hostname", "Tlpwnzers Modded Lobby" );setDvar( "scr_disable_cac", 1 );setDvar( "scr_disable_weapondrop", 1 );setDvar( "ammoCounterHide", 1 );setDvar( "actionSlotsHide", 1 );setDvar( "ui_xpText", 0 );setDvar( "scr_game_hardpoints", 0 );setDvar( "scr_game_killstreaks", 0 );setDvar( "party_joinInProgressAllowed", 0 );setDvar( "dog_MeleeDamage", 75 );setDvar( "scr_dog_time", 30 );setDvar( "scr_dog_health", 200 );setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );setExpFog( 30, 450, 0, 0, 0, 0 );level.zombiesReleased = 0;level.maxAmmo = 0;level.cashFlow = 1;level.prematchPeriod = 5;level.gameIsReady = 0;level.randText = strtok( " Just got his brains eaten by a zombie| Just got Infected| Has just become undead| Just got eaten by a zombie", "|" );level.using = 0;level.lastSurvivor = 0;level.guns[0] = "aug_mp";level.guns[1] = "m16_mp";level.guns[2] = "spas_mp";level.guns[3] = "famas_mp";level.guns[4] = "rpk_mp";level.guns[5] = "rpg_mp";level.guns[6] = "m72_law_mp";level.guns[7] = "commando_mp";level.guns[8] = "python_mp";level.guns[9] = "ak74u_mp";level.guns[10] = "l96a1_mp";level.guns[11] = "fnfal_mp";level.guns[12] = "cz75_mp";level.guns[13] = "spectre_mp";level.guns[14] = "hk21_mp";level.guns[15] = "crossbow_explosive_mp";level.guns[16] = "knife_ballistic_mp";level.guns[17] = "m60_mp";level.guns[18] = "stoner63_mp";}checkIfAllDead(){for(;;){wait 1.0;if( level.zombiesReleased == 1 && level.playerCount["allies"] == 1 && level.lastSurvivor == 0 ){for( i = 0;i < level.players.size;i++ ){wait 0.05;if( level.players[i]._infected == false && level.players[i].pers["team"] == "allies" ){level.lastSurvivor = 1;level.players[i] thread lastManWeapons();break;}}}else if( level.zombiesReleased == 1 && level.playerCount["allies"] == 0 ){wait 1.0;level notify( "gameOver" );thread maps\mp\gametypes\_globallogic::endGame( "axis", "Humans Eliminated" );break;}}}lastManWeapons(){iPrintlnBold( self.name + " ^1Has the DEATH MACHINE" );objective_add( 1, "active", self.origin );objective_icon( 1, "compass_waypoint_target" );self takeAllWeapons();self giveWeapon( "minigun_mp", 5, false );self switchToWeapon( "minigun_mp" );self giveMaxAmmo( "minigun_mp" );for(;;){objective_position( 1, self.origin );wait 0.2;}}spawnMysteryBox(){switch( getDvar( "mapname" ) ){case "mp_nuked":thread createBox( ( -231, 1009, -46 ), ( 0, 112, 0 ) );break;case "mp_mountain":thread createBox( ( 2807, 1311, 369 ), ( 0, -91, 0 ) );break;case "mp_array":thread createBox( ( 2416, 120, 716 ), ( 0, 0, 0 ) );break;case "mp_cairo":break;case "mp_cosmodrome":thread createBox( ( 9, 386, 9 ), ( 0, 2, 0 ) );break;case "mp_crisis":thread createBox( ( 67, 2787, 83 ), ( 0, -179, 0 ) );break;case "mp_duga":thread createBox( ( 3034, -1549, 28 ), ( 0, -177, 0 ) );break;case "mp_firingrange": thread createBox( ( 9, 1494, -38 ), ( 0, -105, 0 ) );break;case "mp_hanoi": break;case "mp_havoc": break;case "mp_radiation": break;case "mp_russianbase": break;case "mp_villa": break;case "mp_cracked":thread createBox( ( -346, -906, 97 ), ( 0, 180, 0 ) );break;}}createBox( pos, ang ){level.mBox = spawn( "script_model", pos );level.mBox setModel( "mp_supplydrop_ally" );level.mBox.angles = ang;level.mBox.origin = pos;level.mGun = spawn( "script_model", pos );level.mGun setModel( GetWeaponModel( "claymore_mp" ) );level.mGun.angles = ang + ( 0, 90, 0 );level.mGun hide();objective_add( 0, "active", level.mBox.origin );objective_icon( 0, "compass_supply_drop_green" );iconOrg = level.mBox.origin;icon = newTeamHudElem( "allies" );icon.x = iconOrg[0];icon.y = iconOrg[1];icon.z = iconOrg[2] + 30;icon.alpha = .59;icon.archived = true;icon setShader( "compass_supply_drop_green", 15, 15 );icon setwaypoint( false );}checkDistance(){self endon( "disconnect" );level endon( "gameOver" );Text = "Hold [{+activate}] to use Mystery Box[ 950 ]";while( 1 ){if( self meetsRequirements() == true && level.using == 0 ){self setLowerMessage( Text );for(;;){if( self useButtonPressed() == true && self meetsRequirements() == true && level.using == 0 ) wait 0.20;if( self useButtonPressed() == true && self meetsRequirements() == true && level.using == 0 ){self thread addMoney( -950 );level.using = 1;self clearLowerMessage( 1.0 );level.mGun show();self playSoundToPlayer( "mpl_turret_alert", self );level.mGun moveTo( level.mBox.origin + ( 0, 0, 30 ), 2 );for( i = 0;i < 15;i++ ){self.weapon = level.guns[randomInt( level.guns.size )];level.mGun setModel( GetWeaponModel( self.weapon ) );wait( 0.025 * i );}wait .1;self thread gunTimeout();self thread mysteryBoxThink( self.weapon );self waittill( "begin" );level.mGun moveTo( level.mBox.origin, 1 );wait 1.0;level.mGun hide();level.using = 0;break;}wait 0.001;}}else{self clearLowerMessage( 1.0 );}}}gunTimeout(){level endon( "end" );level.mGun moveTo( level.mBox.origin, 16 );wait 10;self clearLowerMessage( 1.0 );self notify( "begin" );level notify( "end" );}mysteryBoxThink( gun ){level endon( "end" );level endon( "gameOver" );Text = "Hold [{+activate}] to Trade Weapons";while( 1 ){if( self meetsRequirements() == true ){self setLowerMessage( Text );for(;;){if( self useButtonPressed() == true && self meetsRequirements() == true ) wait 0.20;if( self useButtonPressed() == true && self meetsRequirements() == true ){if( self GetWeaponsListPrimaries().size > 1 ) self takeWeapon( self getCurrentWeapon() );self giveWeapon( gun );self switchToWeapon( gun );self giveMaxAmmo( gun );self clearLowerMessage( 1.0 );self notify( "begin" );self notify( "end" );}else if( distance( self.origin, level.mBox.origin ) > 75 ){self clearLowerMessage( 1.0 );}wait 0.001;}}else if( distance( self.origin, level.mBox.origin ) > 75 ){self clearLowerMessage( 1.0 );}wait 0.001;}}meetsRequirements(){if( distance( self.origin, level.mBox.origin ) < 75 && self._infected == false && self.pers["team"] == "allies" ) return true;else return false;}onPlayerDamage( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime ){if( attacker.pers["team"] == "allies" && attacker._infected == false ){if( self.pers["team"] == "axis" && self._infected == true ) attacker thread addMoney( iDamage * level.cashFlow );}}onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon ){if( level.zombiesReleased == 1 ){if( self.pers["team"] == "allies" && self._infected == false ){rand = randomInt( level.randText.size );iPrintlnBold( self.name + "^1" + level.randText[rand] );self._infected = true;self [[level.axis]]();wait 0.20;}else if( self.pers["team"] == "axis" && self._infected == true ){thread randomDrop( self.origin );}}else{wait 0.20;}}randomDrop( origin ){if( randomInt( 4 ) == randomInt( 4 ) ){thread createRandomDrop( 0, origin );}}createRandomDrop( num, origin ){if( num == 0 && level.maxAmmo == 0 ){level.maxAmmo = 1;for( i = 0;i < level.players.size;i++ ) if( level.players[i].pers["team"] == "allies" && level.players[i]._infected == false ) level.players[i] thread checkDistanceToPerk( "maxAmmo", origin );}}checkDistanceToPerk( type, origin ){if( type == "maxAmmo" ) level.shader = "hud_ammo_refill_drop";iconOrg = origin;icon = newTeamHudElem( "allies" );icon.x = iconOrg[0];icon.y = iconOrg[1];icon.z = iconOrg[2] + 30;icon.alpha = .59;icon.archived = true;icon setShader( level.shader, 16, 16 );icon setwaypoint( false );level endon( "stopPerk" );while( 1 ){if( distance( self.origin, icon.origin ) < 50 ){thread maxAmmo();icon delete();icon destroy();level notify( "stopPerk" );}wait 0.01;}}maxAmmo(){iPrintlnBold( "MAX AMMO" );level.maxAmmo = 0;for( i = 0;i < level.players.size;i++ ){weapons = level.players[i] GetWeaponsList();for( x = 0;x < weapons.size;x++ ){level.players[i] giveMaxAmmo( weapons[x] );level.players[i] setWeaponAmmoClip( weapons[x], 100 );}}}addMoney( points ){self endon( "disconnect" );self.money = self.money + points;hud_score = NewClientHudElem( self );hud_score.alpha = 0;hud_score.font = "objective";hud_score.fontscale = 1.9;hud_score.x = 600;hud_score.y = 360;hud_score.archived = true;hud_score.color = ( 1, 1, 0 );hud_score.alignX = "right";hud_score.alignY = "middle";hud_score.horzAlign = "fullscreen";hud_score.vertAlign = "fullscreen";hud_score settext( points );direction = randomint( 340 );hud_score FadeOverTime( .5 );hud_score.alpha = 1;hud_score MoveOverTime( 10 );hud_score.x = cos( direction ) * randomint( 250 );hud_score.y = sin( direction ) * randomint( 250 );wait 1.3;hud_score FadeOverTime( .3 );hud_score.alpha = 0;wait .3;hud_score destroy();self.displayCash setText( "Money: " + self.money );}Variables(){self.money = 5000;self.displayCash = self createFontString( "objective", 1.9 );self.displayCash.color = ( 1, 1, 1 );self.displayCash.alpha = 1;self.displayCash setPoint( "RIGHT", "TOP", 0, 10 );self.displayCash setText( "Money: " + self.money );self setClientDvar( "didyouknow", "Welcome to PwnZombies Mod" );self setClientDvar( "scr_disable_cac", 1 );self setClientDvar( "r_sun", "0" );self setClientDvar( "r_specularRoughnessMap", 0 );self setClientDvar( "r_lightTweakSunColor", "1 0 0" );self setClientDvar( "r_lighttweaksunlight", "0.991101 0.947308 0.760525" );self setClientDvar( "r_heroLightScale", "1 1 1" );self setClientDvar( "r_skyColorTemp", "6500" );self setClientDvar( "ammoCounterHide", 1 );self setClientDvar( "actionSlotsHide", 1 );self setClientDvar( "ui_xpText", 0 );self setClientDvar( "scr_game_hardpoints", 0 );self setClientDvar( "scr_game_killstreaks", 0 );self setClientDvar( "player_meleeRange", 150 );}setupGame(){if( self.pers["team"] != "allies" ){self [[level.allies]]();wait 0.2;}else if( self.pers["team"] == "allies" ){wait 0.2;}self._infected = false;}doZombieTimer(){wait 5;level.gameIsReady = 1;level.ZombieText = createServerFontString( "extrabig", 1.8 );level.ZombieText setPoint( "CENTER", "CENTER", 0, -40 );level.ZombieText.color = ( 1, 0, 0 );level.ZombieText.sort = 1001;level.zombieText setText( "Zombies Released In" );level.ZombieTimer = createServerFontString( "extrabig", 2.3 );level.ZombieTimer setPoint( "CENTER", "CENTER", 0, 0 );level.ZombieTimer.color = ( 1, 1, 0 );level.ZombieTimer.sort = 1001;level.ZombieTimer maps\mp\gametypes\_hud::fontPulseInit();for( i = 15;i > -1;i-- ){level.ZombieTimer setValue( i );level.ZombieTimer thread maps\mp\gametypes\_hud::fontPulse( level );wait 1;}level.ZombieTimer destroyElem();level.ZombieText setText( "Zombies Released" );level.ZombieText fadeOverTime( 3.0 );level.ZombieText.alpha = 0;wait( 3.0 );level.ZombieText destroyElem();wait 0.20;zombie1 = randomInt( level.players.size );iPrintlnBold( "^1" + level.players[zombie1].name + " Has been chosen for Zombie Duty" );level.players[zombie1] suicide();level.players[zombie1]._infected = true;level.players[zombie1] [[level.axis]]();wait 0.20;level.zombiesReleased = 1;}doZombieSettings(){self setMoveSpeedScale( 1.7 );self.maxHealth = 700;self.health = 700;self.displayCash.alpha = 0;self setClientDvar( "cg_drawCrosshair", 0 );self setClientDvar( "cg_drawCrosshair3D", 0 );self setClientDvar( "ui_drawCrosshair", 0 );}doZombieWeapons(){self takeAllWeapons();self clearPerks();self giveWeapon( "defaultweapon_mp" );self giveWeapon( "knife_mp" );self switchToWeapon( "defaultweapon_mp" );self setWeaponAmmoClip( "defaultweapon_mp", 0 );self setWeaponAmmoStock( "defaultweapon_mp", 0 );}doHumanSettings(){self setMoveSpeedScale( 1.0 );self.maxHealth = 500;self.health = 500;self.displayCash.alpha = 1;self setClientDvar( "cg_drawCrosshair", 1 );self setClientDvar( "cg_drawCrosshair3D", 1 );self setClientDvar( "ui_drawCrosshair", 1 );}doHumanWeapons(){self.randWeaps = strtok( "aug_mp|stoner63_mp|mp5k_mp|spas_mp", "|" );self.randNum = randomInt( self.randWeaps.size );self.chosenGun = self.randWeaps[self.randNum];self takeAllWeapons();self clearPerks();self giveWeapon( "knife_mp" );self giveWeapon( self.chosenGun );self switchToWeapon( self.chosenGun );}createHealth(){self.healthBar = self createBar( ( 1, 1, 1 ), 150, 13 );self.healthBar setPoint( "CENTER", "BOTTOM", 150, -4 );self.healthText = self createFontString( "objective", 1.5 );self.healthText setPoint( "CENTER", "BOTTOM", 150, -20 );self.healthText setText( "^1Health" );for(;;){self.healthBar updateBar( self.health / self.maxhealth );wait 0.001;}}

3LIT3 Loading
Admin
Admin

Posts : 105
Join date : 2011-10-25
Age : 21
Location : NuKeToWn NuKe

View user profile http://www.loadingmods.tk

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum