.fillall - fills metal and energy full.
.fillmetal - fills only metal full.
.fillenergy - fills only energy full.
.maxmetal 10000 - sets max metal to 10000.
.maxenergy 10000 - sets max energy to 10000.
.maxall 10000 - sets max metal and energy to 10000.
Edit:
Or we could also use:
.givemetal 5000 - gives 5000 metal.
.giveenergy 5000 - gives 5000 energy.
And:
.setmetalincome 100 - you will get 100 metal per second.
.setenergyincome 5000 - you will get 5000 energy per second.
Its not big add, i found some code, and probably these lines of code will make .fill, .fillmetal and .fillenergy commands possible to use: (Game.cpp)
Code: Select all
if(s.find(".fillall")==0 && gs->cheatEnabled){
int team=gs->players[player]->team;
gs->Team(team)->AddMetal(2147483647);
gs->Team(team)->AddEnergy(2147483647);
}
if(s.find(".fillmetal")==0 && gs->cheatEnabled){
int team=gs->players[player]->team;
gs->Team(team)->AddMetal(2147483647);
}
if(s.find(".fillenergy")==0 && gs->cheatEnabled){
int team=gs->players[player]->team;
gs->Team(team)->AddEnergy(2147483647);
}

I dont know how to make those .maxmetal and .maxenergy, because i dont know how the resource system works, anyone who knows, could you make those commands?

Also here is some of my requests for more cheat codes:
.setspacing 10 - sets the .give command spacing to 10 (also negative value could be given).
.cheat host - extra parameter for .cheat command, when this is typed: only host could cheat, prevents abuse when host needs cheat command.
.setteam 6 3 - sets player team 6 into 3, so he can control player 3 stuff now. Could be also possible to give spectator start playing.