Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a crossbow or similar ranged item #4

Open
mckaraca opened this issue Nov 22, 2016 · 0 comments
Open

Implement a crossbow or similar ranged item #4

mckaraca opened this issue Nov 22, 2016 · 0 comments
Assignees

Comments

@mckaraca
Copy link

Description

Terasology has a railgun item that allows players to destroy the environment in a series of over-the-top explosions! The goal of this issue is to create a smaller-scale version of the railgun potentially allowing players to destroy environmental objects as well as NPCs.

Definition of 'Done'

A crossbow item is added to the game's Core module, building off the existing railgun while adding the following:

An appropriate icon. Instead of a crossbow you can use any ranged weapon of your choosing - longbow, sling or something even more creative 🙂
A maximum range for the crossbow's projectile.
A crafting recipe or quest to create the crossbow - this could be as simple as gathering a few resources and having them in your inventory.
[Optional] An ammo system - the crossbow uses projectiles from the player's inventory to fire and can't be used if none are available. The projectiles will also need to be created from a crafting recipe.
[Optional] Allow the explosion effects from the crossbow to hit NPCs and other non-block entities. This is the trickiest part and fairly low-priority, so it can be completed separately.
In the future, the crossbow may need to be integrated with the physics-based combat system (see MovingBlocks#2072) - however, until that's finalized, it can remain a standalone item along with the railgun and TNT.

Required skills

The issue involves working with the game's codebase and requires intermediate level Java skills. Some knowledge of Terasology's asset system is helpful but can be learned as you go along.

Where to start?

Review the Add New Item tutorial for information on how to add new items and test them in-game.
As mentioned previously, the crossbow should be based on the existing railgun item. Any additional in-game logic will need to be added to the org.terasology.logic.actions package in the Core module.
--- Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant