I've always felt that traps have been quite underused in TDM compared to Thief, and part of the reason might be because there is no decent documentation on how to make them.
I'm hoping to rectify that by creating some threads discussing the best techniques for making particular kinds of traps, which we can then archive on the wiki (or perhaps I'll make a video out of it).
So for starters, how about the classic Pressure Plate trap?
Pressure Plate trap (single use)
Description: If enough weight is placed on a plate, a trap is triggered--usually some kind of projectile. Once triggered the trap is no longer functional. Generally these traps can't be disarmed in advance--the player either avoids the plate or triggers it from a safe distance by dropping something onto it.
1. The plate. This needs to be an entity that can move, so it can sink slightly when it activates, probably with a sound of some kind. Most commonly this will be a brush textured to look like the floor underneath (with some subtle clue to be fair to the player) or perhaps a rug model. One possibility would be a sliding door entity that is triggered to slide down just a few units when the trap is sprung.
2. The trigger. When I made one of these in A Score to Settle, I used a very thin trigger entity that was on the floor. For a single use trap, a trigger_once should be used. I added the spawnarg "anyTouch" "1" to it,
which allowed movable objects to trigger the trap as well. The description of the spawnarg says "Anything can touch it, players, mobs." I assume that means AI could trigger it as well (mobs??). One possible downside is that probably any movable can trigger it, regardless of size or weight. I don't know whether projectiles can trigger it--that's something to test.
3. The projectile. I've never actually done one of these. The trap I used had a swinging arm with a func_damage attached to it (which had some problems). I know there is a func_shooter, but can anyone fill in the best method for using one?
If you've used other methods or have better ideas than the above, please share below!
edit: video and prefab can be found here: http://forums.thedar...traps/?p=425656