I need to be able to monitor moving sectors which contain ACTIVATOR or ACTIVATORLOCKED and determine whether the sector will operate when the player presses space. I figure that there must be a member, either in the sector itself or in the locking sprite which can tell me whether the sector is currently usable, but so far I haven't found anything. For example, I monitored an ACTIVATOR before and after the button press that activates its sector, and could not detect any changes in the ACTIVATOR sprite.
Please help!
Page 1 of 1
Sector locking
#1 Posted 30 September 2017 - 11:28 PM
#2 Posted 01 October 2017 - 09:12 AM
Only one thing comes to my mind, is using the DNDEBUG cheat. Here's how to proceed:
-create a sample map with two locked doors
-play the map and unlock only one door
-after, use the DNDEBUG cheat to save the map into debug.map.
-open debug.map in Mapster and check the differences between the locked door and the unlocked one.
I actually tried with locked ceiling doors (lotag 20) and it does nothing to the ACTIVATORLOCKED sprites but it modifies door lotags: the unlocked door lotag is 20, while the locked door lotag is 16404.
I think the trick might work with other things.
-create a sample map with two locked doors
-play the map and unlock only one door
-after, use the DNDEBUG cheat to save the map into debug.map.
-open debug.map in Mapster and check the differences between the locked door and the unlocked one.
I actually tried with locked ceiling doors (lotag 20) and it does nothing to the ACTIVATORLOCKED sprites but it modifies door lotags: the unlocked door lotag is 20, while the locked door lotag is 16404.
I think the trick might work with other things.
#3 Posted 01 October 2017 - 11:03 AM
Darkus, on 01 October 2017 - 09:12 AM, said:
I actually tried with locked ceiling doors (lotag 20) and it does nothing to the ACTIVATORLOCKED sprites but it modifies door lotags: the unlocked door lotag is 20, while the locked door lotag is 16404.
Yeah I tried that with a regular activator before posting and was not able to learn anything very useful. I think the sector lotag is being used to store a z coordinate, probably the z that the door is supposed to return to when it activates again.
The problem is that my bot needs to know whether a door is locked. If it is, he should not try opening it. If the door is already open then this isn't an issue because he will see that and just walk through. But if the door is closed, then the sector lotag will be the normal effect lotag, which doesn't tell me anything.
Share this topic:
Page 1 of 1