First Person View on another player help
Hey all,
I'm writing a plugin that will allow a player to spectate another player in first-person view without joining the spectators team. The following code does exactly what I want except for one thing: the model of the player is still visible when I'm spectating them. Is there a way to make it so the camera entity does not see the model of the player it is following? (The camera is right at the spectatee's eye level so I'm always seeing the back of their neck basically.) Code:
|
Re: First Person View on another player help
Set its aiment to the client it's following. That should prevent you from seeing him.
If pev_aiment doesn't do it, do it in EntityState |
Re: First Person View on another player help
1 Attachment(s)
I used the following to set the aiment, but I can still see the model of the player I'm following:
Code:
if (target) { I used EntityState in the following manner and it crashes the game: Code:
if (target) { |
Re: First Person View on another player help
That's not how you do it with entity state.
Code:
Hopefully that gives you the idea. Make sure you include fakemeta. |
Re: First Person View on another player help
I played around with this a lot, and the model is still visible. Is there a property that the "player" entity has that makes it so it doesn't see's it's own model?
|
Re: First Person View on another player help
No there isn't a property. I wish there was. I was trying to achieve almost the exact opposite a while back, here: http://forums.alliedmods.net/showthread.php?t=52441
|
All times are GMT -4. The time now is 03:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.