• Getting the clients eye origin
    2 replies, posted
Hi This question is somewhat related to: [url]http://facepunch.com/showthread.php?t=1408434[/url] I am rewriting PlayerUse because the current one doesn't aim correctly because I'm altering the clients view origin and what not. However I need to know what the view origin of the client is on the server, sending continuous net messages would be absolutely terrible... Is there a better way to do this than to recompute everything on the server side and only send thirdperson toggle updates to the server from the client?
I think you need this, it is shared. [url]http://wiki.garrysmod.com/page/Player/GetEyeTrace[/url] and CalcView is clientside, so you shouldn't need much between the server and client.
[QUOTE=SaintSin6;45363551]I think you need this, it is shared. [url]http://wiki.garrysmod.com/page/Player/GetEyeTrace[/url] and CalcView is clientside, so you shouldn't need much between the server and client.[/QUOTE] I need to run the trace from the clients eye origin, I thought GetEyeTrace runs from where his eyeballs normally would be, does it not? [editline]12th July 2014[/editline] I solved this by doing all +use logic on the client side and networking the entity over.
Sorry, you need to Log In to post a reply to this thread.