Jump to content
View in the app

A better way to browse. Learn more.

RDR2Mods.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

In my experience sometimes NPCs don't use their lanterns even when it's already dark out. I use the darker nights mod and this was especially glaring during the mission with Charles where you scout out a new campsite, just before Chapter 3. I don't care how good of a tracker he is, he for damn sure can't do it in the pitch black. Is there a mod that exists that encourages NPCs to use lanterns more? If not, what file(s) do I need to edit to make it happen?

  • 1 month later...

You can create a simple script to give lantern to nearby peds only at night, using ScriptHook, works good
Like this:

get nerby peds
if(peds is walking) <-Give only to walking peds
     if(hour > 20 && hour < 5)
          give lantern

Edited by Breso

  • 4 months later...
  • Author
On 1/31/2023 at 10:53 AM, Ryo Hazaki said:

@falselight did you ever get the script to work?

No, but I plan on seeing about that sometime soon. Gotta learn ScriptHook though. Unless someone else ITT has already got around to it?

So, anyone?

 

I'm using Darker Nights too, and I think this lantern mod is really important, especially during combat when enemies can easily spot you in the dark.

 

I've been searching through the wiki, but it's really tough when you don't know the exact names of the functions you need, and it seems that there hasn't been much update in the decoding of hashes since last year. I even sketched out some logic I think is a good starting point, but i wasn't able to find the right functions in the database:

 

if (time > 20 && time < 5)
    GET_PED();
        if (PED_IS_INSIDE_BUILDING) return;
        if (PED_IS_NEAR_ARTIFICIAL_SOURCE_OF_LIGHT) return;
        if (PED_IS_HIDING) return;
        if (PED_IS_IN_VEHICLE)
        	GET_VEHICLE_FROM_PED()
        		return VEHICLE_SET_LANTERNS_ON();
        else if (PED_IS_USING_ITEM_OR_WEAPON)
            return PED_STASH_LANTERN()
        else
            return PED_USE_LANTERN()

 

It's also important to reduce NPCs' ability to see the player when the player is in the dark.

  • 5 months later...
On 7/1/2023 at 11:51 AM, falselight said:

No, but I plan on seeing about that sometime soon. Gotta learn ScriptHook though. Unless someone else ITT has already got around to it?

I started doing it but withour proper scripthook docu it's really really hard. If some one intrested in doing this mod, let's do it together.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.