Jump to content


Photo

The Trap Workshop


15 replies to this topic

#1 Dragofer

Dragofer

    Modeler

  • Member
  • PipPipPip
  • 565 posts

Posted 21 August 2018 - 06:32 AM

*
POPULAR

After the recent slew of traps and trap concepts I reckoned it'd be good to have a place where they could all be collected.
 
Ready-to-use Traps

Pressure plate with projectile shooter
Thread
Video tutorial

Chest armed with springloaded spike
Thread
Video tutorial

Flame Jet
Thread
Video tutorial

Tripwire with crossbow
Thread
Video demonstration


Trap concepts
Here are possible future traps that the community has thought of. Feel free to post ideas for how any of these could be implemented, have a go at implementing them or to make new suggestions. It'd be helpful to start each of your post with the name of the trap you're writing about.

1. Crushing walls

2. Spiked pits

3. Rooms filling with water
Existing examples can be found in Old Habits 2 and one of Sotha's missions.

4. A Dishonored-type lightning trap

5. Thief-like heads that fire projectiles
Probably would require an AI def.

6. Poison gas traps
Ideally these could be avoided with breath potions. Sotha's gas mine may be used as a basis.

7. Swinging blades

8. Boulder drop

9. Trapdoor/pitfall
Either an unstable floor, made as in the Pressure Plate trap, or a trapdoor which suddenly opens when triggered.

10. Electric or heated plates

Edited by Dragofer, 24 August 2018 - 05:27 AM.

  • Bikerdude, Sotha, chakkman and 7 others like this

#2 Dragofer

Dragofer

    Modeler

  • Member
  • PipPipPip
  • 565 posts

Posted 21 August 2018 - 06:34 AM

Prior discussion from the Flame Jet thread:
 

Well, here are a few I was thinking about looking into in the future:

1. Crushing walls

2. Spiked pits

3. Rooms filling with water (Sotha did that in a mission already)

4. A Dishonored type lightning trap

5. Something like the Thief heads that fire projectiles (probably would require an AI def)

6. Poison gas traps (ideally that could be avoided with breath potions)

  • These could be problematic if moveables come into play, as a few crates for example could be used to block the whole setup (which may be desirable). They could be setup to take damage as well, but this would make the whole setup very sensitive on how mappers are using it.
  • Insta-kill?! A trigger_hurt dealing a sufficiently high amount of damage.
  • Did that in Old Habits 2, too. It is surprisingly easy to setup (a water volume bound to a mover, a door for example). You need it to rise from below, though, so if there is no space left it gets difficult.
  • The most difficult part here is the look of it. Projectiles support light trails, though, so particles left on the trail of the projectile fired. One just has to make sure that performance doesn't suffer too much from it.
  • The security camera could potentially be used here. It provides a visibility scan without all the additional extra load an ai normally uses (pathfinding for example).
  • That pretty much goes into the direction of the gas mine Sotha created a while back. If you are using the same gas as used there and by the gas arrow, breath potions will help.
The latter is relatively simple. The main problem is that once moveables come to rest, they will not move until they get an impulse from the outside reactivating them (that is for performance reasons). A translating door placed on top of the boulders that moves a bit to give them a little push would bypass this, but may not be a houndred percent relyable. Swinging blades would call for func_pendulums, but similar to the traps Springheel already set up the way damage is delivered to the entity hit has to be dealt with.

Can you point me to that? I tried to make some "poison gas" areas, that would drain the air from the player and had massive problems as I found no way of damaging the "air bar" of the player. The only way I found was to create a hidden room with a vaccum entity inside that I could regulate by opening and closing doors. This was still prone to errors as the whole area is evacuated and would affect AIs, where it should not. I am just curious how the setup of Sotha's trap is and how it regulates that the air potion helps against the trap

http://forums.thedar...om-mine-thread/



#3 Dragofer

Dragofer

    Modeler

  • Member
  • PipPipPip
  • 565 posts

Posted 21 August 2018 - 06:38 AM

[Crushing Walls]

To begin with, something I'd like to point towards is the concept of Wiki: Force Fields. This may be used to supplement traps where their natural physics don't achieve the desired effect, i.e. when crushing walls would get blocked by moveables.

 

Also, s_shakes can be applied to speakers to get the screen to rumble while the walls are moving. A value from 0 to 1 can be set, the higher the stronger the shaking. If your sound is in .ogg format you'll get warning messages in the console, but as I remember it'll still work alright.


Edited by Dragofer, 21 August 2018 - 06:58 AM.


#4 stumpy

stumpy

    Advanced Member

  • Member
  • PipPipPip
  • 1858 posts

Posted 21 August 2018 - 08:17 AM

s_shakes resembles a earthquake in visual representation on a monitor when in game, the viewscreen shakes. Had it in an unreleased map, but I think I removed it because it was a very violent shake, even at a low setting.



#5 Sotha

Sotha

    Vertical Contest Winner

  • Active Developer
  • PipPipPipPipPip
  • 5642 posts

Posted 21 August 2018 - 09:29 AM

I wonder if crushing walls trap could have simple script that detects moveables in the trap space and removes them when the trap is triggered. Add a dust puff particle effect when the walls start to move which would conceal the disappearance of the moveables.
Clipper
-The mapper's best friend.

#6 Dragofer

Dragofer

    Modeler

  • Member
  • PipPipPip
  • 565 posts

Posted 21 August 2018 - 10:22 AM

