Giter Club home page Giter Club logo

projectiledamageentity's Introduction

ProjectileDamageEntity

A projectile Entity for Suri MMORPGKit

This is an alternative to the Missile Damage Entity, based on, that don't use rigidbody or colliders. You can setup it to do arc movement, impact effects, no-impact effect, stick on, normal direction of effect at impact, etc.

--- How to use ---

  1. Create an empty gameobject
  2. Add the script ProjectileDamageEntity.cs Dont add anything more. -Configuration-
  3. If your game is offline, set the bool of Is Offline to true
  4. On HitLayers choose all the layers where the projectile can collide
  5. If you don't want your projectile to have an arc, skip this point. -Has Gravity: Activate if you want your projectile to have "gravity" -Custom Gravity: change how the gravity is applied. If left as Vector3.zero, its going to use Physics.Gravity -Use Angle: want to use a predefined starting angle? -Angle: define the launch angle -Recalculate Speed: This going to overwrite the speed of the weapon and calculate the speed bades on distance. This is really usefull for lockon targets.
  6. Prediction Steps: This is the number of times it check for contact each frame. Usually with 6-10 is more than enought. Tested with 200+ speed
  7. Effects - Choose: -If you want the impact effect to instatiate, choose the option "instantiate" adn drag and drop the prefab on the impactEffect slot -If you don't want to instatiate, add the effect as a child, deactivate the effect gameobject and drag and drop to the impactEffect slot In this case, i suggest to change the destroy delay so it can be displayed before despawn the projectile. -If you don't want to add an impact effect, ignore
  8. Do the same for the dissapear effect. This one display if the projectile reach max distance without hitting anything.
  9. Save as prefab
  10. Add to the weapon

Check the tooltips to understand what do what and have fun. Wish it help anyone doing shooters, because this way is more precise and "always hit"... plus arc is really good for "lock on" targets on a more traditional mmorpg style

projectiledamageentity's People

Contributors

copperbane avatar

Stargazers

Ashesh avatar Suppasit Srisaeng avatar  avatar  avatar  avatar zsr avatar  avatar Eska avatar Gordo Web Design avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.