Creating crate that when broken, explodes random weapon entities (to be used by players)

  • Site Migration: See bugs? Report them here. Want something changed or have an idea? Suggest it here.


L1: Registered
Aug 20, 2008
Basically what the title says.
I want to make a fun little game element for my map where at set locations in the map, random floating giant crates will spawn. When players break them open, they drop random weapons that can be picked up and used.

I'm thinking it could be fun for newer players who haven't had a chance to try out new weapons yet - and this could be their opportunity.

Any ideas on how I could go about making this?

Edit: Just to clarify, I'm mostly looking towards spawning equippable weapons. I have an idea in that they could just be physics props, but I'm not entirely sure.


L2: Junior Member
Feb 22, 2013
You could do it with Sourcemod plugins but with the limited tools tf2 mappers are given, I'm pretty sure you can't.
I looked up the entity tf_dropped_weapon for anything mappers could use but there's nothing so yeah, you are SOL unless you make a Sourcemod plugin.