I've made a copy of the dm gametype, so you can Start a new server with it on any map, and you can play it.
But if i edit it, for example:
Original:
Code: Select all
if(isPlayer(attacker))
{
if(attacker == self) // killed himself
{
doKillcam = false;
attacker.score--;
}
else
{
attackerNum = attacker getEntityNumber();
doKillcam = true;
attacker.score++;
attacker checkScoreLimit();
}
Code: Select all
if(isPlayer(attacker))
{
if (self.pers["team"] == "allies")
{
if (Number_On_Team("axis") < 1)
self thread respawn("auto");
else
{
self move_to_axis();
CheckAllies_andMoveAxis_to_Allies(undefined, self);
self thread respawn();
}
}
if(attacker == self) // killed himself
{
doKillcam = false;
attacker.score--;
}
else
{
attackerNum = attacker getEntityNumber();
doKillcam = true;
attacker.score++;
attacker checkScoreLimit();
}
I've been thinking on a mod, 1 vs all, but the lonely 1 player got more health and stuff like that.
Does anyone know where you can learn this?
I know the basics of C++, and i've been trying to mess around with the gametype, but all my changes just gives me a script compiler error when i try to launch it.
Thank you so much in advance
![Confused :/](./images/smilies/icon_confused.gif)