file How to write aim assist code?

More
8 years 5 months ago #19198 by IronDuke
I know it sounds stupid. After all, there is already aim assist in the game! But what I'm trying to do is write code that will calculate the proper deflections, decide if the target area is within the gun fire radius, and finally create the shot with Sim.Create and hurl it forward.

The benefits with this are many, including implementing quad PBCs without simply having four textures, but I'm stuck on the deflection code. I have no idea how to find out the target's direction+speed ( velocity ) as well as the player's velocity in a simple, easy way. All the ways I have found include taking five more math classes.

Anyone have any ideas?

--IronDuke

I-War 2 Discord: discord.gg/RWaabWB
Very little about the game is not known to me. Any questions you got, throw them at me. :)

Please Log in or Create an account to join the conversation.