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.

damianegu

Members
  • Joined

  • Last visited

Everything posted by damianegu

  1. Turns out I was doing exactly that, prematurely overwriting TASK_GO_TO_ENTITY with TASK_MELEE. The melee task seems to have an integrated behavior to match PC's speed. TASK_GO_TO_ENTITY works perfectly well and doesn't care about whether PC is stationary or running, it will use the specified movement speed. When I get the time I will fix the code and post it here. It's a really interesting behavior and it makes NPCs a lot more threatening.
  2. TASK_GO_TO_ENTITY Is what I am currently using. It works very similar to TASK_FOLLOW_TO_OFFSET_OF_ENTITY. Imma try SET_ENTITY_VELOCITY, didn't know about this function, thanks!
  3. The target I can set, that's not the problem. I am forcing the execution as well, that part works dandy. It's just that the guy won't start charging if I am not running away from him, whilst I want it to be more like a surprise attack, like "oh you are reloading behind some cover and the NPC is close? Get stabbed". This can't work if the guy just starts walking towards me with his knife out. TASK::TASK_MELEE(ped, player, MISC::GET_HASH_KEY("AR_EXECUTION_FRONT"), 0, 0, 0, 0, 0);
  4. TASK::TASK_FOLLOW_TO_OFFSET_OF_ENTITY(ped, player, // target 0, 0, 0, // offsets 3.0f, //movespeed -1, // timeout 1.0f, // stoprange true, // persistFollowing false, // dunno false, // walkonly false, false, false); // DUNNO TASK::TASK_GO_TO_ENTITY(ped, player, // target -1, // timeout 1.0f, // stoprange 3.0f, // movespeed 0,0); // DUNNOI've noticed that the NPC only rushes towards me if I am actively running, if I am still or walking it will start walking towards me. I am also using PED::SET_PED_COMBAT_MOVEMENT(ped, 2); // 2 is Offensive movementbut it doesn't seem to make a difference. Most of the times the dude will just start casually walking towards me, resolutely but slowly. I am trying to program behavior where under some favorable circumstances in combat, like when you are not paying attention to that specific NPC and you are relatively close, it just rushes you with the knife. Any help will be appreciated.

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.