Solved Triple Shot, but how

Discussion in 'Plugin Development' started by TwerkinCraft, Apr 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    TwerkinCraft

    I finally got to level 36 on wynncraft, and i've been wondering how they got the triple shot to work so smoothly, even when you turn.
     
  2. Offline

    Garris0n

    What do you mean by "smoothly"?
     
  3. Offline

    TwerkinCraft

    how when you turn your head the arrows keep going out with perfect spread

    and they dont have certain predefined velocities, like if the player is facing north, shoot the arrows at this velocity, they are smooth. Garris0n
     
  4. Offline

    Plo124

    This is basically any ordinary Triple Shot, what makes this unique?

    This is it in sudo-code

    Make a new runnable plz, then make it repeat every tick
    Get the direction the player is facing and multiply it by a number
    Fire 3 arrows, and set the velocity to the number above
    Get the velocity of the outside 2 arrows and sin the x by an angle, and cos the z by an angle
    Update the new velocities
    Repeat for however many times
    Cancel the runnable
     
  5. Offline

    TwerkinCraft

    Wait, i think i solved it, im not sure if this is possible, but i can just get the player's location, change the yaw, and shoot an arrow from that location.getDirection(); ill test it now

    Solved :D, i put the video of it on youtube.

    how do i mark it solved

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  6. Offline

    RawCode

    task?

    this done by invoking single method...
     
  7. Offline

    Asgernohns

    TwerkinCraft go to your top title. To the right you will se a button called thread tools. Go in there and mark it as solved
     
  8. Offline

    TwerkinCraft

Thread Status:
Not open for further replies.

Share This Page