Boomerang

Rabassa

Member
Hello,

I'm trying to implement a boomerang weapon. I'd like to be able to throw, cause damage to another player or breakable object and return to the player's hand. Any suggestions where to start?


Thanks,
rich
 
You have two choices:

  • Subclass your boomerang class from ThrowableItem and then add to it from there. This will have the disadvantage in that you'll inherit all of the throwable's velocities but it would be a quicker way to get going while just setting the gravity to 0.
  • Create a new IUsableItem item and add all of the functionality from there. In the long run this is the route that I would take because you can completely customize to the exact design that you are going for.
 
Top