08-01-2011, 13:11
Hello
A small tutorial of some functions for OMA Zombie Mod,
1- Add more rounds:
1- Go into _bot.gsc and find this thread: Oleadas()
2- Find the last:
case 14:
3- Add more, for example:
4- level.ztotal[level.ola] = 10; is the number of zombies in that round, and the number that is in MeterZombies is the health that zombies have.
5- Now, well setup the end, in _bot.gsc go to this thread: PrepararNuevaOleada()
6- Change this on it:
2- How to add more Prizes:
1- Go in _bot.gsc into this thread: VidadeZombies(i)
2- Find this:
3- Do same and change numerobono == 100 to another number. Change the effect.
3- How to add more weapons into random weapon box:
1- Go into _randomweaponbox.gsc, in Init() add at the bottom of level.weapons list another one:
level.weapons[number of the last weapon + 1] = "weapon you want to add";
This are a few functions that people has asked me for a few times.
Thanks for reading.
A small tutorial of some functions for OMA Zombie Mod,
1- Add more rounds:
1- Go into _bot.gsc and find this thread: Oleadas()
2- Find the last:
case 14:
Code:
level.ztotal[level.ola] = 1;
level thread MeterZombies(level.ztotal[level.ola],50000);
break;
case 15:
break;
Code:
case 14:
level.ztotal[level.ola] = 1;
level thread MeterZombies(level.ztotal[level.ola],50000);
break;
case 15:
level.ztotal[level.ola] = 10;
level thread MeterZombies(level.ztotal[level.ola],5000);
break;
case 16:
level.ztotal[level.ola] = 40;
level thread MeterZombies(level.ztotal[level.ola],500);
break;
case 17: //last one keep it like this
break;
5- Now, well setup the end, in _bot.gsc go to this thread: PrepararNuevaOleada()
6- Change this on it:
Code:
if(level.ola == put here your last round number)
{
maps\mp\gametypes\_gamelogic::endGame( "allies", "^5The Humans Survived" );
}
2- How to add more Prizes:
1- Go in _bot.gsc into this thread: VidadeZombies(i)
2- Find this:
Code:
if(numerobono == 100)
{
foreach(jugador in level.players)
{
jugador thread maps\mp\gametypes\_hud_message::hintMessage("Max Ammo for all players!");
jugador maps\mp\killstreaks\_airdrop::refillAmmo();
}
}
3- How to add more weapons into random weapon box:
1- Go into _randomweaponbox.gsc, in Init() add at the bottom of level.weapons list another one:
level.weapons[number of the last weapon + 1] = "weapon you want to add";
This are a few functions that people has asked me for a few times.
Thanks for reading.