Jump to content

Recommended Posts

Posted

Hi everyone!
I have an adiction with realism in games, and the bullet trails bother me enough to try to make my first mod.

I want to remove them, but I don't know where to start. I hope it would be as simple as it sound.

Thank you!

Posted

I haven't looked into this specifically but if it is your first mod, I don't think it's the best way to start as I can imagine it being rather hard to remove as involve patching some code.

Posted

I've had a look and it seems that I can remove the tracer. I will post a mod soon.

Posted

@LMS Could you share your code (hit markers and bullet trails)? I am not gonna use it, just curious how you would do it without natives but using an asi file.

Posted

Since an ASI is just a DLL, I can run normal C++ code. For these two mods I modify specific functions in the game's code to disable certain behavior. Below is the code for no bullet trails, although I don't think it will help you much. We are looking for a specific pattern in memory (in this case the beginning of a function) and then making that function return immediately.

auto pattern = Detour::FindPattern("48 89 5C 24 08 55 56 57 41 56 41 57 48 8B EC 48 83 EC 70 41 8B 81 ?? ?? 00 00");
if (pattern != nullptr)
{
	Detour::PatchReturn(pattern);
}

 

  • Like 1
Posted

How did you find the pattern? Do you do something like cheat engine does and try to catch the re-occuring pattern while shooting?

Posted
4 hours ago, HughJanus said:

How did you find the pattern? Do you do something like cheat engine does and try to catch the re-occuring pattern while shooting?

 

Mostly static analysis (in IDA), tracing the parsing of weapon effects in the loader to where they are being stored and then where they are being read/used.

  • Like 1
Posted
3 hours ago, LMS said:

 

Mostly static analysis (in IDA), tracing the parsing of weapon effects in the loader to where they are being stored and then where they are being read/used.

Do you use the pro version or is such a thing possible with the free version of IDA too?

Posted

The free version is quite limited so I'd recommend the pro version if you can get it. Quite a few companies and universities offer licenses. Of course there are also other ways.

  • Like 1

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...