Jump to content


Photo

Crossbow Trap


3 replies to this topic

#1 Sotha

Sotha

    Vertical Contest Winner

  • Active Developer
  • PipPipPipPipPip
  • 5627 posts

Posted 26 July 2018 - 07:13 AM

*
POPULAR

Hi! I was privately asked to share the crossbow trap I worked on ages ago, so I might as well give it to everyone to use.

 

Advertisement:

 

Here is how it works:

Please do note the custom model files in the models folder!

 

It is sorta Sotha-glitchy implementation as usual, but it works. I'll write here how it works so you can change it to fit your requirements

0) trigger_once that encapsulates the trap wire:

*hides the active trip wire

*shows inactive trip wire

*triggers wood impact sound

*triggers trigger_once "trap_mechanism"

1) trap_mechanism:

*shows inactive crossbow

*hides active crossbow

*triggers shooter that fires the arrow

*triggers a speaker for the shooting sound.

2) trip wire model has S&R that disables the trap if frobbed.

3) crossbow arrow has S&R that disables the trap if the arrow is frobbed. Both disablings are done by removing the "trap_mechanism."

4) I've set an opening door to trigger the tripwire to show how the system can interact with world objects like doors.

*frobbing the door triggers a trigger_once that waits 1.75s (the time that the door takes to open fully) and then it triggers the trap_trigger (the one that encapsulates the trip wire.)

 

And here are the files:

https://drive.google...iew?usp=sharing

 

I hope you have a lot of fun with it. I would appreciate if you give me credit in the readme if you use it.

 

Stay in the shadows folks!


  • Bikerdude, Judith, Jesps and 8 others like this
Clipper
-The mapper's best friend.

#2 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 19974 posts

Posted 26 July 2018 - 01:08 PM

LOL the apple bit at the end was ambitious.... :laugh:


  • Dragofer likes this

#3 chakkman

chakkman

    Advanced Member

  • Member
  • PipPipPip
  • 934 posts

Posted 26 July 2018 - 07:50 PM

That's supercool. We need more stuff like that in missions.



#4 RPGista

RPGista

    Advanced Member

  • Member
  • PipPipPip
  • 1526 posts

Posted 26 July 2018 - 08:34 PM

Simple and works great.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users