Hey dear RDR 2 community,
introduction:
over the weekend I set up a development environment for RDR 2 and have played around with C++ scripts (asi) a bit.
When I was studying years ago, I learned programming in Java and scripting in Python, so I am not completely new to coding.
I managed to make NPCs take more bullets by playing around with their health values, but have not come very far in what I actually wanted to do.
goal:
my goal is to make NPC behavior more dynamic and also realistic. If I shoot NPCs in the legs, they shouldnt be able to sprint for cover (just as an example).
I have yet to find out how to trigger a certain behavior (e.g. limping, lying on the floor, bleeding, etc.).
In GTA 5 there was a "writhe mode" -> NPCs which had a certain amount of health entered that state in which they squirmed on the ground and could be killed by 1 shot.
It seems that in RDR 2 it is the same thing. I dont want that. I want them, for example, to go down and still be able to take some bullets (so e.g. if I shoot their legs multiple times, so they have to go down, their friends should still be able to help them).
problem:
I would like to know how to trigger certain states (wounded, limping, etc.) and how I can circumvent the "writhe mode" (but still have NPCs play that animation, but without dying after taking 1 hit).
Is this knowledge already available?
I would really love to get into modding RDR 2! 🙂
Any help is much appreciated.
BR
HJ