Working Cloak Mod (v0.95 Beta)
_______________________________________


Changelog:

v0.96
- Changed MFC DLL to be a standalone DLL, solves crash bug and gets rid of the need for
the Microsoft Visual Studio framework DLLs (thanks for hint to [EFS]Eagle_General)
v0.95
- Changed Cloaking/Uncloaking Message reaction of the client (the client now listens to " Cloaking")
- The client no longer displays the Cloaking and Uncloaking messages
- Included Microsoft Visual Studio DLLs (they are missing on some windows installations)
v0.9
- Initial Release


IMPORTANT NOTE:

This is not a cheat/exploit mod. In fact, this mod is very secure as regards the mechanicsm to force the
client to uncloak and cloak. If a cheater somehow gets a cloak device on a server where the server-side extension of this mod is not
running, cloaking and uncloaking will just not work, so the cheater would not be able to fire any weapon while cloaked.


NOTES FOR DEVELOPERS:

First, please have a look right at the top of the FLHook.ini. You will find basic cloak related
settings there (you also have to list all your implemented cloak devices there)
I included the source code of the server-side extension needed for the cloak mod to work.
Please note that the client will only react on the incoming chat events "Cloak" and "Uncloak"
and will therefore deactivate or activate the local cloak device.
To fix the bug where player A would not see player B becasue player B has a cloaking device and is uncloaked but
player A just logged in with F1, I implemented a timer that, if a player is uncloaked, simulates a
'deactivate cloak device' message to other players every 0.5 seconds. This way, every spawning player would immediatly
get the uncloak message so that the uncloaked player with cloaking device will be visible to them.
I may add more features that allow for better balancing of the cloak in the future. But for now, if you
have C++ knowledge, you should already be able to implement your own balance ideas.
I would be very happy to learn about them and the code (just send me an email: w0dk4@aa-flserver.de or contact
me on www.freelancerserver.de)


OTHER NOTES:

This mod includes the official Freelancer v1.1 Patch.


KNOWN BUGS/ISSUES:

- There is a bug with cloaking devices making the player invincible to collisions with planets (and suns?).
This bug is definately server-side. You can solve this bug by changing the cloak device to a functional
mine-dropper or something else.. but in return, the npcs will then see you when cloaked :(
- [SOLVED] There seems to be a crash-to-desktop issue (on some computers/hardware related?) when reselecting a cloak-capable ship and 
cloaking (i.e. with F1).
I experienced this when testing the cloak mod on my notebook - the FL client just died when cloaking/uncloaking, also sometimes
when joining the game for the first time. I have no idea what was causing this :(
Maybe its a bug of the original Freelancer as the cloak didnt really get implemented for use by the player but it might
also be related to visual studio... If you are experiencing
such crash-to-desktop issues, please report. [This bug has been solved! See changelog.]



Credits for FLHook 1.5.5 source on which this modified FLHook source is based go to mc_horst.

You can contact me on www.freelancerserver.de
Geetings,
w0dk4