nicholas-maltbie / PropHunt-Mirror

PropHunt project made using Unity and Mirror Networking
MIT License
5 stars 1 forks source link

Basic Player Ranged Attack #78

Closed nicholas-maltbie closed 3 years ago

nicholas-maltbie commented 3 years ago

Description

Added a basic player ranged attack to the game.

This is a simple ranged attack that casts a ray (client side) from a player to see what it comes into contact with. If the ray hits a prop, then this is an attack and the prop is sent back to respawn and a message is logged to the debug chat (This could be improved with another feed in the top left of the UI later).

How Has This Been Tested?

This has been tested through unit tests, creating a local npc that can be attacked, and by creating multiple clients locally as well as clients over the internet. These tests verified the behaviour of the attacks and attempted to identify any future improvements.

Checklist:

github-actions[bot] commented 3 years ago

Test Coverage Results for editmode: Line Coverage: 100% Link to run results: https://github.com/nicholas-maltbie/PropHunt-Mirror/actions/runs/877021340

github-actions[bot] commented 3 years ago

Test Coverage Results for playmode: Line Coverage: 32.3% Link to run results: https://github.com/nicholas-maltbie/PropHunt-Mirror/actions/runs/877021340