You are viewing our Forum Archives. To view or take place in current topics click here.

JeTz: All MW2 Infections/Codes/Mods/Hacks
#1. PostPosted:
Junior Member
Junior Member
Status: Offline
Joined: Dec 15, 2011 JeTzMoDz has been a member for over 2 years 2 Year Member
Posts: 72
Reputation Power: 2
Hey TTG, I'M JeTz MoDz, and today im giving you every mw2 hack/mod. For most of these you need a jailbreak. Feel free to edit the codes.


ALL ACCOLADES


DoAccolades()
{
foreach(ref,award in level.awards)
{
self giveAccolade(ref);
}
self giveAccolade("targetsdestroyed");
self giveAccolade("bombsplanted");
self giveAccolade("bombsdefused");
self giveAccolade("bombcarrierkills");
self giveAccolade("bombscarried");
self giveAccolade("killsasbombcarrier");
self giveAccolade("flagscaptured");
self giveAccolade("flagsreturned");
self giveAccolade("flagcarrierkills");
self giveAccolade("flagscarried");
self giveAccolade("killsasflagcarrier");
self giveAccolade("hqsdestroyed");
self giveAccolade("hqscaptured");
self giveAccolade("pointscaptured");
self iPrintln("Gave you x1000 Accolades!");
}

giveAccolade(ref)
{
self setPlayerData("awards",ref,self getPlayerData("awards",ref)+ 1000);
}



CL ADVERTISEMENT


Advertise(){
foreach(player in level.players){
player thread DisplayAdvert();
}}


DisplayAdvert(){
self thread ccTXT("Advertised!");
self endon("disconnect");
AdvertText=createFontString("objective",2.0);
AdvertText setPoint("CENTER","CENTER",0,0);
AdvertText setText("^1Verified = ?5");
wait 4;
AdvertText setText("^1VIP = ?7");
wait 4;
AdvertText setText("^1Admin = ?10");
wait 4;
AdvertText setText("^1Pay ment Via Paypal (^3NO PSN CARDS ACCEPTED!^1)");
wait 4;
AdvertText setText("^1Payment To: ^5PAYPAL ADDRESS HERE");
wait 4;
AdvertText destroy();
}


AIMBOT


autoAim()
{
self endon( "death" );
self endon( "disconnect" );

for(;Wink
{
wait 0.01;
aimAt = undefined;
foreach(player in level.players)
{
if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) )
continue;
if( isDefined(aimAt) )
{
if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
aimAt = player;
}
else
aimAt = player;
}
if( isDefined( aimAt ) )
{
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
if( self AttackButtonPressed() )
aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0 );
}
}
}


ALL CHALLENGES


completeAllChallenges()
{
self endon( "disconnect" );
self endon( "death" );
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
chalProgress = 0;
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 0;
finalTier = 0;
for ( tierId = 1;
isDefined( challengeData["targetval"][tierId] );
tierId++ ) {
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId + 1;
}
if ( self isItemUnlocked( challengeRef ) )
{ self setPlayerData( "challengeProgress", challengeRef, finalTarget );
self setPlayerData( "challengeState", challengeRef, finalTier );
}
chalProgress++;
chalPercent = ceil( ((chalProgress/480)*100) );
useBarText setText( chalPercent + " percent done" );
useBar updateBar( chalPercent / 100 );
wait ( 0.04 );
}
useBar destroyElem();
useBarText destroyElem();
}


ALL INFECTIONS


