How can i increase the 'I'm waiting' time the npcs wait before restarting their schedule?

Questions specific to OpenMW-CS can be asked, and content development related topics can be discussed here
Post Reply
i30817
Posts: 58
Joined: 07 Nov 2018, 05:56
Github profile: https://github.com/i30817

How can i increase the 'I'm waiting' time the npcs wait before restarting their schedule?

Post by i30817 » 08 Nov 2018, 06:13

I don't mind if i have to recompile openmw. It's pretty annoying to get there, and be sabotaged by my terrible machine leading the person to just waltz away as i'm about to center the cursor on them. Even 5 seconds more would be enough considering the lowered radius from the mod "LadyD_Reduced_Commentary" i'm using.

i30817
Posts: 58
Joined: 07 Nov 2018, 05:56
Github profile: https://github.com/i30817

Re: How can i increase the 'I'm waiting' time the npcs wait before restarting their schedule?

Post by i30817 » 08 Nov 2018, 22:25

I think i figured this out?

Code: Select all

diff --git a/apps/openmw/mwmechanics/aiwander.cpp b/apps/openmw/mwmechanics/aiwander.cpp
index 833a371..b0b02e9 100644
--- a/apps/openmw/mwmechanics/aiwander.cpp
+++ b/apps/openmw/mwmechanics/aiwander.cpp
@@ -28,7 +28,7 @@ namespace MWMechanics
     static const int COUNT_BEFORE_RESET = 10;
     static const float DOOR_CHECK_INTERVAL = 1.5f;
     static const int GREETING_SHOULD_START = 4; //how many reaction intervals should pass before NPC can greet player
-    static const int GREETING_SHOULD_END = 10;
+    static const int GREETING_SHOULD_END = 50;
 
     // to prevent overcrowding
     static const int DESTINATION_TOLERANCE = 64;
something like this.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests