How to write aim assist code?

More
11 years 3 weeks 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

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.