How can I make a demolition pack with paid loot item that is limited to only one exchange at a time?


I stole this prefab from another map and made it free to loot because mine doesn’t have any loot points, but I can carry too many, how do I make it so that only one can be picked up and if you loot again it doesn’t give you another one?

It doesn’t have to be exactly the TNT, it can be the American or German grenade, or the grenade box (I can’t put that one so that both teams can pick up without the message that it’s an enemy box )

Try to use ammo box for that.


It doesn’t give another one grenade if you got one.

Here’s scene.blk code:

entity{
  _template:t="base_fortification_build+tutorial_ammunition_box_a+undestroyable_ri_extra+prefab_object"
  transform:m=[[0.172453, 0.0417076, -0.984134] [-4.65661e-10, 0.999103, 0.042342] [0.985018, -0.00730201, 0.172298] [-1136.9, 3.27948, -1007.94]]
  team:i=1
  grenadeResupplyItem:t="explosion_pack_item"
  useful_box__maxUseCount:i=99999
  hud_icon__maxDistance:r=30
}

Keep in mind that they self-destroy if they’re outside of battle area or map doesn’t have any battle areas.

Here’s prefab: AmmoBox.txt (need to change file type from txt to blk).


Or you can try to edit item__volume property, but it shared with other items and ammo. And if you set it so big then you will unable to pickup other items/ammo. You won’t be able to do it until you throw a grenade.


The map doesn’t have a battle area and I don’t know how to put it in xd


I think this would be fine?

1 Like

You can just create box_battle_area and scale it a bit.


After that set team in battle_area_team. IIRC you should have two battle areas with 1 and 2 teams. And only then create these ammunition boxes.

I think you can ask Gamer_Victorch help/more details.

Yeah. If you want to clone object then hold [Shift] and move object.

I think it’s incredibly difficult, but do you know if you can mark a path for bots to move along? Originally this map wasn’t designed for bots, but several people have asked me for it, and bots aren’t very smart, let’s say.


Since you added battle areas then you just need to do Toolbox → Build Commands → Rebuild NavMesh. And game will update paths for bots.

When your map will be done/or you want to test it in custom matches then you will need to do Build Mod ZIP (it will pack all mod files to archive) and upload your zip in Sandbox Portal.

crash


I did it again and it worked, except they go to their own bomb instead of the enemy’s xd

1 Like

Well… It probably not possible to fix. Bombs are aviable for attack from both teams/bots try to plant bomb? Looks like they try to defend it, but idk.

1 Like