I am the author of this mod. I am really sorry that I forget my password of Nexus. Another thing I feel sorry is that it is not safe to increase the distace for now. The mod used the "raycast" function to capture the victim. However, unlike in GTA5, in RDR2 this function may crash the game. Of course you don't need to worry about the CDT because I only use the safe way to find the target. But to increase the distace, you either need to take the risk of occasional game crash or possible failure of the power. If you must do this, find Vector3 RaySpace = new Vector3(RotToDir(NC_Get_Cam_Rotation()).X * 100.0f, RotToDir(NC_Get_Cam_Rotation()).Y * 100.0f, RotToDir(NC_Get_Cam_Rotation()).Z * 100.0f) this line and change all the 100.0f into whatever number you like, this is the maxiumun range of the capturing. and you also need to find if (World.GetDistance(playerPed.Position, IMEntity.Position) > 200 || (Function.Call<bool>(Hash.IS_ENTITY_A_PED, IMEntity) && IMEntity.IsDead)) and if (Game.IsKeyPressed(PushKey) && !Game.IsKeyPressed(PullKey) && World.GetDistance(playerPed.Position, IMEntity.Position) < 200) these two lines and change the 200 into whatever number you like. This is the maximun range that if the distance between you and your target exist this range, the power will automatically end. These changes have no risk to crash the game but the power may not work sometime, especially when you want to pickup a target beneath you. Sorry that I am not a native English speaker. I hope you can understand what I am saying.
Beware. I'm not sure if this mod, ScripthookRDR2.NET or the Blink mod is to blame, but one of the three introduced insane keyboard lag. As in, you walk forward, stop hitting W and hit A and he walks for another 3-4 seconds before deciding to value A. Seems to be worse in towns. After uninstalling this, the Blink mod and the .net hook, keyboard was responsive again.
Hi, Thanks for the mod, it's working great! I use a PS4 controller to play the game, how can I set the mod to work with one of it's buttons (like R3 for example)?
I don't use controller so I didn't make a version for controller, but there is certainly a way to make it compatibale with controller. I will study about that and make a version for controller as soon as possible.
Any chance you've been able to find a controller solution? I'd guess it's probably just figuring out the keybinding name, but I'm not big on RDR2's coding so I didn't want to break anything by trying XD
Very nice ! ..is it possible to make a version that just make the npc stay at the same place ? ...npc can't not move ,only shoot back ! ,is it possible to do something like this ?
I think it is not difficult to make such a mod. In the current mod, if you find the following lines: if (Function.Call<bool>(Hash.IS_ENTITY_A_PED, IMEntity)) Function.Call(Hash.SET_PED_TO_RAGDOLL, IMEntity, 10, 10, 1, true, true, true); and delete them. The target will move very slowly and can do anything else normally. But to make them absolutely stay at the same place but can do other things like shooting back is also not difficult. I will soon upload a version to do that.
21 comments
I have one question. I'd like to do this Immobilizing from longer distance. How should I change the value in cs file for to do like that?
Vector3 RaySpace = new Vector3(RotToDir(NC_Get_Cam_Rotation()).X * 100.0f, RotToDir(NC_Get_Cam_Rotation()).Y * 100.0f, RotToDir(NC_Get_Cam_Rotation()).Z * 100.0f)
this line and change all the 100.0f into whatever number you like, this is the maxiumun range of the capturing.
and you also need to find
if (World.GetDistance(playerPed.Position, IMEntity.Position) > 200 || (Function.Call<bool>(Hash.IS_ENTITY_A_PED, IMEntity) && IMEntity.IsDead))
and
if (Game.IsKeyPressed(PushKey) && !Game.IsKeyPressed(PullKey) && World.GetDistance(playerPed.Position, IMEntity.Position) < 200)
these two lines and change the 200 into whatever number you like. This is the maximun range that if the distance between you and your target exist this range, the power will automatically end.
These changes have no risk to crash the game but the power may not work sometime, especially when you want to pickup a target beneath you.
Sorry that I am not a native English speaker. I hope you can understand what I am saying.
i am use C# ScriptHookRDRNetAPI.dll when i use World.CrosshairRaycast and Look at the sky, Game crash!!
I wonder if you have solved this problem now. Thank you
After uninstalling this, the Blink mod and the .net hook, keyboard was responsive again.
Thanks for the mod, it's working great!
I use a PS4 controller to play the game, how can I set the mod to work with one of it's buttons (like R3 for example)?
Thx
In the current mod, if you find the following lines:
if (Function.Call<bool>(Hash.IS_ENTITY_A_PED, IMEntity))
Function.Call(Hash.SET_PED_TO_RAGDOLL, IMEntity, 10, 10, 1, true, true, true);
and delete them. The target will move very slowly and can do anything else normally. But to make them absolutely stay at the same place but can do other things like shooting back is also not difficult. I will soon upload a version to do that.