Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TPSA - Third Person Aim System

Discussion in 'Scripting' started by Stiffx, Dec 29, 2014.

  1. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    TPSA - Third Person Aim System for Unity 3D.

    This is a solution for Third Person Shooter games, do not require many animations, in fact just a standing position for aiming, the rest is done by IK controllers, and you can customize the way you want. The customization also can be done by Weapon.



    It's an indie and simple solution for Third Person Aiming and Shooting.

    What is included in this free solution:
    • Simple Camera Control.
    • Simple Character Controller (Movement control).
    • Aim IK Solver (Arm and Hand).
    • Weapon controller.
    The weapons used in this project was found in here: https://www.assetstore.unity3d.com/en/#!/content/14233

    Update... Pickup OBJECT






    Pickup weapons and bullets (Up, Middle and Down)
    NoAim if target is too close (i still have to improve it, but as you can see if you reach a short target distance the character will put hands down)
    Camera Adjustment (Like max payne3 when you look far upwards)
    Muzzle fire and a bullets and bullet box count.
     
    Last edited: Jan 10, 2015
  2. IndieScapeGames

    IndieScapeGames

    Joined:
    Jul 3, 2012
    Posts:
    80
    I'm interested in the C# code. Also, where can we download? I see the AssetStore download is the gun models, but not the camera control script, character controller, etc.
     
    Stiffx likes this.
  3. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Yes, like i said I'll be posting the C# code very soon if anyone is interested...
    I'm finishing some parts of the code so i can publish it.
     
    krish9 likes this.
  4. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    i want it T_T
     
    Stiffx likes this.
  5. BEIEIA

    BEIEIA

    Joined:
    Sep 17, 2012
    Posts:
    14
    i'm very interested. What about the Character, animations and demo scene is this included?
     
    Stiffx likes this.
  6. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Not really, i'll be selling the Character, animations, demo and documentation separately for a very cheap price, something like U$ 30. But I'm also thinking of creating a donation section to implement more features, so maybe if you guys like my work and donate I can create new features, for example I want to add rocket launcher and shotgun to this project.
     
    blackbird likes this.
  7. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    how about you make a pick up system for weapons and write small script which allow number of bullets ? i don t wanna donate i like to buy stuff
     
    Stiffx likes this.
  8. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    618
    I'm interested.
     
    Stiffx likes this.
  9. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Thanks blackbird, already started the pickup system for bullets and weapons this will be included in the selling version.
     
    Razputin and blackbird like this.
  10. Ian094

    Ian094

    Joined:
    Jun 20, 2013
    Posts:
    1,548
    Looks awesome.
     
    Stiffx likes this.
  11. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Thank you...
     
  12. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    New update- now the system has the pick object (Down and middle)
    "Video is on top of the page"
     
    Razputin likes this.
  13. JouTaino45

    JouTaino45

    Joined:
    Dec 26, 2014
    Posts:
    22
    I am interested in this...Hopefully, you release the kit so I can buy and try it.
     
    Stiffx likes this.
  14. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    I'm very close to a release candidate, please stay in touch.

    And here we go, another update...

    Pickup weapons and bullets (Up, Middle and Down)
    NoAim if target is too close (i still have to improve it, but as you can see if you reach a short target distance the character will put hands down)
    Camera Adjustment (Like max payne3 when you look far upwards)
    Muzzle fire and a bullets and bullet box count.

    Video:
     
    Razputin, JouTaino45 and blackbird like this.
  15. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    I also created a script to attach to your Gameobject that will be picked:
     
    Razputin, JouTaino45 and blackbird like this.
  16. JouTaino45

    JouTaino45

    Joined:
    Dec 26, 2014
    Posts:
    22
    Nice !!!
     
    Stiffx likes this.
  17. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Thank you
     
  18. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Update - Jump over obstacles (easy to use), the system will check if is possible to jump over by calculating the height and then if it fits will start the jump over at the top of the object. All you have to do is create a object with a box collider and set the tag to JumpOver, the rest is up to the system
     
  19. IndieScapeGames

    IndieScapeGames

    Joined:
    Jul 3, 2012
    Posts:
    80
    So, could you tell us more about how to set up a custom human model? I have purchased a pack of humans (from FATBOX Software, @James Arndt) that have their own animations, however I am very unsure of how I will implement them into your system based on your statement:

    -Chad
     
    Stiffx likes this.
  20. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Nice question, i'm trying hard to make the scripts flexible as possible, thinking that you guys will use different models and animations. I belive the only thing you'll need to do is to tweak the variables to adapt to the new animations.
    I'll make a video explaining how to setup a new character from scratch, also i intent to create a script to place all the needed scripts at your new model to make things easy.
     
    IndieScapeGames and blackbird like this.
  21. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    TPSA Update



    New animations
    Fall,
    Land,
    Jump over obstacle, Step-up obstacle
    Walk back
    Smooth camera adjustment (Up and Down)
     
  22. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Update


    "Sorry about the bad recording, i'll be posting a new video"
     
    Razputin, JouTaino45 and blackbird like this.
  23. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    man i can t wait to buy this T_T
     
    Stiffx likes this.
  24. kierenhovasapian

    kierenhovasapian

    Joined:
    Dec 23, 2014
    Posts:
    87
    When do you expect to be releasing this? It looks great!
     
    Stiffx likes this.
  25. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Thank you kierenhovasapian, my plan is to release it this week.
     
  26. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    how much it will be `?
     
  27. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    I tough $30 at first, but now it has some new features and I also plan to add my zombie character to the pack
    https://www.assetstore.unity3d.com/en/#!/content/22048.

    I have a question for you guys, would you like separated packs? like for example,
    Pack A - Cod only
    Pack B - Cod and Animation
    Pack C - Cod, animation and Models

    or a single pack?
    Anyways i believe it will start at $55.
     
    Razputin and blackbird like this.
  28. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    single pack plz
     
    Stiffx likes this.
  29. JouTaino45

    JouTaino45

    Joined:
    Dec 26, 2014
    Posts:
    22
    Single pack with all of the components would be much better.:)
     
    Stiffx likes this.
  30. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    thank you guys, so be it... Single pack
     
    blackbird likes this.
  31. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    so in general what will be included in this package ?
     
  32. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    For now:

    Main character with animations
    Big Zombie with animations
    C# Scripts
    Demo scene (Combat with the zombie)

    the dinosaur belongs to a friend that I'm creating a game, it's just to show what you can do with the package.

    Blackbird I'm also including the Melee animations you asked.
     
    Last edited: Jan 5, 2015
    Razputin, JouTaino45 and blackbird like this.
  33. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    great you are the best !!!
     
    Stiffx likes this.
  34. JouTaino45

    JouTaino45

    Joined:
    Dec 26, 2014
    Posts:
    22
    Awesome definitely, looking forward for the package...
     
    Stiffx likes this.
  35. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Updates - Zoom scope (sniper style, just configure your weapon as Use Scope = true)


    And a helper menu to add the TPSA system scripts out of the box
     
    Razputin and blackbird like this.
  36. Karamasha

    Karamasha

    Joined:
    Jan 5, 2015
    Posts:
    7
    Looks cool, hope you release it all soon.
     
    Stiffx likes this.
  37. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Thank you
     
  38. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    hope you didn t package your code as DLL
     
  39. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Nop! Pure C# code, you'll get the full source code
     
    blackbird likes this.
  40. kierenhovasapian

    kierenhovasapian

    Joined:
    Dec 23, 2014
    Posts:
    87
    Great! So excited!
     
    Stiffx likes this.
  41. ElectroMantis

    ElectroMantis

    Joined:
    Sep 15, 2013
    Posts:
    78
    The asset looks quite promising, I've been looking for an asset that will help with third person aiming.

    I have a few questions...

    If I understand correctly, the IK used for the arms is independent from unity's pro IK and thus can be used with unity free, is that so?

    Can the aim system be used with a custom camera control?

    And lastly, will you be releasing the scripts independent of the models? (I was planning on using my own).

    Anyways, the asset looks super. Can't wait until it's available.
     
    Stiffx likes this.
  42. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Thank you, I'm glad you like my work...

    That's true, no Unity PRO needed, i'm actually using UT free to get this done.

    I've never tested but the fact is that the aim system only need Y and X from camera, I think it should work for good.

    Also true, you'll only need to tweak the variables to adapt the new model.

    I'll be posting here a Setup for a new character model....
     
    Last edited: Jan 7, 2015
  43. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    New UPDATE - Snipeeeeeeeer
    Blackbird - There's the melee you asked.

    Please watch in HD
     
    Last edited: Jan 7, 2015
    JouTaino45 and blackbird like this.
  44. kierenhovasapian

    kierenhovasapian

    Joined:
    Dec 23, 2014
    Posts:
    87
    Do you have any ideas on how to implement a cover system in the pack too. I believe it would require a raycast linked to animation to drive the cover. Imagine using the cover, volting the cover (already implemented) and moving side to side along the cover. I would personally love this and invest to help get it done.
     
    Stiffx and blackbird like this.
  45. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Nice, i have some ideas on how to do this but nothing concrete, I would have to test it. Anyway is a good idea, maybe we can implement this in the pack I always love new ideas, but first I need to create the animations and it's time consuming so let it be an upgrade in the near future.
     
    kierenhovasapian likes this.
  46. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    i have something maybe it will help you i will send you a pm
     
    Stiffx likes this.
  47. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Thanks blackbird, appreciate that
     
    blackbird likes this.
  48. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    591
    you are welcome
     
    Stiffx likes this.
  49. JouTaino45

    JouTaino45

    Joined:
    Dec 26, 2014
    Posts:
    22
    I like the awareness of the 'enemy'(Dinosaur). Hope, it's released already...
     
    Stiffx likes this.
  50. Stiffx

    Stiffx

    Joined:
    Oct 27, 2014
    Posts:
    455
    Thanks JouTaino45, i'll release it this week
     
    JouTaino45 likes this.