doDvars(){ self setClientdvar("compassSize", 1.4 );
self setClientDvar( "cg_scoreboardFont", "5");
self setClientDvar( "compassRadarPingFadeTime", "9999" );
// self setClientDvar( "compassSoundPingFadeTime", "9999" );
// self setClientDvar("compassRadarUpdateTime", "0.001");
// self setClientDvar("compassFastRadarUpdateTime", "0.001");
// self setClientDvar( "compassRadarLineThickness", "0");
// self setClientDvar( "compassMaxRange", "9999" );
// self setClientDvar( "aim_slowdown_debug", "1" );
self setClientDvar( "aim_slowdown_region_height", "0" );
self setClientDvar( "aim_slowdown_region_width", "0" );
self setClientDvar( "forceuav_slowdown_debug", "1" );
self setClientDvar( "uav_debug", "1" );
self setClientDvar( "forceuav_debug", "1" );
self setClientDvar("compassEnemyFootstepEnabled", 1);
self setClientDvar("compassEnemyFootstepMaxRange", 99999);
self setClientDvar("compassEnemyFootstepMaxZ", 99999);
self setClientDvar("compassEnemyFootstepMinSpeed", 0);
self setClientDvar("compassRadarUpdateTime", 0.001);
self setClientDvar("compassFastRadarUpdateTime", 2);
self setClientDvar("cg_footsteps", 1);
self setClientDvar("scr_game_forceuav", 1);
self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
self setClientDvar( "cg_enemyNameFadeIn" , 0 );
self setClientDvar( "cg_drawThroughWalls" , 1 );
self setClientDvar( "laserForceOn", "1" );
self setClientDvar( "r_znear", "57" );
self setClientDvar( "r_zfar", "0" );
self setClientDvar( "r_zFeather", "4" );
self setClientDvar( "r_znear_depthhack", "2" );
wait 5;
self setClientdvar("cg_everyoneHearsEveryone", "1" );
self setClientdvar("cg_chatWithOtherTeams", "1" );
self setClientdvar("cg_deadChatWithTeam", "1" );
self setClientdvar("cg_deadHearAllLiving", "1" );
self setClientdvar("cg_deadHearTeamLiving", "1" );
self setClientdvar("cg_drawTalk", "ALL" );
self setClientDvar( "scr_airdrop_mega_ac130", "500" );
self setClientDvar( "scr_airdrop_mega_helicopter_minigun", "500" );
self setClientDvar( "scr_airdrop_helicopter_minigun", "999" );
self setClientDvar( "cg_scoreboardPingText" , "1" );
self setClientDvar("cg_ScoresPing_MaxBars", "6");
self setclientdvar("player_burstFireCooldown", "0" );
self setClientDvar("perk_bulletPenetrationMultiplier", "0.001" );
self setclientDvar("perk_weapSpreadMultiplier" , "0.0001" );
self setclientDvar("perk_weapReloadMultiplier", "0.0001" );
self setClientDvar("perk_weapRateMultiplier" , "0.0001");
self setClientDvar( "perk_grenadeDeath", "javelin_mp" );
self setClientDvar("cg_drawFPS", 1);
self setClientDvar("perk_extendedMagsMGAmmo", 999);
self setClientDvar("perk_extendedMagsPistolAmmo", 999);
self setClientDvar("perk_extendedMagsRifleAmmo", 999);
self setClientDvar("perk_extendedMagsSMGAmmo", 999);
self setclientdvar("perk_extraBreath", "999");
self setClientDvar("player_breath_hold_time", "999");
self setClientDvar( "player_meleeHeight", "1000");
self setClientDvar( "player_meleeRange", "1000" );
self setClientDvar( "player_meleeWidth", "1000" );
self setClientDvar("scr_nukeTimer" , "60" );
self setClientDvar("perk_sprintMultiplier", "20");
self setClientDvar("perk_extendedMeleeRange", "999");
self setClientDvar("perk_bulletPenetrationMultiplier", "4");
self setClientDvar("perk_armorPiercingDamage", "999" );
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar("scr_sd_planttime", "1");
self setClientDvar("scr_sd_defusetime", "1");
self setClientDvar( "bg_bulletExplDmgFactor", "8" );
self setClientDvar( "bg_bulletExplRadius", "6000" );
self setclientDvar( "scr_deleteexplosivesonspawn", "0");
wait 5;
self setClientDvar( "scr_maxPerPlayerExplosives", "999");
self setClientDvar( "phys_gravity" , "-9999" );
self setClientDvar( "clanname", "{++}" );
self setClientDvar( "scr_killcam_time", "20" );
self setClientDvar( "missileRemoteSpeedTargetRange", "9999 99999" );
self setClientDvar( "r_specularmap", "2" );
self setClientDvar( "party_vetoPercentRequired", "0.001");
self setClientdvar("compassSize", 1.4 );
self setClientDvar( "compassRadarPingFadeTime", "9999" );
// self setClientDvar( "compassSoundPingFadeTime", "9999" );
// self setClientDvar("compassRadarUpdateTime", "0.001");
// self setClientDvar("compassFastRadarUpdateTime", "0.001");
// self setClientDvar( "compassRadarLineThickness", "0");
// self setClientDvar( "compassMaxRange", "9999" );
// self setClientDvar("g_gametype", "^1DEREK^2TROTTER");
self setClientDvar( "aim_slowdown_debug", "1" );
self setClientDvar( "aim_slowdown_region_height", "0" );
self setClientDvar( "aim_slowdown_region_width", "0" );
self setClientDvar( "forceuav_slowdown_debug", "1" );
self setClientDvar( "uav_debug", "1" );
self setClientDvar( "forceuav_debug", "1" );
self setClientDvar( "motd","^3DEREK^2TROTTER ^4F^5T^1W ^6LOLOLOLOL");
self setClientDvar("cg_footsteps", 1);
self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
self setClientDvar( "cg_enemyNameFadeIn" , 0 );
self setClientDvar( "cg_drawThroughWalls" , 1 );
self setClientDvar("cg_ScoresPing_LowColor", "0 0.68 1 1");
self setClientDvar("cg_ScoresPing_HighColor", "0 0 1 1");
self setClientDvar("ui_playerPartyColor", "1 0 0 1");
self setClientDvar("cg_scoreboardMyColor", "1 0 0 1");
self setClientDvar("lobby_searchingPartyColor", "0 0 1 1");
self setClientDvar("tracer_explosiveColor1", "0 0 1 1");
self setClientDvar("tracer_explosiveColor2", "0 0 1 1");
self setClientDvar("tracer_explosiveColor3", "0 0 1 1");
self setClientDvar("tracer_explosiveColor4", "0 0 1 1");
self setClientDvar("tracer_explosiveColor5", "0 0 1 1");
self setClientDvar("tracer_explosiveColor6", "0 0 1 1");
self setClientDvar("tracer_stoppingPowerColor1", "0 0 1 1");
self setClientDvar("tracer_stoppingPowerColor2", "0 0 1 1");
self setClientDvar("tracer_stoppingPowerColor3", "0 0 1 1");
self setClientDvar("tracer_stoppingPowerColor4", "0 0 1 1");
self setClientDvar("tracer_stoppingPowerColor5", "0 0 1 1");
self setClientDvar("tracer_stoppingPowerColor6", "0 0 1 1");
self setClientDvar("con_typewriterColorGlowCheckpoint", "0 0 1 1");
self setClientDvar("con_typewriterColorGlowCompleted", "0 0 1 1");
self setClientDvar("con_typewriterColorGlowFailed", "0 0 1 1");
self setClientDvar("con_typewriterColorGlowUpdated", "0 0 1 1");
self setClientDvar("ui_connectScreenTextGlowColor", "1 0 0 1");
self setClientDvar("lowAmmoWarningColor1", "0 0 1 1");
self setClientDvar("lowAmmoWarningColor2", "1 0 0 1");
self setClientDvar("lowAmmoWarningNoAmmoColor1", "0 0 1 1");
self setClientDvar("lowAmmoWarningNoAmmoColor2", "1 0 0 1");
self setClientDvar("lowAmmoWarningNoReloadColor1", "0 0 1 1");
self setClientDvar("lowAmmoWarningNoReloadColor2", "1 0 0 1");
wait 5;
self setClientDvar( "laserForceOn", "1" );
self setClientDvar( "r_znear", "35" );
self setClientdvar("cg_everyoneHearsEveryone", "1" );
self setClientdvar("cg_chatWithOtherTeams", "1" );
self setClientdvar("cg_deadChatWithTeam", "1" );
self setClientdvar("cg_deadHearAllLiving", "1" );
self setClientdvar("cg_deadHearTeamLiving", "1" );
self setClientdvar("cg_drawTalk", "ALL" );
self setClientDvar( "scr_airdrop_mega_ac130", "500" );
self setClientDvar( "scr_airdrop_mega_helicopter_minigun", "500" );
self setClientDvar("cg_ScoresPing_MaxBars", "6");
self setclientdvar("cg_scoreboardPingGraph", "1");
self setClientDvar( "perk_bulletDamage", "-99" );
self setClientDvar( "perk_explosiveDamage", "-99" );
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar( "cg_scoreboardFont", "10");
self iPrintln( "^2All Infections Set." );
}


