How to disable replacement tanks?

I’m afraid the developers will never do anything for custom matches again. Their time developing this project is long gone.

I think you just need to nuke the team__freeTankAllTemplates shared object according to this code in free_tank_spawn.das

The function is set to exit if it cant find any tank templates

This part is in ww2_teams.blk
image
So, to disable free tanks, in your scene.blk, find your 2 teams and add the following code in each of their blocks

"team__freeTankAllTemplates:shared:object"{
}

If it doesn’t work, you will need to use entities.blk to _override it, but try the above method first

2 Likes

Where can i find this? Thanks for helping me btw

1 Like

You don’t have to find it, I was merely stating the source and documenting my thought process.

So just ignore everything above and do this
If you wanna go into the details, you can go to discord and message me

1 Like

image

image

Like this?

You need to close the block with }


Or else you will crash the game

(Unless you are not showing the entire block)

image
This is the whole block

1 Like

Then you are good
Go try it out

1 Like


It doesn’t seem to be working. I can still spawn t-50

2 Likes

Then do it in entities.blk

team_tunisia_allies{
  _override:b=yes
  "team__freeTankAllTemplates:shared:object"{
  }
}
team_tunisia_axis{
  _override:b=yes
  "team__freeTankAllTemplates:shared:object"{
  }
}
2 Likes


It works now. Thank you so much for your patience and help!

2 Likes

Great, but it still shows the tank spawn…
I think we can disable that too… there is another logic for that
But if you are content with just the free tank not showing up, then lets call it a day

1 Like

I am satisfied with this solution. As long as it keeps players from using wrong vehicles

1 Like