I had an idea to add armour/penetration values to weapons and ships. To do this I'd need:
1) Add new variables to objects. (I know how to do this)
2) Change damage calculation based on variables? ( I DONT know how to do this?)
Is #2 even possible to change, or not really?
P.S. I have a lot of experience with dll modding but I still struggle to wrap my head around what is possible to mod in X4.
Is it possible to change damage calculation?
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: Is it possible to change damage calculation?
not possible, calculations are hidden in C++ code and we dont have access to that.
also, only variables supported by object class can be used, no way to add more due to same reason.
also, only variables supported by object class can be used, no way to add more due to same reason.
Re: Is it possible to change damage calculation?
To objects - no, only to entities (blackboard).
Change - no, but you can try making own "damage shift".
Look for <event_object_shield_damaged>, <event_object_hull_damaged>, <set_object_shield>, <set_object_hull>.