Search Unity

Unreal FPS - [Official Thread]

Discussion in 'Assets and Asset Store' started by InfiniteDawn, Mar 15, 2017.

?

Upgrade Unreal FPS to a version of Unity

Poll closed Apr 19, 2019.
  1. Leave Unity 5.6.0 and higher.

    11.5%
  2. Unity 2017.1.0 and higher.

    5.8%
  3. Unity 2018.1.0 and higher.

    13.5%
  4. Unity 2018.3.0 and higher.

    51.9%
  5. Unity 2019.1.0 and higher.

    17.3%
  1. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    Like in CS or Battlifield?
     
  2. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Like in CS :)
     
  3. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Where shoud i add it?
     
  4. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Btw:
    Check your mail you've got an new customer :)
     
  5. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    This code I wrote just now, very fast, for the work I can not vouch.
    Add these methods in class se_Bullet(void OnCollisionEnter), class se_ShootingSystem(void RayCast Attack)
    Code (CSharp):
    1. using UnityEngine;
    2.  
    3. public class ScorePointSystem
    4. {
    5.  
    6.     private int score;
    7.     private int money;
    8.  
    9.  
    10.     public void PhysicsCheck(Collision col, int scorePlus, int moneyPlus)
    11.     {
    12.         if (col.gameObject.tag.Equals("AI"))
    13.         {
    14.             if (col.gameObject.GetComponent<se_AIHealth>().GetHealth() <= 0)
    15.             {
    16.                 score += scorePlus;
    17.                 money += moneyPlus;
    18.             }
    19.         }
    20.     }
    21.  
    22.     public void RayCastCheck(RaycastHit hit, int scorePlus, int moneyPlus)
    23.     {
    24.         if (hit.transform.gameObject.tag.Equals("AI"))
    25.         {
    26.             if (hit.transform.gameObject.GetComponent<se_AIHealth>().GetHealth() <= 0)
    27.             {
    28.                 score += scorePlus;
    29.                 money += moneyPlus;
    30.             }
    31.         }
    32.     }
    33.  
    34.     //Getter
    35.     public int GetScore() { return score; }
    36.     public int GetMoney() { return money; }
    37. }
     
    Last edited: Apr 19, 2017
    Firesoft likes this.
  6. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    And where will the score be shown?
     
  7. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Ahh ok i get it :)
    Thanks. Will try!
     
  8. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    We warn you again that this was written in haste and efficiency has not been tested, we will add a high-quality system with the release of multiplayer.
     
    Firesoft likes this.
  9. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    It's your friend?)
     
    Firesoft likes this.
  10. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    No, but he seen my video and he thought I sell it haha :)
     
    InfiniteDawn likes this.
  11. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    There is no RayCast Attack in shootingsystem.
    But im gonna try something else.
     
    InfiniteDawn likes this.
  12. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    I cant see my Public Int, bool etc because of the inspector :p

    Its really hard to edit with the Editor Inspector.
     
    Last edited: Apr 18, 2017
  13. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    If you do not succeed you can throw your code we will add it in Inspector
     
    Firesoft likes this.
  14. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    AI:
    Tryed to the Multiple AI with

    target = GameObject.FindGameObjectWithTag("Enemy");

    But they are all just freaking out.
     
    Last edited: Apr 19, 2017
    InfiniteDawn likes this.
  15. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Fixed the AI Bug I've shown before:

    Video:
     
    InfiniteDawn likes this.
  16. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Added Pickups:

    Video:
     
  17. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    I freaking love your Framework :)

    Its so easy to customize!
    Keep up the great work!
     
    InfiniteDawn likes this.
  18. unicat

    unicat

    Joined:
    Apr 8, 2012
    Posts:
    416
    Is it easy to change the arms and the weapons ?
     
    InfiniteDawn and Firesoft like this.
  19. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Yes, its very easy and very well documented!
     
    InfiniteDawn likes this.
  20. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    And I can do a tutorial if you need help :)
     
    InfiniteDawn likes this.
  21. unicat

    unicat

    Joined:
    Apr 8, 2012
    Posts:
    416
    Haven`t bought it, but i think i will do. :)
     
  22. unicat

    unicat

    Joined:
    Apr 8, 2012
    Posts:
    416
    Ok, bought it. Will do some testing and then write a wishlist. :p
     
    Firesoft and InfiniteDawn like this.
  23. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    Thank you very much we are very pleased that you liked, our goal was to make the most powerful and easy to use framework
     
    Firesoft likes this.
  24. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    I hope you enjoy, if any questions or suggestions write!
     
  25. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Awesome :)
     
    InfiniteDawn likes this.
  26. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Nice Picture! :)
     
    InfiniteDawn likes this.
  27. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    I will integrate/ or try to integrate Easy AI!
    Will show you my progress :p
     
    InfiniteDawn likes this.
  28. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    Thank you!
     
  29. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    Cool, are you talking about the asset from the Asset Store?
     
    Firesoft likes this.
  30. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Yes! :)
     
    InfiniteDawn likes this.
  31. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    It has cover system and everything you need :)
     
    InfiniteDawn likes this.
  32. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    Try it, is very interesting that you get.
     
    Firesoft likes this.
  33. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Will do!
     
    InfiniteDawn likes this.
  34. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Where can I see (Next-Gen FPS) AI the damage he gets?
    Like from the raycast? In which script is it?
     
    InfiniteDawn likes this.
  35. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    Script se_RayCastAttack -> void ShootDamage
     
    Firesoft likes this.
  36. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    thx
     
  37. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Pretty hard to do.
     
  38. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    What you want to write?
     
  39. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Just found it.
    Needed to find where the enemy get his damage.
    Hes attacking me and everything but I cant do damage to him yet.
    Still trying to figure it out.

    But blood is coming out of him ^^
     
    InfiniteDawn likes this.
  40. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    You already wrote the code?
     
  41. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    This is the EnemyHealth Script:

    public class EnemyHealth : MonoBehaviour {

    public int health = 100;

    private Animator _anim;
    private UnityEngine.AI.NavMeshAgent _agent;

    private bool isDead;
    // Use this for initialization
    void Start () {

    _anim = GetComponent<Animator>();
    _agent = GetComponent<UnityEngine.AI.NavMeshAgent>();

    }


    public void TakeDamage(int amount, Vector3 hitPoint){

    health = health - amount;

    var temp = ZombieGameManager.current.getBloodPooledObject();

    temp.transform.position = hitPoint;
    temp.SetActive(true);


    if (health <= 0 && !isDead){

    Die();

    }
    }
    void Die(){
    isDead = true;
    _anim.SetTrigger("Die");
    _agent.Stop();
    StartCoroutine("Deactive");
    }
    IEnumerator Deactive (){


    yield return new WaitForSeconds(3f);

    //// re start the enemy

    Transform newPos = ZombieGameManager.current.getRandomPos();

    transform.position = newPos.position;

    _agent.SetDestination(newPos.position);
    _agent.Resume();
    _anim.SetTrigger("Restart");
    health = 100;

    isDead = false;
    ///


    }

    internal void TakeDamage(int damagePerShot, Vector3 point)
    {
    throw new NotImplementedException();
    }
    }
    }
     
    InfiniteDawn likes this.
  42. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    se_RayCastAttack This is what ive changed:

    public void ShootDamage(int damage)
    {
    try
    {
    EnemyHealth enemyHealth = rhit.collider.GetComponent<EnemyHealth>();
    if (rhit.transform.tag.Equals("Player")) { rhit.transform.gameObject.GetComponent<se_PlayerHealth>().SetHealth(rhit.transform.gameObject.GetComponent<se_PlayerHealth>().GetHealth() - damage); }
    if (rhit.transform.tag.Equals("AI")) { rhit.transform.gameObject.GetComponent<se_AIHealth>().SetHealth(rhit.transform.gameObject.GetComponent<se_AIHealth>().GetHealth() - damage); }
    if (enemyHealth != null)
    {
    enemyHealth.TakeDamage(damage);
    }
    }
    catch { }
    }
     
    InfiniteDawn likes this.
  43. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    BTW Im not a coder xD
     
  44. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Ok i cant do it lol

    Ya just doesnt work :/
    Just wasted 10$ lol
     
    Last edited: Apr 19, 2017
  45. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    My First Animation in Unity:

    Video:
     
    InfiniteDawn likes this.
  46. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Solved the grenade flying through the ground bug.
    I mean more professional!

    When I use a Plane it just falls through the floor.
    BUT... here comes the big BUT...

    When you use "Terrain" it doesnt fly through the ground!
    (Its just an alternative to the box collider on the plane)

    Hope it could help :)
     
    Last edited: Apr 20, 2017
    InfiniteDawn likes this.
  47. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Ohh and ladders would be great :D
     
    InfiniteDawn likes this.
  48. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    Please specify, that this is not our Asset
     
    Firesoft likes this.
  49. Firesoft

    Firesoft

    Joined:
    Dec 20, 2016
    Posts:
    308
    Ye I know that :)

    I really dont know whats wrong.
    He is attacking me(But without damage)

    I cant get the health system working.

    But ignore it i will try it later again.
    Im gonna read their and your docs.
     
  50. InfiniteDawn

    InfiniteDawn

    Joined:
    Feb 1, 2017
    Posts:
    667
    You want to say not running Easy AI?
     
    Firesoft likes this.
unityunity