Terasology / LightAndShadow

Light & Shadow is an experimental game type set in a quirky Alice in Wonderland inspired setting
Apache License 2.0
8 stars 22 forks source link

Player vs Player Combat Mechanics (WIP) #68

Closed devibri closed 6 years ago

devibri commented 6 years ago

This PR encompasses the following changes: -Giving magic staff to player on teleport (complete) (Test with https://github.com/Terasology/LightAndShadowResources/pull/26) -Shooting raycast out from staff on activate -Checking to see if the raycast hits someone -If raycast does hit someone and that someone is holding a flag, the flag is dropped

skaldarnar commented 6 years ago

It looks like this PR is based on #67 which makes it hard to review (review only the relevant changes for this PR, that is). If you work on different parts of the code that are unrelated to each other you should branch off from master instead of another feature branch.

devibri commented 6 years ago

This PR now encompasses all of the changes for the scoring and raycasting code.

devibri commented 6 years ago

With the latest push, user should now be able to press the activate button (E) when targeting another player while holding the magic staff, and if that player is holding a flag, that flag is dropped.

Cervator commented 6 years ago

Did another round of testing and suggestions. Going to merge this now to make testing easier and a next PR cleaner :-)