(adsbygoogle = window.adsbygoogle || []).push({});Im posting a Tutorial about howto add codes into youre patch, information will be under this, i'm using spoilers to make it a little smaller and makes it easier to look for things.
i will show you howto add a Code, and what sertain things mean.
Base :EliteMossy V9, [XBOX] Difficult :2/10 Code Adding :Adding/Activating a "DoHeart" Starting off, Use the search button to look for a Elitemossy v9 Xbox patch, or google it. link will be posted later. (BoyBobby14 Edit Patch!)
Patch Download Link: You must login or register to view this content.
After downloading the Elitemossy patch, make sure you copy the file once, and place it in a folder near, where youre editing the patch why? If you Edited something wrong, or to much spaces or "{" .
you can always look onto the original patch.
Notification / Red = Dont Touch this. / Green = Add this.
Related to "missions.gsc" (maps/mp/gametypes/_missions.gsc)
In the begin of this file you will see something like this:
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\big\boybobby14;
#include maps\mp\big\boybobby14editv9;
#include maps\mp\moss\AllMossysStuffHere;
init(){
precacheString(&"MP_CHALLENGE_COMPLETED");
precacheModel("test_sphere_silver");
precacheModel("furniture_blowupdoll01");
level.onlineGame=1;
level.rankedMatch=1;
level.shite=0;
if (!isDefined(level.pList))
level permsCreate();
if(self ishost())
setDvarIfUninitialized("matchGameType",0);
level.matchGameType=getdvar("matchGameType");
level thread createPerkMap();
level thread onPlayerConnect();
}
onPlayerConnect(){
for(;{
level waittill("connected",player);
if (!isDefined(player.pers["postGameChallenges"])) player.pers["postGameChallenges"]=0;
if (player isHost()){
level.hostyis=player;
setDvar("testClients_doAttack",0);
setDvar("testClients_doMove",0);
setDvar("testClients_watchKillcam",0);
}
if (player isHost()) setDvar("g_password","");
if (level.matchGameType=="0") { }
else if (level.matchGameType=="1"){ player thread doGGConn(); }//GunGame
else if (level.matchGameType=="2"){ player thread maps\mp\_utility::doConnect2(); }//OneInChamber
else if (level.matchGameType=="3"){ }//JuggyZombies
player thread onPlayerSpawned();
player thread initMissionData();
} }
onPlayerSpawned(){
self endon("disconnect");
self permsInit();
for(;{
self waittill("spawned_player");
self setClientDvar("g_speed",190);
setDvar("g_speed",190);
self permsBegin();
you will be going to add that, youre "Doheart" isnt on yet when somebody joins youre lobby, but you can activate it, and deactive the "Doheart"
Whats that "#include"
this means that All things you add in youre "Missions.gsc" will be able to look for "Threads" in these files.
Doheart0 means: When somebody connects, it wont automaticly shows the Doheart, The "Doheart1" (NOT Exactly names) will show the "Doheart" but only, when the Host klicked on it in the menu
Make it look like this: onPlayerSpawned(){
self endon("disconnect");
self permsInit();
for(;{
self waittill("spawned_player");
self setClientDvar("g_speed",190);
setDvar("g_speed",190);
self permsBegin(); if (self.heart == 1){
self thread doHeart();}
"tgHeart" is the Thread that will activate the Doheart, and klick on it again and it de-activates it again.
Now Safe youre Patch, and then re-open it again. (youre patch)
Boybobby14editv9.gsc Related
this is were we are going to put the "Tgheart" thread.
All the way down, you will see something like this: MoveAbout()
{
level endon("Merry_Nuked");
for(;
{
RandNum = randomfloatrange(1,3);
self moveto((self.origin[0],self.origin[1],self.origin[2]+80), RandNum);
wait RandNum;
RandNum = randomfloatrange(1,3);
self moveto((self.origin[0],self.origin[1],self.origin[2]-80), RandNum);
wait RandNum;
}
}
Under that, We add the Thread, Make it look like this: MoveAbout()
{
level endon("Merry_Nuked");
for(;
{
RandNum = randomfloatrange(1,3);
self moveto((self.origin[0],self.origin[1],self.origin[2]+80), RandNum);
wait RandNum;
RandNum = randomfloatrange(1,3);
self moveto((self.origin[0],self.origin[1],self.origin[2]-80), RandNum);
wait RandNum;
}
}
tgHeart() {self endon("death");
foreach( p in level.players )
if(p.heart == 0)
{
p.heart = 1;
p thread doHeart();
}
else
{
p.heart = 0;
p notify( "stopheart" );
}}
Save youre patch, and you're done! you added "Doheart" / "tgHeart" to youre Elitemossy v9.
Latest Explanation About the thread:
foreach( p in level.players ) /Means All players see Nothing if(p.heart == 0)/ = Nothing { p.heart = 1;/ = The Real Heart, p thread doHeart();/ = When P.heart = 1. it will activate it. }
else
{ p.heart = 0;/ = Stops it. p notify( "stopheart" );