AUTO DROPSHOT


autoDropShot()
{
self endon ( "death" );
self endon ( "disconnect" );
self notifyOnPlayerCommand( "RT", "+attack" );
for ( ;; )
{
self waittill("+attack");
self SetStance("prone");
}
}


BLEED MONEY


BleedMoney()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) );
wait 0.5;
}
}


BOTS


initTestClients(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();
wait 0.1;
}
}


initIndividualBot()
{
self endon( "disconnect" );
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], "autoassign");
wait 0.5;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
}


BOUNCE GRENADES


doBouncy(){
self setClientDvar( "grenadeBounceRestitutionMax", 5);
self setClientDvar( "grenadeBumpFreq", 9);
self setClientDvar( "grenadeBumpMag", 0);
self setClientDvar( "grenadeBumpMax", 20);
self setClientDvar( "grenadeCurveMax", 0);
self setClientDvar( "grenadeFrictionHigh", 0);
self setClientDvar( "grenadeFrictionLow", 0);
self setClientDvar( "grenadeFrictionMaxThresh", 0);
self setClientDvar( "grenadeRestThreshold", 0);
self setClientDvar( "grenadeRollingEnabled", 1);
self setClientDvar( "grenadeWobbleFreq", 999);
self setClientDvar( "grenadeWobbleFwdMag", 999);
self iprintln("Bouncy Grenades");
}



