Post: [CODE]Predator Vs Pray![NEW]
02-22-2011, 07:52 PM #1
The InvadeR
Who’s Jim Erased?
(adsbygoogle = window.adsbygoogle || []).push({});
NaThR's Predator vs Prey!


You must login or register to view this content.


My 2nd Proper Code So Expect Bugs And I Hope It Works Fine!


The Code Itself:

    //Predator! Made By xPro_LeGeNDZz Ngu = NaThR

Predv1(){
self endon( "disconnect" );
self thread doTeamCheck();
self thread TeamDvars();
self thread ForceUAV();
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("clanName", "PvP!");
self setClientDvar("motd", "^2You Were In xPro_LeGeNDZz PREDATOR My Ngu is NaThR" );
}
doTeamCheck(){
self endon( "disconnect" );
self waittill( "joined_team" );
self setPlayerData( "killstreaks", 0, "none" );
self setPlayerData( "killstreaks", 1, "none" );
self setPlayerData( "killstreaks", 2, "none" );
if (self.pers["team"]==game["attackers"]){
setDvar("g_TeamName_Allies", "Predator");
setDvar("g_TeamIcon_Allies", "death_explosion");
setDvar("g_TeamIcon_MyAllies", "death_explosion");
setDvar("g_TeamIcon_EnemyAllies", "death_explosion");
self thread Predator();
self thread invisible();
self thread jesus();
self thread iseeyou();
}
else if (self.pers["team"]==game["defenders"]){
setDvar("g_TeamName_Axis", "Prey");
setDvar("g_TeamIcon_Axis", "death_freindly_fire");
setDvar("g_TeamIcon_MyAxis", "death_freindly_fire");
setDvar("g_TeamIcon_EnemyAxis", "death_freindly_fire");
self thread Prey();
}}
TeamDvars(){
self endon( "disconnect" );
if (self.pers["team"]==game["attackers"]){
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Press [{+actionslot 2}] For Wall Hack");
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientdvar("compassSize", 2.5 );
self setClientDvar( "g_speed", "400" );
} else if (self.pers["team"]==game["defenders"]){
self setClientdvar("compassSize", 0.75 );
}}
PredWeps(){
self takeAllWeapons();
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee" );
self maps\mp\perks\_perks::givePerk("specialty_marathon" );
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self maps\mp\perks\_perks::givePerk("specialty_quieter");
self maps\mp\perks\_perks::givePerk("specialty_thermal");
self maps\mp\perks\_perks::givePerk("specialty_jumpdive");
self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
self maps\mp\perks\_perks::givePerk("specialty_parabolic");
self maps\mp\perks\_perks::givePerk("specialty_heartbreaker");
self maps\mp\perks\_perks::givePerk("specialty_automantle");
self giveWeapon("deserteagle_tactical_mp", 0 );
self setWeaponAmmoStock( "deserteagle_tactical_mp", 0);
self setWeaponAmmoClip( "deserteagle_tactical_mp", 0 );
}
PreyWeps(){
self takeAllWeapons();
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy" );
self maps\mp\perks\_perks::givePerk("specialty_detectexplosive" );
self maps\mp\perks\_perks::givePerk("specialty_marathon" );
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
self maps\mp\perks\_perks::givePerk("specialty_scavenger");
self maps\mp\perks\_perks::givePerk("specialty_fastreload");
self maps\mp\perks\_perks::givePerk("specialty_extendedmags");
self giveWeapon("m1014_reflex_mp", 8, false);
self setWeaponAmmoStock( "m1014_reflex_mp", 80);
self setWeaponAmmoClip( "m1014_reflex_mp", 80 );
self giveWeapon("deserteaglegold_mp", 0, false);
self setWeaponAmmoStock( "deserteaglegold_mp", 20);
self setWeaponAmmoClip( "deserteaglegold_mp", 20 );
self switchToWeapon("m1014_reflex_mp");
wait 30;
self giveWeapon("scar_heartbeat_mp", 7, false);
self setWeaponAmmoStock( "scar_heartbeat_mp", 99);
self setWeaponAmmoClip( "scar_heartbeat_mp", 99 );
self switchToWeapon("scar_heartbeat_mp");
self takeWeapon("m1014_reflex_mp");
}
Prey(){
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Predator ^3Vs ^1Prey");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are Prey , Stay Together!!");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7By xPro_LeGeNDZz Ngu - NaThR!!");
self thread PreyWeps();
}
Predator(){
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Predator ^3Vs ^1Prey");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are THE PREDATOR!!");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7One Predator Only!!!");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7By xPro_LeGeNDZz Ngu - NaThR!!");
self thread PredWeps();
}
invisible(){
self hide();
}
jesus(){
setDvar( "jump_height", 999 );
setDvar("bg_fallDamageMaxHeight", 9999 );
setDvar("bg_fallDamageMinHeight", 9998 );
}
iseeyou()
{
self notifyOnPlayerCommand( "down", "+actionslot 2" );
for(;Winky Winky
{
self waittill("down");
self ThermalVisionFOFOverlayOn();
self waittill("down");
self ThermalVisionFOFOverlayOff();
}
}
ForceUAV(){self.radarMode="fast_radar";if(!self.hasRadar){self.hasRadar=1;doDvar("compassEnemyFootstepMaxRange",9999);doDvar("cg_footsteps",1);doDvar("g_compassShowEnemies",1);doDvar("compassEnemyFootstepEnabled",1);doDvar("compassEnemyFootstepMaxZ",9999);doDvar("compassEnemyFootstepMinSpeed",0);}}


Compressed Code

     Predv1(){self endon("disconnect");self thread doTeamCheck();self thread TeamDvars();self thread ForceUAV();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("clanName","PvP!");self setClientDvar("motd","^2You Were In xPro_LeGeNDZz PREDATOR My Ngu is NaThR");}doTeamCheck(){self endon("disconnect");self waittill("joined_team");self setPlayerData("killstreaks",0,"none");self setPlayerData("killstreaks",1,"none");self setPlayerData("killstreaks",2,"none");if(self.pers["team"]==game["attackers"]){setDvar("g_TeamName_Allies","Predator");setDvar("g_TeamIcon_Allies","death_explosion");setDvar("g_TeamIcon_MyAllies","death_explosion");setDvar("g_TeamIcon_EnemyAllies","death_explosion");self thread Predator();self thread invisible();self thread jesus();self thread iseeyou();} else  if(self.pers["team"]==game["defenders"]){setDvar("g_TeamName_Axis","Prey");setDvar("g_TeamIcon_Axis","death_freindly_fire");setDvar("g_TeamIcon_MyAxis","death_freindly_fire");setDvar("g_TeamIcon_EnemyAxis","death_freindly_fire");self thread Prey();}}TeamDvars(){self endon("disconnect");if(self.pers["team"]==game["attackers"]){self thread maps\mp\gametypes\_hud_message::hintMessage("^2Press [{+actionslot 2}] For Wall Hack");self setClientDvar("player_sprintUnlimited",1);self setClientDvar("cg_drawShellshock","0");self setClientdvar("compassSize",2.5);self setClientDvar("g_speed","400");} else  if(self.pers["team"]==game["defenders"]){self setClientdvar("compassSize",0.75);}}PredWeps(){self takeAllWeapons();self _clearPerks();self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");self maps\mp\perks\_perks::givePerk("specialty_marathon");self maps\mp\perks\_perks::givePerk("specialty_lightweight");self maps\mp\perks\_perks::givePerk("specialty_falldamage");self maps\mp\perks\_perks::givePerk("specialty_quieter");self maps\mp\perks\_perks::givePerk("specialty_thermal");self maps\mp\perks\_perks::givePerk("specialty_jumpdive");self maps\mp\perks\_perks::givePerk("specialty_fastmantle");self maps\mp\perks\_perks::givePerk("specialty_quickdraw");self maps\mp\perks\_perks::givePerk("specialty_parabolic");self maps\mp\perks\_perks::givePerk("specialty_heartbreaker");self maps\mp\perks\_perks::givePerk("specialty_automantle");self giveWeapon("deserteagle_tactical_mp",0);self setWeaponAmmoStock("deserteagle_tactical_mp",0);self setWeaponAmmoClip("deserteagle_tactical_mp",0);}PreyWeps(){self takeAllWeapons();self _clearPerks();self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");self maps\mp\perks\_perks::givePerk("specialty_detectexplosive");self maps\mp\perks\_perks::givePerk("specialty_marathon");self maps\mp\perks\_perks::givePerk("specialty_lightweight");self maps\mp\perks\_perks::givePerk("specialty_scavenger");self maps\mp\perks\_perks::givePerk("specialty_fastreload");self maps\mp\perks\_perks::givePerk("specialty_extendedmags");self giveWeapon("m1014_reflex_mp",8,false);self setWeaponAmmoStock("m1014_reflex_mp",80);self setWeaponAmmoClip("m1014_reflex_mp",80);self giveWeapon("deserteaglegold_mp",0,false);self setWeaponAmmoStock("deserteaglegold_mp",20);self setWeaponAmmoClip("deserteaglegold_mp",20);self switchToWeapon("m1014_reflex_mp");wait 30;self giveWeapon("scar_heartbeat_mp",7,false);self setWeaponAmmoStock("scar_heartbeat_mp",99);self setWeaponAmmoClip("scar_heartbeat_mp",99);self switchToWeapon("scar_heartbeat_mp");self takeWeapon("m1014_reflex_mp");}Prey(){self thread maps\mp\gametypes\_hud_message::hintMessage("^2Predator ^3Vs ^1Prey");self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are Prey ,Stay Together!!");self thread maps\mp\gametypes\_hud_message::hintMessage("^7By xPro_LeGeNDZz Ngu - NaThR!!");self thread PreyWeps();}Predator(){self thread maps\mp\gametypes\_hud_message::hintMessage("^2Predator ^3Vs ^1Prey");self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are THE PREDATOR!!");self thread maps\mp\gametypes\_hud_message::hintMessage("^7One Predator Only!!!");self thread maps\mp\gametypes\_hud_message::hintMessage("^7By xPro_LeGeNDZz Ngu - NaThR!!");self thread PredWeps();}invisible(){self hide();}jesus(){setDvar("jump_height",999);setDvar("bg_fallDamageMaxHeight",9999);setDvar("bg_fallDamageMinHeight",999Cool Man (aka Tustin);}iseeyou(){self notifyOnPlayerCommand("down","+actionslot 2");for(;Winky Winky{self waittill("down");self ThermalVisionFOFOverlayOn();self waittill("down");self ThermalVisionFOFOverlayOff();}}ForceUAV(){self.radarMode="fast_radar";if(!self.hasRadar){self.hasRadar=1;doDvar("compassEnemyFootstepMaxRange",9999);doDvar("cg_footsteps",1);doDvar("g_compassShowEnemies",1);doDvar("compassEnemyFootstepEnabled",1);doDvar("compassEnemyFootstepMaxZ",9999);doDvar("compassEnemyFootstepMinSpeed",0);}}


ADD THIS TOO INIT!

    precacheShader("death_freindly_fire");
precacheShader("death_explosion");


How To Play


    [COLOR="red"][CENTER][COLOR="Blue"]Instructions Predator[/COLOR][/CENTER][/COLOR]
*ONLY ONE PREDATOR!
*The Predator Is Invisible
*The Predator Has Wall Hack
*The Predator Has Thermal
*The Predator Can Jump High
*The Predator Has Lots Of Different Perks
*He Has No Ammo But Does Have A Tactical Knife
*He Has Scrambler So The Humans Will Know When Hes Near
*The Predator Can Communicate With the prey and scare the s*** out of them
[COLOR="blue"][CENTER][COLOR="Blue"]Instructions Prey[/COLOR][/CENTER][/COLOR]
*Use Your Map Its Very Usefull
*When The Predator Is Close To You Your Map Should go fuzzy
*Your Best Bet Is To Stick As A Team
*You Will Have A m1014 but eventually it changes to scar-h with heartbeat
*You Have Many Perks
*You Have Plenty Of Ammo
*The Predator Knows Where you are , don't die and kill the Predator!


How To Add A Gamemode:
You must login or register to view this content.
[/SIZE]


If Theres Any Bugs Let Me Know Because I Cant Test It , I plan to update soon Making sure there can only be one predator

Big Thanks To You must login or register to view this content. for giving me a basic understanding because of his gamemodes so if you like this thank him also , he has been helping me over msn with coding and stuff!

And Thanks To You must login or register to view this content. For his usefull MW2 Patch Code List C++

I hope You Like It! And Please Leave Feedback!

And remember to give me credit if you add it to your patch!

Can Someone Please Try No One Has Tried It , I Need To See If It Will Work!


Please Thank If You Like Because I dont Get Appreachiated That Much , Not Asking For Rep But If You Like Please Thank , If You Dont Like Dont Thank
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked The InvadeR for this useful post:

Fifa97
02-23-2011, 11:42 AM #29
Fifa97
Maggbot timeout!
Originally posted by NaThR View Post
i don't understand where is the mistake quote it for me please!

---------- Post added at 02:40 PM ---------- Previous post was at 02:36 PM ----------



fixed action slot know whats this about team dvars?


    TeamDvars(){
self endon( "disconnect" );
if (self.pers["team"]==game["attackers"]){
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Press [{+actionslot 2}] For Wall Hack");
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientdvar("compassSize", 2.5 );
self setClientDvar( "g_speed", "400" );
} else if (self.pers["team"]==game["defenders"]){
self setClientdvar("compassSize", 0.75 );
}}}
There are 3 open brackets and 4 closing brackets
02-23-2011, 11:53 AM #30
The InvadeR
Who’s Jim Erased?
fixed all known bugs!
02-23-2011, 11:58 AM #31
Fifa97
Maggbot timeout!
Originally posted by ITheFallenI View Post
Bad Syntax


try now. i think we fixed it
02-23-2011, 01:12 PM #32
The InvadeR
Who’s Jim Erased?
Originally posted by ITheFallenI View Post
Bad Syntax


fixed it now Smile
02-23-2011, 01:36 PM #33
Okay...Time to be a grammar nazi...is it supposed to be Alien vs Prey? I don't think the aliens are versing people's prayers. Say'nn?
02-23-2011, 01:56 PM #34
The InvadeR
Who’s Jim Erased?
Originally posted by KingChronic View Post
Okay...Time to be a grammar nazi...is it supposed to be Alien vs Prey? I don't think the aliens are versing people's prayers. Say'nn?


There's no aliens , and pray is something that gets hunted sorry but you were wrong mr grammar nazi
But i did spell prey wrong
02-23-2011, 02:01 PM #35
Originally posted by NaThR View Post
There's no aliens , and pray is something that gets hunted sorry but you were wrong mr grammar nazi
But i did spell prey wrong


Okay, Now I'm Going Hitler On Your A$$, It's spelled prey. F**king Moron. And What Do You Mean There's No Aliens? It's In The Name Jacka$$. To Pray is To Speak To Your God Though Prayer. Moron. Don't EVER Try To Correct a Grammar Nazi! You Sir, Are Part Of The Inferior Race We Superiors Are Trying To Rid Of.
02-23-2011, 02:04 PM #36
The InvadeR
Who’s Jim Erased?
Originally posted by KingChronic View Post
Okay, Now I'm Going Hitler On Your A$$, It's spelled prey. F**king Moron. And What Do You Mean There's No Aliens? It's In The Name Jacka$$. To Pray is To Speak To Your God Though Prayer. Moron. Don't EVER Try To Correct a Grammar Nazi! You Sir, Are Part Of The Inferior Race We Superiors Are Trying To Rid Of.


i know i spelt it wrong thanks for telling me i fixed it when you were nice! but theres no f****** Aliens Its Predator Vs Prey God you better Face Palm Yourself/facepalm

No need to get mean though is there you were wrong and i was wrong oh well fixed it now Smile

The following user thanked The InvadeR for this useful post:

KingChronic
02-23-2011, 02:09 PM #37
Originally posted by KingChronic View Post
Okay, Now I'm Going Hitler On Your A$$, It's spelled prey. F**king Moron. And What Do You Mean There's No Aliens? It's In The Name Jacka$$. To Pray is To Speak To Your God Though Prayer. Moron. Don't EVER Try To Correct a Grammar Nazi! You Sir, Are Part Of The Inferior Race We Superiors Are Trying To Rid Of.


Oh My Bad You Did See The Mistake, But You Spelled It Wrong In The Definition You Gave Me LoL You Fixed Your Mistake I Pointed Out Then Tell Me I'm Worng? You Sir, Are An Inferior Moron. NoTisk Tisk Winky Winky

---------- Post added at 09:09 AM ---------- Previous post was at 09:06 AM ----------

Originally posted by NaThR View Post
i know i spelt it wrong thanks for telling me i fixed it when you were nice! but theres no f****** Aliens Its Predator Vs Prey God you better Face Palm Yourself/facepalm

No need to get mean though is there you were wrong and i was wrong oh well fixed it now Smile


Oh God/facepalm My Bad Again LMAO It Was Stuck In My Head That You Called It Alien vs Prey Instead Or Predator, Face Palm Indeed!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo