How to write aim assist code?

Home Forums Mods and POG Scripting How to write aim assist code?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #16777
    IronDuke
    Participant

    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: https://discord.gg/RWaabWB
    Very little about the game is not known to me. Any questions you got, throw them at me. 🙂

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.