[Solved] Changing the damage formula?

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
dreadmaster
Posts: 2
Joined: 29 Mar 2019, 04:10

[Solved] Changing the damage formula?

Post by dreadmaster » 29 Mar 2019, 04:54

Hello, I recently came back to Morrowind and checked out OpenMW, I saw the Research section on the wiki (specifically the combat section inside it) and wanted to change marksman weapons to scale off of agility instead of strength, how would I do that?

Thanks, sorry if this has been answered already, I couldn't find anything on it :oops:

unelsson
Posts: 131
Joined: 17 Mar 2018, 14:57

Re: Changing the damage formula?

Post by unelsson » 29 Mar 2019, 13:27

Looks like it's hardcoded in the engine, so AFAIK currently the only way is to clone/fork the code, change it, make a custom build.

Something related to these:
https://github.com/OpenMW/openmw/blob/m ... combat.cpp
https://github.com/OpenMW/openmw/blob/m ... anager.cpp
https://github.com/OpenMW/openmw/blob/m ... rldimp.cpp

User avatar
psi29a
Posts: 4604
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Changing the damage formula?

Post by psi29a » 29 Mar 2019, 13:37

I imagine that this will be apart of the great de-hardcoding. Once we reach 1.0 and have something that behaves like Morrowind, we can look into improving the situation to work in other ways. One such area is combat.

dreadmaster
Posts: 2
Joined: 29 Mar 2019, 04:10

Re: Changing the damage formula?

Post by dreadmaster » 29 Mar 2019, 16:18

I see, I suspected it was hardcoded. Thank you for the quick response, I don't have much experience with coding but I'm even more excited to see the project's development now :D :D :D

Post Reply