Add GetIObjRW to FLHook plugin
-
GetIObjRW.patch
it is used by a few things
but i need it for fues control
i also fixed it so the plugins can access the fuse control
and can IDS to Name be added pleasehere how it can be used edit fuse.ini and add
[fuse]
name = MyFuse
lifetime = 5.000000
death_fuse = false[start_effect]
effect = no_cloakeffect01
hardpoint = HpEngine01
at_t = 0.000000
pos_offset = 0, 0, 0
ori_offset = 0, 0, 0
attached = truethen hook this function into ammo collision
void FuseControll(uint iClientID) { uint iShip; pub::Player::GetShip(iClientID, iShip); IObjRW *ship = GetIObjRW(iShip); uint iFuseID = CreateID("MyFuse"); HkUnLightFuse(ship, iFuseID, 0.0f); // to make sure its clear to use HkLightFuse(ship, iFuseID, 0.0f, 0.5f, -1.0f); }
now every time the ship gets hit it will activate no_cloakeffect01
it wont cloak or that just the fx`s -
Could you please change the topic to something other than implying you changed the plugin version? You are no official developer of it and thus the statement of the topic is purely wrong.
-
have to agree. no matter how many of us are going to built this into their flhook, but nothing is wrong about doing so and nothing is wrong about anyone who offers the secret behind it, whether this might be an official developer or not.
unless of course this patch is in any way negatively affecting the functionality of other features of the flhook server operator or offering abusable code…
-
You can build your own plugin version, no one will stop you from that. This won’t change that the topic is wrong until it is included into “the plugin version” which is the one distributed via the forge. If you build plugins for the modified version you most likely break compatibility to the official one and other variants. I won’t lecture you about the consequences of different plugin versions, you should be able to see them for yourselves. I only stated that the topic itself is wrong.
-
flhook is not global, it is different in each mod, depending on the mod. you are free to release your plugins to the community or to keep them with your mod and if your plugins use functions only working with a modified version of flhook plugin, so why don’t you make it so for your mod just without releasing the plugins? on the other hand, if you release you can always warn potential users, that these plugins work only with these-and-these modifications of the flhook core program.
and now, gentlemen, stop trolling each other, the problem you appear to be having here is really not worth it, starting with the fact, that it can be solved as simple as that.
-
I edited the title. Now, relax and move on. I think it makes sense to add this to the “official” FLHook plugin version.
Still, all these additions are no large issues since you can always do them within your plugin.
Just be patient, relax and dont be so touchy (all parties involved).
-
GetIObjRW is part of the fuse control need ?
IDs to name needed ?
enough said
the plugins ive released are compatable with the core
apart from store and build simple they need a name returned
there been a few updates 2 since i said it needs them
nothing done about it so far
once its done ill remove the custom hook no need for it then
took all but a sec to apply the patch