I wonder if crushing walls trap could have simple script that detects moveables in the trap space and removes them when the trap is triggered. Add a dust puff particle effect when the walls start to move which would conceal the disappearance of the moveables.

That would certainly be possible, trigger_touch can detect all entities and their properties within it's volume. In a different context I've recently made a setup which runs a teleportation script on the moveable.

Could for example check if the length of the moveable (along the trap's axis) is equal to the current distance between the 2 walls. If yes, remove it + play a sound + spawn a particle.

s_shakes resembles a earthquake in visual representation on a monitor when in game, the viewscreen shakes. Had it in an unreleased map, but I think I removed it because it was a very violent shake, even at a low setting.

I ran into the issue of too strong s_shakes once. I don't exactly recall the fix, but it'd be good practice to re-export the sound as a .wav

Edited by Dragofer, 21 August 2018 - 10:32 AM.


#7 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5701 posts

Posted 21 August 2018 - 02:47 PM

Moveables are able to receive damage and could be removed upon "death". The problem is that this is not the default behaviour (by default they can't get killed) and therefore the mapper has to think of this. In addition, several moveables touching each other can cause the whole chain of objects involved immovable due to how the idTech4 physics work. Using trigger_touch may not be desireable either, as it can become performance-houngry on bigger maps and if several of those are used.

 

It would probably be the easiest way to go if mappers would avoid moveables in such a scenario. Additionally it may be a heavely scripted usecase anyways, as a plain room with a crushing wall isn't that appealing. Crushing ceilings might be less of a problem in all regards.


FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#8 Dragofer

Dragofer

    Modeler

  • Member
  • PipPipPip
  • 565 posts

Posted 21 August 2018 - 03:41 PM

Indeed, a crushing ceiling would be the easier version of the crushing wall as you can use gravity to clear out the moveables. You might still find clever players who stack crates up high to block it, so it's still not immune by nature. How would you go about preventing moveables from entering the room?

Regarding trigger_touch, it's possible to toggle their activity so the perf impact fortunately wouldn't scale with the trap count.

#9 Springheel

Springheel

    Creative Director (retired)

  • Admin
  • 37406 posts

Posted 21 August 2018 - 04:04 PM

If a player stacks crates to block it, I'd say let them.  That would be a reasonable way to disable the trap.


TDM Missions:   A Score to Settle   *   A Reputation to Uphold   *   A New Job   *    A Matter of Hours
 
Video Series:   Springheel's Modules   *   Speedbuild Challenge   *   New Mappers Workshop  *   Building Traps

#10 Aosys

Aosys

    Member

  • Member
  • PipPip
  • 231 posts

Posted 22 August 2018 - 02:33 PM

Electrified/heated floor plates would be another fairly easy-to-implement trap type, methinks (I believe The Accountant 1 already managed to do the former). Just a damage brush that toggles on and off, with some particle effects for show? The latter might be more difficult if you're talking about gradually transitioning from a self lit skin to an unlit skin (don't know if that's doable or not).



#11 Springheel

Springheel

    Creative Director (retired)

  • Admin
  • 37406 posts

Posted 22 August 2018 - 03:11 PM

Just a damage brush that toggles on and off,

 

 

You'll run into the same problem I summarized elsewhere:  http://forums.thedar...-trap/?p=426179


  • Aosys likes this
TDM Missions:   A Score to Settle   *   A Reputation to Uphold   *   A New Job   *    A Matter of Hours
 
Video Series:   Springheel's Modules   *   Speedbuild Challenge   *   New Mappers Workshop  *   Building Traps

#12 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5701 posts

Posted 22 August 2018 - 03:21 PM


The latter [heat plates] might be more difficult if you're talking about gradually transitioning from a self lit skin to an unlit skin

That's the easy part ;)


FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#13 Destined

Destined

    Advanced Member

  • Member
  • PipPipPip
  • 1595 posts

Posted 14 October 2018 - 04:34 AM

I have added the list of traps to the Wiki, so it can be found easier than in this thread.


  • RPGista likes this

#14 HMart

HMart

    Advanced Member

  • Member
  • PipPipPip
  • 742 posts

Posted 14 October 2018 - 08:10 AM

s_shakes resembles a earthquake in visual representation on a monitor when in game, the viewscreen shakes. Had it in an unreleased map, but I think I removed it because it was a very violent shake, even at a low setting.

 
 

...

I ran into the issue of too strong s_shakes once. I don't exactly recall the fix, but it'd be good practice to re-export the sound as a .wav

 
Yes s_shake, unless TDM team changed it, requires wav files.
 
From idsoftware site https://www.iddevnet...oom3/sounds.php
 

Shake the screen when this sound plays. The shake intensity is volume multiplied by [float] (which defaults to 1)
*Should not be used with .ogg files*

 



#15 Skaruts

Skaruts

    Member

  • Member
  • PipPip
  • 279 posts

Posted 14 October 2018 - 08:43 PM

Can't a pressure plate trap be made using a door? I tried making it and the pressure plate part works, I'm just not yet knowledged enough to make it trigger something else. 

 

I did this a week or two ago, I'm not sure I made it activate through touch or with a flat trigger brush on top of it.



#16 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 860 posts

Posted 15 October 2018 - 09:50 AM

There are probably a few different ways to implement a basic pressure plate that triggers when the player stands on it; it's fancier implementations that run into trouble with e.g. the diagrams in http://forums.thedar...e-2#entry294561


Some things I'm repeatedly thinking about...

- louder scream when you're dying




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users