This patch corrects the bug that let you raise shields while cloaked. It also adds a dorsal and ventral (top and bottom) shield to ships. Also, the beginnings of overridable engine messages was implemented for target locking, along with some basic ANSI.
NOTE: THIS PATCH IS NOT EXPECTED TO WORK ON ANY PLATFORM OTHER THAN MUX IF YOU #define COMPACT_DISPLAYS in spaceconf.h
To use overridable messaging, you enable EVENT_DRIVEN for the object, and then to suppress the engine generated messages, you make sure that the EV_* event returns '1'. The only events this works for are the weapons locking events. Check the source for USE_MESSAGING_EVENTS. Some of the callbacks now have expanded parameters to help the softcode do the emits, but the documentation isn't up to date on that yet. EV_LOCK_FAILED is called with some condition parameters when a lock request fails for some reason. Again, read the source to find the constants until I write some more documentation.
This code is provided as a service to the community using the Portable Space Code. By using this code, you agree that the author is not responsible in any way for any damage caused.