Closed nicholas-maltbie closed 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
Test Coverage Results for playmode: Line Coverage: 32.3% Link to run results: https://github.com/nicholas-maltbie/PropHunt-Mirror/actions/runs/877021340
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: