| Author |
Topic: I'm trying to make a mod... |
| DaveR |
General Member Since: Dec 5, 2006 Posts: 380 Last: Sep 17, 2011 [view latest posts] |
|
|
|
|
| DaveR |
General Member Since: Dec 5, 2006 Posts: 380 Last: Sep 17, 2011 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Sunday, Dec. 16, 2007 03:15 pm |
 |
Found this in Paulus' CoD2 zombiemod
Quote: else
{
if (self.pers["team"] == "allies")
{
//allied killed by axis..allied becomes zombie
self thread movePlayer("axis",3, attackerNum, 0, psOffsetTime, true);
noRespawn = true;
doKillcam=false;
//LAST MAN STANDING
if(getcvar("scr_zom_lastManStanding") == "1")
{
//attacker.score++;
if (!(thread checkRestart(self)))
{
self thread blackScreen("killed");
}
}
else
{
self thread blackScreen("killed");
attacker.killcount++;
if (attacker.killcount > GetCvarInt("scr_zom_returnkills")-1)
{
attacker thread blackScreen("return");
attacker thread movePlayer("allies",3);
wait 0.01;
thread checkRestart();
noRespawn = true;
}
}
}
else
{
//axis killed by allied
if (GetCvarInt("scr_zom_alliesPointsForKilling") > 0)
{
attacker.score = attacker.score + GetCvarInt("scr_zom_alliesPointsForKilling");
attacker checkScoreLimit();
}
}
//attacker.score++;
//teamscore = getTeamScore(attacker.pers["team"]);
//teamscore++;
//setTeamScore(attacker.pers["team"], teamscore);
}
}
lpattacknum = attacker getEntityNumber();
lpattackguid = attacker getGuid();
lpattackname = attacker.name;
lpattackerteam = attacker.pers["team"];
}
else // If you weren't killed by a player, you were in the wrong place at the wrong time
{
doKillcam = false;
self.score--;
lpattacknum = -1;
lpattackname = "";
lpattackguid = "";
lpattackerteam = "world";
if (self.pers["team"] == "allies")
{
//If you are allied, become a Zombie
self thread movePlayer("axis",GetCvarInt("scr_zom_tktimeout"));
noRespawn = true;
//LAST MAN STANDING
if(!(getcvar("scr_zom_lastManStanding") == "1" && thread checkRestart(self)))
self thread blackScreen("alliedSuicide");
}
else
{
//you are a zombie, reset killcount
self.killcount=0;
self thread movePlayer("axis",GetCvarInt("scr_zom_tktimeout"));
noRespawn = true;
if(!(getcvar("scr_zom_lastManStanding") == "1" && thread checkRestart(self)))
self thread blackScreen("axisSuicide");
}
}
Could someone do something with this? |
 |
|
|
| novemberdobby |
 |
General Member Since: Sep 17, 2006 Posts: 1965 Last: Oct 13, 2013 [view latest posts] |
|
|
 |
|
|
| DaveR |
General Member Since: Dec 5, 2006 Posts: 380 Last: Sep 17, 2011 [view latest posts] |
|
|
|
|
| The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
|
|
| DaveR |
General Member Since: Dec 5, 2006 Posts: 380 Last: Sep 17, 2011 [view latest posts] |
|
|
|
|
| The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
|
|
| 94sniper |
 |
General Member Since: Jun 15, 2007 Posts: 907 Last: Jun 22, 2009 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Sunday, Dec. 16, 2007 04:41 pm |
 |
it's gonna be hard to do this if you can't read scripts. A lot of this you just have to break down. What I do when I see big scripts is I just copy paste a portion of it into a new notpad document and go through it till I get what it does. You might want to try that also.
Another thing, there are a lot of tutorials on this site for scripting and if you want to be as good as some people you see ( ![[sad]](images/BBCode/smilies/sad.gif) ) you should prolly have a look at those tutorials. For example, a few weeks ago someone wanted to know how to ride in a car as the player. There is a tutorial on how to ride into battle in a tank. He took some of the information from that tutorial and used it for his own pruposes.
Not everything is as complicated as it seems. Just break it down and you'll be all right.
94Sniper |
|
|
|
|
|
mp_TempleCall of Duty: Mods: Multiplayer (624.12Kb)
|