Tie capture progress with door animation

  • If you're asking a question make sure to set the thread type to be a question!

Skylark

Super Gay Developer
aa
Aug 9, 2018
163
373
I have an idea for a dynamic control point but it requires linking the door with the capture progress so it finishes at the same time as the capture and also reverts with nobody capturing.

I did the naive approach of just doing touching on the capture trigger but making it work with more than 1 person is going to be fiddly (and reverting capture was enough of an issue).

Does anyone have any ideas on how to link the two so they mirror the progress?
 

That's the plan

L4: Comfortable Member
Jul 8, 2018
183
38
You could make it so when the player enters the capture trigger the door starts moving and when the player leaves the capture trigger it goes back. Maybe something like: onstart touch all, door, move foward, and onend touch all, door, move backward,or something like that. You could adjust the move speed of the door to the time it takes to cap the point to sync it better.
 

Skylark

Super Gay Developer
aa
Aug 9, 2018
163
373
You could make it so when the player enters the capture trigger the door starts moving and when the player leaves the capture trigger it goes back. Maybe something like: onstart touch all, door, move foward, and onend touch all, door, move backward,or something like that. You could adjust the move speed of the door to the time it takes to cap the point to sync it better.
My current solution is to have the door open faster than the fastest capture and accept that it isn't going to be perfectly align and do a secondary animation on capture; on leave the door stops then after 4 seconds goes down (w/ relay). I'm also using tracktrain for the door to make it easier.
 
Last edited:

Narpas

Takes way to long to make and update maps
aa
Jun 11, 2015
433
436
I think there's actually a specific entity that can control like a tracktrain or something to move at the same amount as a capture progress; I could be wrong though, I don't really remember. Anyways even if that doesn't actually exist you can do it with a func_movelinear, I can explain how later if you want once I'm not so tired. It's fairly easy to set it to open at the same speed as capture progress, even with multiple people
 

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994