phas's door locking

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
User avatar
Neveos
X-51
Posts: 875
Joined: Wed Mar 03, 2010 1:29 am

phas's door locking

Post by Neveos »

so doing a world corp play through, I noticed that after phas throws all my stuff on the lobby floor, his door becomes closed and locked upon entering the lobby where a PM comes in saying "you're never setting foot in my apartment again". How did you actually determined the door to be closed? i.e. if it were already closed, triggering it would have opened it, and defeated the purpose of locking it.
What I do in my other free time:
http://www.youtube.com/watch?v=e3FfPUKuGsQ
User avatar
Hassat Hunter
Illuminati
Posts: 2182
Joined: Fri Apr 10, 2009 1:20 pm

Re: phas's door locking

Post by Hassat Hunter »

With 1.0.4 it just... locked. Even when being open. Not that useful.

For 1.0.4+ I made sure to close it (only if open!) by checking the state of the door. Which OTP has used on several of such occassions, so I don't know why they didn't do there (or they just forgot if the fix was discovered much later).
Can somebody tell me how I can get a custom avatar?
Oh wait, I already got one...
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Re: phas's door locking

Post by Jonas »

All I remember is the whole issue of closing and locking doors (which we do many times throughout the game) was a completely mess from day one. It was fixed, unfixed, re-fixed, magically unfixed, re-fucking-fixed, and so on and so forth. I would say I lost track of when it was working and when it wasn't, but I honestly don't think I ever had track of it to begin with. Thanks for refixing it one final time though, Hassat ;)
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
User avatar
Hassat Hunter
Illuminati
Posts: 2182
Joined: Fri Apr 10, 2009 1:20 pm

Re: phas's door locking

Post by Hassat Hunter »

1.0.4+ does Phas door, the Weapon shop and a space-station one.

The rest works fine... or atleast I didn't find broken :P.
Can somebody tell me how I can get a custom avatar?
Oh wait, I already got one...
User avatar
Neveos
X-51
Posts: 875
Joined: Wed Mar 03, 2010 1:29 am

Re: phas's door locking

Post by Neveos »

So it was like a mission script thing? Oh well, it's probably something I could do with logic triggers and flags.
What I do in my other free time:
http://www.youtube.com/watch?v=e3FfPUKuGsQ
User avatar
Hassat Hunter
Illuminati
Posts: 2182
Joined: Fri Apr 10, 2009 1:20 pm

Re: phas's door locking

Post by Hassat Hunter »

Yes.

The way you want it is far more complex and prone to failure, why not use mission script? :-s
Can somebody tell me how I can get a custom avatar?
Oh wait, I already got one...
User avatar
Neveos
X-51
Posts: 875
Joined: Wed Mar 03, 2010 1:29 am

Re: phas's door locking

Post by Neveos »

I just don't know how to use it, but I've been able to do pretty well with DDL's extra triggers. Currently, I can't think of anything I would want the mission script for, but it is true that the triggers are prone to failure.
What I do in my other free time:
http://www.youtube.com/watch?v=e3FfPUKuGsQ
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Re: phas's door locking

Post by Jonas »

I'm almost certain you can't do it with triggers. Unless you make your own triggers. But then you might as well figure out how to use the mission script, for the sake of your own sanity and the stability of your mod.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
DDL
Traditional Evil Scientist
Traditional Evil Scientist
Posts: 3791
Joined: Mon Oct 17, 2005 10:03 am

Re: phas's door locking

Post by DDL »

Swinging in late here, but fuck it.

Movers can be checked for open/closed status by using keynum: keynum = 0 is traditionally 'closed', though it depends on how you map it.

Then something as simple as

if(Mover.Keynum != 0)
Mover.Trigger(none,none);

will close it.

Obviously this does indeed require either a custom trigger or a missionscript.
Post Reply