door opening angle or opened coordinates

Started by NumB
14/02/2008 00:19
Page 1 of 1
NumB14/02/2008 00:19

How to get door opening angle, so I can start a new thread obout how to get absmin[3] & absmax[3] coordinates when door isn't in standart position?

ian.cammarata14/02/2008 03:15

You need to use the pfn_keyvalue forward and read the data in from all the doors before the map loads. Once the loading is done, those entity vars are inaccessable.

Example at line 99:
http://svn.ian.cammarata.us/index.cgi/amxx/mpbhops.sma?view=markup

NumB14/02/2008 13:23

Only thing I don't understand is how angles can have only one data (horizontal & vertical angles)?

ian.cammarata15/02/2008 02:20

Ummm.... good question, it's been a while since I've worked on any plugins, so I don't remember exactly, and if you're talking about func_door_rotating, I really don't know. But the angle values are pitch(up/down(x)) yaw(left/right(y)) and roll(turning upside down(z)). I don't think roll is ever really used for doors.
http://collective.valve-erc.com/index.php?ent=func_door
http://collective.valve-erc.com/index.php?ent=func_door_rotating

Another handy tool to have for figuring this kinda stuff out is a BSP viewer:
http://nemesis.thewavelength.net/index.php?p=30

Page 1 of 1

Please log in to post replies.