door opening angle or opened coordinates
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?
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
Only thing I don't understand is how angles can have only one data (horizontal & vertical angles)?
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
Please log in to post replies.