This is PropHunt, props need to be caught by hunters.
Whenever a player is attacked as a prop, kill their character and create an event handler on the server for these events.
Hunters should be able to click to "attack" a prop that is in a ray cast directly from the player's camera.
if the raycast hits a prop player (can do client side attacks so server lag isn't a think, do raycast locally and send attack even to server, in future this could be verified on server so no shooting around walls/etc...) player is"caught"
For right now, simply generate a log message that "x caught y" and respawn the caught player at a given spawn location.
Do NOT implemented health or other mechanics for now.
This is PropHunt, props need to be caught by hunters.
Whenever a player is attacked as a prop, kill their character and create an event handler on the server for these events.
For right now, simply generate a log message that "x caught y" and respawn the caught player at a given spawn location.
Do NOT implemented health or other mechanics for now.