Cloaking Transparency
-
that would be a hack, i guess, specifically a new cloaking technology that would make the ship disappear from the scanner, but not add transparency to the materials. in vanilla, the cloaking includes both and any hooks that made cloaking accessible, just used the entire cloaking thread. dunno, though, how far it is possible to separate the features…
-
Gisteron wrote:
that would be a hack, i guess, specifically a new cloaking technology that would make the ship disappear from the scanner, but not add transparency to the materials. in vanilla, the cloaking includes both and any hooks that made cloaking accessible, just used the entire cloaking thread. dunno, though, how far it is possible to separate the features…I was thinking more about the offset that would define the transparency rather than adding seperate code for jammers, since the second option would probably be too time consuming.
-
sure, assuming that the original cloak shall not stay in your mod, that would be the easier solution, provided there is a variable called for the transparency change, that could be disabled. copying the function is not as much more complicated, yet keeps a generic cloak possible, if you wish to have it for e.g. some sort of aliens while the cloak you aim for would rather be a “radar cloak”
-
I dont know much about this, sorry, But i think that FLHook stops you from firing while cloaked.
The old method of cloaking devices, people could fire while cloaked but couldnt see the cloaking effect on their own ship. it was/is considered a form of cheating so i cant really explain how it was doneSorry i cant help you anymore.
-
Cloaking devices activate and deactivate the same way as when you click on a weapon slot on your HUD to stop it from firing on left click. However, if a cloaking device is equipped it isn’t visible on your HUD, so that’s why external code is required to activate/deactivate it.
FLHook monitors for the /cloak commands and enables/disables the equipment slot which the cloaking device is in.
This is also how KP Lol and probably how Procyon’s client-side hook works too… only they monitor for keypresses instead of commands. -
I’m not looking to deactivate or activate a cloak. What I’m interested in is making the cloak hide the ship from scanners but without making the ship invisible.
I also want it to be able to fire guns while in a “cloaked” state. FLHook doesn’t control this, because I can’t fire anything if I’m cloaked in singleplayer, so I’m assuming a hack would be needed for that.