Question on defaultGame.cs

I'm not sure exactly where this would go but it appears defaultGame.cs would be correct.

For example:
function DefaultGame::clearDeployableMaxes(%game)
{

      $TeamDeployedCount[%i, SuperSecretDeployable] = 0;

}

What's happening is when the map/mission changes the SuperSecretDeployable item is not being cleared and it shows as max number already being deployed even though being a new mission none have yet to be deployed.

Any ideas?

Comments

  • On further checking and for info that may help, they show as deployed on the next mission when at inventory, but do not show up under deployed assets in the Command map.
  • There wouldn't be any deployed SSDs in the new map. The number the game checks to see if you can deploy is separate from the deployables that actually exist. It's modified on events such as one is destroyed or deployed.

    Also, is that your entire clearDeployableMaxes function? It should look more like this
    [code]
    function DefaultGame::clearDeployableMaxes(%game)
    {
    for(%i = 0; %i
  • Hmm, let me look tomorrow. Looking at your code, maybe I just placed it in the wrong spot and didn't notice it.

    Will follow up. Thanks!
  • And it helps, as always, if you put the cleanup code in the right spot! :)


    Thanks
Sign In or Register to comment.