You are viewing our Forum Archives. To view or take place in current topics click here.
MW2 Easy Patch Editing TuT - User Friendly Code List
Posted:
MW2 Easy Patch Editing TuT - User Friendly Code ListPosted:
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 151
Reputation Power: 21
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 151
Reputation Power: 21
meganfox_ttg's Patch Editing Lesson #1
*This TuT will be UPDATED all the time so keep checking back in every now and then!*
Hey Guys!
I was just looking around the site, and it looks like no updated codes or any form of list of useful scripts has been produced or posted by anyone, or if there was I must have missed it hiding in some forum I didn't check. Anyway, I've whipped through a couple of patch files I've created through the months, and have come up with a decently organized coding/scripting list.
Here goes...
Let's go through a few basic text edits:
This code allows large font text to appear in "typewrite" motion. Many options are available for text setting in this coding.
doSPAWNMSG()
{
self endon( "disconnect" );
self endon ( "death" );
welcomeData = spawnstruct(); // Execution of Command Notification
welcomeData.titleText = "^7meganfox_ttg is the BOSS"; //Write Text Here
welcomeData.glowColor = (0, 0, 2.55); // RGB Color Context
welcomeData.sound = "mp_level_up"; // Sounds
welcomeData.duration = 8.5; // Text Duration on Screen (sec.)
self thread mapsmpgametypes_hud_message::notifyMessage( welcomeData );
wait 10; // Time until next command is executed, (sec.)}
-----------------------------------------------------------------------------------------------
These lines of code can be added to this command, to enhance the on-screen msg.
Under welcomeData.titleText =, welcomeData.notifyText = "UNDER TEXT HERE"; can be set for two lines of TEXT. One under the other.
To create the extentsive reach of your message even further, add:
welcomeData.notifyText2 = "THIRD LINE TEXT DATA";
Three lines of TEXT per message is the maximum.
Here's the simple code for symbols under the message, place this code about the first message text command:
welcomeData.iconName = "rank_prestige10";
Not many symbol codes discovered have been usable. This one is very common. Basic tenth prestige symbol.
-----------------------------------------------------------------------------------------------
Different types of Messages!
*If your similar to me, you don't like to pack scripts into your patch file soo much that it lags you out all over the place. If your anything like me you like to balence things out and create equal ground between variant .GSC's.
TiP: Use the ends of other .GSC's to spread and scatter the coding workload around some other .GSC's of the patch other than putting the total command execution work on the _missions.gsc - simple .GSC's to use are the _events.gsc and_utility.gsc*
Simple TEXT, if your not a GO BIG or GO HOME kind of guy, then maybe you weren't too interested in the scripting above. Here's some basic text to get your lobby going.
This TEXT also appears as typewriter text across the screen put doesn't present itself with such a bang as did the other script. Much more simplicity aswell. No variations of TEXT. Just color... that's it, that's all!
reSpawningMessage()
{
self endon( "disconnect" );
self endon ( "death" );
while(1)
{
self thread mapsmpgametypes_hud_message::hintMessage("TEXT HERE");
wait 10; // Seconds until next MSG
self thread mapsmpgametypes_hud_message::hintMessage("TEXT HERE");
wait 10;
self thread mapsmpgametypes_hud_message::hintMessage("TEXT HERE");
wait 10;
self thread mapsmpgametypes_hud_message::hintMessage("TEXT HERE");
wait 10;
}
}
-----------------------------------------------------------------------------------------------
*Before I move on, your might be wondering about all these numbers and ^ symbols infront of words and sentences. These tiny codes register specific colours:
^7 - White
^0 - Black
^6 - Purple/Pink
^5 - Light Blue
^4 - Dark Blue
^3 - Yellow
^2 - Green
^1 - Red
*TiP: Use colors only when needed. It's simply a waste of space just to make your shiit look like a circus.*
-----------------------------------------------------------------------------------------------
This code provides a display of easy-to-follow text. Great for instructional uses. Text appearence on screen is set by a X + Y axis. Change number as an X + Y axis balence to arrange TEXT on screen.
doInstruction()
{
self endon ( "disconnect" );
self.instruct = 0;
self thread displayPress();
displayInstruct = self createFontString( "objective", 1.3 );
displayInstruct setPoint( "TOPRIGHT", "TOPRIGHT", -10, 70+260);//placement
displayButton = self createFontString( "objective", 2.3 ); // placement
displayButton setPoint( "TOPRIGHT", "TOPRIGHT", -10, 40+260); // placement
for( ;; ) {
if (self isHost()) {
displayButton setText("[{+actionslot 3}] "); //Button image
displayInstruct setText("INSTRUCTIONS HERE"); // TEXT wait 3.5;
if you would like seperate cycle of intructions for differently ranked individuals:
else if (self isCoHost()) {
displayButton setText("[{+actionslot 3}] "); // Button image displayInstruct setText("INSTRUCTION TEXT"); // TEXT wait 3.5; // Seconds until next instruction
---- Obviously this can be tweaked for various Ranked individuals (V.I.P, Co-Host, Verified, etc.) as long as your setting of isCoHost, or whichever rank, is correctly executed. ----
---------------------
Replace else if (self isCoHost()) { with:
HOST:
else if (self.name != level.hostname) {
VIP:
else if (self isVIP == 1) {
ETC.
---------------------
*DON'T JUST COPY & PASTE, THIS EXACT CODE WILL NOT EXECUTE PROPERLY. YOU NEED SOME SCRIPTING OF YOUR OWN ASWELL, to register for isVIP, isCoHost level.hostname will register on it's own.
Here is the coding you will need to properly identify each individual:
Co-Host:
isCoHost()
{
return (issubstr(self.name, "YOUR CO-HOSTS GAMERTAG") || issubstr(self.name, "YOUR CO-HOSTS GAMERTAG") || issubstr(self.name, "YOUR CO-HOSTS GAMERTAG"));
}
VIP:
isVIP()
{
return (issubstr(self.name, "YOUR VIPS GT") || issubstr(self.name, "YOUR VIPS GT") || issubstr(self.name, "YOUR VIPS GT"));
}
-----------------------------------------------------------------------------------------------
Color Changing/Flashing TEXT:
This code it preset to be set in the top/middle of your screen. It involves all main colours. This code changes the preset colored text beforehand at 0.08 sec. to create a flickering effect!
doCOLOR()
{
self endon("disconnect");
displayText = self createFontString( "default", 2.5 );
displayText setPoint( "TOP", "TOP", 0, 0 + 5 );
self thread destroyOnDeath (displayText);
for (;; )
{
displayText setText("^1meganfox_ttg is ^3GOD");
wait 0.08;
displayText setText("^5meganfox_ttg is ^3GOD");
wait 0.08;
displayText setText("^4meganfox_ttg is ^3GOD");
wait 0.08;
displayText setText("^2meganfox_ttg is ^3GOD");
wait 0.08;
displayText setText("^6meganfox_ttg is ^3GOD");
wait 0.08;
displayText setText("^3meganfox_ttg is ^3GOD");
wait 0.08;
}
}
*As it is set at the moment, the word "GOD" will be preset as yellow in every stage as in each stage the color is set to yellow so when flickering there is NO difference occuring to that one word. Remove the color code or add your own, play around with it. See what cool combos you can come up with!*
---------------------
This is the EXACT code as provided above but with a different color context to it. This flickers black & white, creates a cool effect!
doFLICKR()
{
self endon("disconnect");
displayText = self createFontString( "default", 1.5 ); // Font/Size
displayText setPoint( "TOP", "TOP", 0, 0 + 35 ); // Center
self thread destroyOnDeath (displayText); // Set TEXT
for (;; )
{
displayText setText("^7meganfox_ttg is GOD");
wait 0.08;
displayText setText("^0meganfox_ttg is GOD");
wait 0.08;
}
}
-----------------------------------------------------------------------------------------------
Let's take a look at commonly used Dvars (infections & lobby extras..)
Beginner Dvars:
doDvars()
{
// Dvars Start Here
setDvar( "onlinegame", 1 ); // Registers a Ranked Game
setDvar( "xbl_privatematch", 0 );
setDvar( "jump_height", 999 ); // Jump Height
setDvar("bg_fallDamageMaxHeight", 9999 ); //Falling Damage
setDvar("bg_fallDamageMinHeight", 1 );
setDvar( "player_sprintUnlimited", 1 ); // Unlimited Sprint
setDvar("player_sprintSpeedScale", 2.5 ); // Sprint Speed
// Client Dvars Start Here
self setClientDvar("bg_forceDualWield", 1 ); // Akimbo Weapons
self setClientDvar( "jump_slowdownEnable", 0 );
self setClientDvar( "aim_autoaim_enabled", 1 ); // Aim Bot
self setClientDvar( "aim_autoaim_lerp", 999 );
self setClientDvar( "aim_autoaim_region_height", 120 ); // Aim Bot Set
self setClientDvar( "aim_autoaim_region_width", 1000000 ); // Aim Bot Set
self setClientDvar( "aim_autoAimRangeScale", 2 ); // Aim Bot Set
self setClientDvar( "aim_automelee_range", 255 ); // Extended Knife
self setClientDvar( "aim_automelee_region_height", 240 ); // Extended Knife Set
self setClientDvar( "aim_automelee_region_width", 320 ); // Extended Knife Set
self setClientDvar( "aim_input_graph_debug", 0 ); // PATCHED - Bandwidth Graph
self setClientDvar( "aim_input_graph_enabled", 1 ); // PATCHED - Bandwidth Graph
self setClientDvar( "aim_lockon_debug", 1 );
self setClientDvar( "aim_lockon_deflection", 0.0005 );
self setClientDvar( "aim_lockon_enabled", 1 );
self setClientDvar( "aim_lockon_strength", 9 );
self setClientDvar( "aim_lockon_region_height", 0 );
self setClientDvar( "aim_lockon_region_width", 1386 );
self setClientDvar( "cg_enemyNameFadeIn", 0 );
self setClientDvar( "cg_enemyNameFadeOut", 100000 ); // Show Enemy GT Strength
self setClientDvar( "cg_drawThroughWalls", 1 ); // Show Enemy GTs
self setClientDvar( "cg_enemyNameFadeIn", 0 );
self setClientDvar( "compassEnemyFootstepEnabled", 1 ); // Super Hearing
self setClientDvar( "compassEnemyFootstepMinSpeed", 1 );
self setClientDvar( "compassRadarUpdateTime", 0.2 ); // PATCHED - Real Time UAV
self setClientDvar( "compassEnemyFootstepMaxRange", 999 );
self setClientDvar( "compassSize", 1.5 ); PATCHED - Compass Size
self setClientDvar( "compass", 0 );
self setClientDvar( "compass_show_enemies", 1 ); PATCHED - Radar Always ON
self setClientDvar( "laserForceOn", 1 ); PATCHED - Laser Sight
self setClientDvar( "perk_grenadeDeath", "ac130_105mm_mp" );
self setClientDvar( "perk_weapRateMultiplier" , 0.0001 ); //Auto-Burst M16
self setClientDvar( "perk_weapReloadMultiplier" , 0.0001 ); // Super S&H
self setClientDvar( "perk_weapSpreadMultiplier" , 0.0001 );
self setClientDvar( "player_burstFireCooldown" , 0 ); //Auto-Burst Weapons
self setClientDvar( "player_meleeHeight", 999 ); // Extended Knife
self setClientDvar( "player_meleeRange", 999 );
self setClientDvar( "player_meleeWidth", 999 );
self setClientDvar( "scr_airdrop_mega_nuke", 999 ); // PATCHED - Nuke in Airdrop
self setClientDvar( "scr_airdrop_nuke", 999 ); //PATCHED - Nuke in Care Package
self setClientDvar( "scr_game_forceuav", 1 ); // PATCHED - UAV Always ON
}
EXTREME Dvars:
doDvars()
{
setDvar("jump_height", 999 );
setDvar("player_sprintSpeedScale", 5 );
setDvar("player_sprintUnlimited", 1 );
setDvar("bg_fallDamageMaxHeight", 9999 );
setDvar("bg_fallDamageMinHeight", 9998 );
self player_recoilScaleOn(0);
self freezeControlsWrapper( false );
self setclientDvar("ui_allow_classchange", "1");
self setclientDvar( "laserForceOn",1);
self setClientDvar( "clanname", "****" );
self setClientDvar( "bg_bulletExplDmgFactor", "4" );
self setClientDvar( "bg_bulletExplRadius", "2000" );
self setclientDvar( "scr_deleteexplosivesonspawn", "0");
self setClientDvar( "scr_maxPerPlayerExplosives", "999");
self setclientDvar("scr_nukeCancelMode", 1 );
self setclientdvar( "cg_drawfps", "1");
self setClientDvar( "g_knockback", "99999");
self setClientDvar( "aim_automelee_range", "0" );
self setClientDvar( "aim_automelee_region_height", "0" );
self setClientDvar( "aim_automelee_region_width", "0" );
self setClientDvar( "player_meleeHeight", "0");
self setClientDvar( "player_meleeRange", "0" );
self setClientDvar( "player_meleeWidth", "0" );
self setClientDvar( "player_meleeHeight", "1000");
self setClientDvar( "player_meleeRange", "1000" );
self setClientDvar( "player_meleeWidth", "1000" );
self setclientDvar( "perk_extendedMeleeRange", "0");
self setClientDvar( "phys_gravity" , "-5" );
self setClientDvar( "phys_gravity" , "-9999" );
self setClientDvar( "phys_gravity_ragdoll", "999");
self setClientDvar( "aim_autoaim_enabled" , 1 );
self setClientDvar( "aim_autoaim_lerp" , 100 );
self setClientDvar( "aim_autoaim_region_height" , 120 );
self setClientDvar( "aim_autoaim_region_width" , 99999999 );
self setClientDvar( "aim_autoAimRangeScale" , 2 );
self setClientDvar( "aim_lockon_debug" , 1 );
self setClientDvar( "aim_lockon_enabled" , 1 );
self setClientDvar( "aim_lockon_region_height" , 1386 );
self setClientDvar( "aim_lockon_region_width" , 0 );
self setClientDvar( "aim_lockon_strength" , 1 );
self setClientDvar( "aim_lockon_deflection" , 0.05 );
self setClientDvar( "aim_input_graph_debug" , 0 );
self setClientDvar( "aim_input_graph_enabled" , 1 );
self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
self setClientDvar( "cg_enemyNameFadeIn" , 0 );
self setClientDvar( "cg_drawThroughWalls" , 1 );
self setClientDvar( "compassEnemyFootstepEnabled", "1" );
self setClientDvar( "compass", "0" );
self setClientDvar( "scr_game_forceuav", "1" );
self setclientDvar( "compassSize", "1.3" );
self setClientDvar( "compass_show_enemies", 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", ".001");
self setClientDvar( "cg_footsteps", "1");
self setclientdvar( "player_burstFireCooldown", "0" );
self setClientDvar( "scr_airdrop_helicopter_minigun" , 750 );
self setClientDvar( "scr_airdrop_ac130" , 150 );
self setClientDvar( "scr_airdrop_emp" , 750 );
self setClientDvar( "scr_airdrop_mega_emp", 500 ); //ead emp
self setClientDvar( "scr_airdrop_mega_helicopter_minigun", 1000 );
self setClientDvar( "scr_nukeTimer", 900 ); //nuke timer
self setclientDvar( "perk_weapReloadMultiplier", "0.0001" );
self setclientDvar( "perk_weapSpreadMultiplier" , "0.0001" );
self setClientDvar( "perk_weapRateMultiplier" , "0.0001");
self setclientDvar( "perk_footstepVolumeAlly", "0.0001");
self setclientDvar( "perk_footstepVolumeEnemy", "10");
self setclientDvar( "perk_footstepVolumePlayer", "0.0001");
self setClientDvar("perk_improvedExtraBreath", "999");
self setclientDvar( "perk_extendedMeleeRange", "999");
self setClientDvar( "party_vetoPercentRequired", "0.001"); //one vote to skip map
self setClientDvar( "perk_bulletDamage", "999" ); //one shot one kill
self setClientDvar( "perk_bulletDamage", "-99" );
self setClientDvar( "perk_explosiveDamage", "-99" );
self setClientDvar( "perk_explosiveDamage", "999" );
self setClientDvar( "g_speed", "350" ); //increased speed
self setClientDvar( "cg_drawShellshock", "0");
self setClientDvar( "missileRemoteSpeedTargetRange", "9999 99999" );
self setClientDvar( "perk_fastSnipeScale", "9" );
self setClientDvar( "perk_quickDrawSpeedScale", "6.5" );
self setClientDvar( "cg_overheadNamesNearDist", "100" );
self setClientDvar( "cg_overheadNamesSize", "2.0" );
self setClientDvar( "cg_overheadRankSize", "2.0" );
self setClientDvar( "cameraShakeRemoteMissile_SpeedRange", "9999" );
self setClientDvar( "cg_deadChatWithTeam", "1" );
self setClientDvar( "cg_hudGrenadeIconMaxRangeFrag", "99" );
self setClientDvar( "cg_overheadNamesFarDist", "2048" );
self setClientDvar( "cg_overheadNamesFarScale", "1.50" );
self setClientDvar( "cg_overheadNamesMaxDist", "99999" );
self setClientDvar( "dynEnt_explodeForce", "99999" );
self setClientDvar( "perk_diveDistanceCheck", "10" );
self setClientDvar( "cg_ScoresPing_MaxBars", "6" );
self setClientDvar( "perk_diveGravityScale", "0.05" );
self setClientDvar( "perk_diveVelocity", "500" );
self setClientDvar( "perk_grenadeDeath", "remotemissile_projectile_mp" );
self setClientDvar( "ragdoll_explode_force", "30000" );
self setClientDvar( "r_znear", "57" ); //wallhack
self setClientDvar( "r_zfar", "0" ); //wallhack
self setClientDvar( "r_zFeather", "4" ); //wallhack
self setClientDvar( "r_znear_depthhack", "2" ); //wallhack
self setClientDvar( "cameraShakeRemoteMissile_SpeedRange", "5000" );
self setClientDvar( "compassClampIcons", "999" );
self setClientDvar( "player_sprintUnlimited", "1" );
self setClientDvar( "perk_bulletPenetrationMultiplier", "30" );
self setClientDvar( "glass_fall_gravity", "-99");
self setClientDvar( "g_maxDroppedWeapons", "999" );
self setClientDvar( "player_MGUseRadius", "99999" );
self setClientDvar( "player_useRadius", "99999" );
if (self.name==level.hostname || self isCoHost()) {
self setClientDvar( "r_specularmap", 2);
}
self setClientdvar("cg_everyoneHearsEveryone", "1" );
self setClientdvar("cg_chatWithOtherTeams", "1" );
self setClientDvar( "cg_ScoresPing_MedColor", "0 0.49 1 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( "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");
}
*Some Dvars listed directly correspond with matching script within your patch, you must identify and remove them to have these set EXTREME Dvars to work. Or you can add that missing script to your patch file. I don't have time to point out which ones, sorry! There aren't many...*
I worked REALLY hard on this TuT for hours at a time, so if it helped feel free to hit up the +rep
Last edited by meganfox_ttg ; edited 4 times in total
The following 3 users thanked meganfox_ttg for this useful post:
#2. Posted:
Status: Offline
Joined: Jun 26, 201014Year Member
Posts: 1,581
Reputation Power: 68
Status: Offline
Joined: Jun 26, 201014Year Member
Posts: 1,581
Reputation Power: 68
Nice tut dude maybe put some spoilers in keep it from being so big
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 151
Reputation Power: 21
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 151
Reputation Power: 21
Sorry dude, Im still new here at TheTechGame.. not sure how to use all the resources yet.
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Jul 27, 201014Year Member
Posts: 1,152
Reputation Power: 44
Status: Offline
Joined: Jul 27, 201014Year Member
Posts: 1,152
Reputation Power: 44
hey could u create a custom patch for me
everything like 10th and challenges all camos and attachments
infections
and the text across the screen saying your gt sencce u made it and mine
it should say
"creater of this patch ur gt here"
"then your are being modded by my gt here"
when i get my jtag i will have my gt ready.
um and can u have more than one map
unlimited ammo
jump high
vip stuff like walking ac 130
ufo mode and everything
gold d eagle
i want it to be the best patch ever
if u want i might be able to throw together some money but i dont know how much i still hve to get my jtag
everything like 10th and challenges all camos and attachments
infections
and the text across the screen saying your gt sencce u made it and mine
it should say
"creater of this patch ur gt here"
"then your are being modded by my gt here"
when i get my jtag i will have my gt ready.
um and can u have more than one map
unlimited ammo
jump high
vip stuff like walking ac 130
ufo mode and everything
gold d eagle
i want it to be the best patch ever
if u want i might be able to throw together some money but i dont know how much i still hve to get my jtag
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.