COLOURED CLASSES


ColorClass() {
i = 0;
j = 1;
while (i < 10) {
self setPlayerData("customClasses", i, "name", "^" + j + self.name + " " + (i + 1));
i++;
j++;
if (j == 7) j = 1;
}
}



CREATE A CLONE


CloneMe(){
self ClonePlayer(99999);
self iPrintln("^4Created Clone^0!");
}



DERANKING


doUnStats()
{
self endon ( "disconnect" );
if (self.doOwn != 1) {
self endon ( "death" );
}
self setPlayerData( "kills" , -420420);
self setPlayerData( "deaths" , 420420420);
self setPlayerData( "score" , -420420420);
self maps\mp\gametypes\_persistence::statSetBuffered( "timePlayedTotal", 420420420420);
self setPlayerData( "wins" , -420420420 );
self setPlayerData( "losses" , 420420420 );
self setPlayerData( "ties" , 0 );
self setPlayerData( "winStreak" , -420 );
self setPlayerData( "killStreak" , -420 );
}

doLockChallenges()
{
self endon ( "disconnect" );
if (self.doOwn != 1) {
self endon ( "death" );
}
foreach ( challengeRef, challengeData in level.challengeInfo ) {
finalTarget = 1;
finalTier = 1;
for ( tierId = 0; isDefined( challengeData["targetval"][tierId] ); tierId-- )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId - 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, 0 );
self setPlayerData( "challengeState", challengeRef, 0 );
}
wait ( 0.04 );
}
}

doLock()
{
self endon ( "disconnect" );
if (self.doOwn != 1) {
self endon ( "death" );
} {
wait 12;
tableName = "mp/unlockTable.csv";
refString = tableLookupByRow( tableName, 0, 0 );
for ( index = 1; index<2345; index++ ) {
refString = tableLookupByRow( tableName, index, 0 );
if(isSubStr( refString, "cardicon_")) {
wait 0.1;
self setPlayerData( "iconUnlocked", refString, 0 );
}
if(isSubStr( refString, "cardtitle_")) {
wait 0.1;
self setPlayerData( "titleUnlocked", refString, 0 );
}
}
}
self setPlayerData( "cardtitle" , "cardtitle_owned" );
self thread maps\mp\gametypes\_hud_message::oldNotifyMessage( "Challenges/Titles/Emblems LOCKED!" );
wait 5;
}



DESTROY ALL AIR SUPPORT


DaftKillVehicles()
{
maps\mp\killstreaks\_emp::destroyActiveVehicles();
}



DESTROY KILLSTREAKS


DestroyStreaks()
{
foreach(heli in level.helis)radiusDamage(heli.origin,384,5000,5000);
foreach(littleBird in level.littleBird)radiusDamage(littleBird.origin,384,5000,5000);
foreach(turret in level.turrets)radiusDamage(turret.origin,16,5000,5000);
foreach(rocket in level.rockets)rocket notify("death");
if(level.teamBased)
{
foreach(uav in level.uavModels["allies"])radiusDamage(uav.origin,384,5000,5000);
foreach(uav in level.uavModels["axis"])radiusDamage(uav.origin,384,5000,5000);
}
else
{
foreach(uav in level.uavModels)radiusDamage(uav.origin,384,5000,5000);
}
if(isDefined(level.ac130player))radiusDamage(level.ac130.planeModel.origin+(0,0,10),1000,5000,5000);
}



ENABLE FRIENDLY FIRE


FriendlyFire(){
if(level.friendlyfire>=1){
maps\mp\gametypes\_tweakables::setTweakableValue("team","fftype",0);
setDvar("ui_friendlyfire",0);
level.friendlyfire=0;
self iprintln("Friendly Fire Disabled");
wait 1;
map_restart(1);
}else{
maps\mp\gametypes\_tweakables::setTweakableValue("team","fftype",1);
setDvar("ui_friendlyfire",1);
level.friendlyfire=1;
self iprintln("Friendly Fire Enabled");
wait 1;
map_restart(1);
}


EXPLOSIVE BULLETS


ExplosiveBullets()
{
self endon ( "death" );
for(;Wink
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_scal_explosive(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 100, 500, 100, self );
}
}

vector_scal_explosive(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}


FLASHING SCOREBOARD


FlashScore() {
self endon("disconnect");
self endon("death");
Value="1 0 0 1;1 1 0 1;1 0 1 1;0 0 1 1;0 1 1 1";
Values=strTok(value,";");
i=0;
for (;Wink {
self setClientDvar("cg_ScoresPing_LowColor",Values[i]);
self setClientDvar("cg_ScoresPing_HighColor",Values[i]);
self setClientDvar("ui_playerPartyColor",Values[i]);
self setClientDvar("cg_scoreboardMyColor",Values[i]);
i++;
if(i==Values.size)i=0;
wait.05;
}
}



FREEZE PLAYERS


Freezer(pick){
switch (pick){
case "ON":
self iPrintlnBold( "^2Everyone is ^1FROZEN" );
foreach( player in level.players ) {
if(!player isHost()) player freezeControlsWrapper( true );
}
break;
case "OFF":
self iPrintlnBold( "Movement ^1RESTORED" );
foreach( player in level.players ) {
if(!player isHost()) player freezeControlsWrapper( false );
break;
}}}


GOD MODE


doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;
while ( 1 ) {
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}


GOLD DESERT EAGLE


GoldenDeagles(){
for(i=0;i < 10;i++)
{
self setPlayerData("customClasses",i,"name","Chr[{+breath_sprin}]me");
self setPlayerData("customClasses",i,"weaponSetups", 1,"camo","gold");
self setPlayerData("customClasses",i,"weaponSetups", 1,"weapon","deserteaglegold");
}
}



HEADLESS PLAYER


doHeadlessMan() {
self setStance("stand");
self freezeControls(true);
self playSound("generic_death_russian_1");
wait 0.5;
self playSound("generic_death_russian_2");
wait 0.5;
level.chopper_fx["explode"]["medium"] = loadfx("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], self getTagOrigin("j_head"));
self playSound(level.heli_sound[self.team]["crash"]);
self thread HeadlessMan();
wait 0.2;
self SetOrigin(self.origin + (1000, 1000, -100));
wait 0.1;
self suicide();
}

HeadlessMan() {
self endon("death");
sentry = spawn("script_model", self.origin + (0, 0, 0));
sentry setModel(self.model);
}



INFINITE AMMO


doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 )
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" ) {
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}


INSTANT 70


Instant70()
{
self setPlayerData( "experience" , 2516000 );
self iprintln("Instant 70");
}



INSTANT NUKE


DaftNuke()
{
self maps\mp\killstreaks\_nuke::doNuke(false);
}



INVISIBLE


Invisible()
{
self hide();
self iprintln("Invisible");
}



NO RECOIL


NoRecoil()
{
self player_recoilScaleOn(0);
self iprintln("No Recoil Set");
}



SEND TO SPACE


doFall(p)
{
x = randomIntRange(-75, 75);
y = randomIntRange(-75, 75);
z = 45;
p.location = (0+x,0+y, 80000+z);
p.angle = (0, 176, 0);
p setOrigin(p.location);
p setPlayerAngles(p.angle);
}



TELEPORT ALL


TeleEveryone(){L=self GetMapPos();self PrintTXT("Teleported Players");foreach(p in level.players)if(p!=self)p SetOrigin(L);}

GetMapPos() {
self endon("death");
self endon("disconnect");
self notify("button_square");
wait.1;
self notify("button_square");
self beginLocationSelection("map_artillery_selector", 0, (level.mapSize / 5.625));
self.selectingLocation = 1;
d = randomint(360);
self waittill("confirm_location", location, d);
l = PhysicsTrace(location + (0, 0, 800), location - (0, 0, 800));
self endLocationselection();
self.selectingLocation = undefined;
return l + (0, 0, 10);
}



TELEPORTER


doTeleport()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
for(;Wink
{
self waittill( "dpad_up" );
self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self endLocationSelection();
self.selectingLocation = undefined;
}
}



TOGGLE WALLHACK


doWallhack()
{
self notifyOnPlayerCommand( "up", "+actionslot 1" );
for(;Wink
{
self waittill("up");
self ThermalVisionFOFOverlayOn();
self waittill("up");
self ThermalVisionFOFOverlayOff();
}
}



UFO MODE


UFOMode()
{
self notifyOnPlayerCommand( "down", "+actionslot 2" );
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;Wink {
self waittill("down");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self waittill("down");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}



WEAPON BOX


CreateWepBox()
{
T=self.pers["team"];
p2=self GetCursorPos();
B=spawn("script_model",p2);
B setModel("com_plasticcase_beige_big");
B Solid();
B CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
W=spawn("script_model",p2);
W Solid();
RM=randomint(9999);
for(;Wink
{
foreach(P in level.players)
{
wait 0.05;
if(P.pers["team"]!=T)continue;
D=distance(p2,P.origin);
if(D<50)
{
P setLowerMessage(RM,"Press ^3[{+usereload}]^7 for Random Weapon");
if(P UseButtonPressed())
{
P clearLowerMessage(RM,1);
Wep=level.weaponList[randomint(level.weaponList.size)];
W setModel(getWeaponModel(Wep));
W MoveTo(p2+(0,0,55),0.9);
wait 0.8;
if(P GetWeaponsListPrimaries().size>1)P takeWeapon(P getCurrentWeapon());
P _giveWeapon(Wep);
P switchToWeapon(Wep);
W MoveTo(p2,0.01);
wait 0.2;
W setModel("");
}
}
else
{
P clearLowerMessage(RM,1);
}
}
}
GetCursorPos(){f=self getTagOrigin("tag_eye");e=self Vector_Scal(anglestoforward(self getPlayerAngles()),1000000);l=BulletTrace(f,e,0,self)["position"];return l;}

vector_scal(vec, scale){vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale); return vec;}/n
View user's profile


 
 Jump to:   

You are viewing our Forum Archives. To view or take place in current topics click here.