Moving player view after death
Hi. It is possible to move player's camera after death to some location(e.g. -122 425 678), and look to the target(that can be entity name/XYZ coords), and lock player camera changing possibility, like "first-person-only spectrating"?
Example: on de_dust2 after death each player view will be pointed to `credits sprite`, that is near CT spawn and will be there till new round start. [EDIT] http://forums.alliedmods.net/showthread.php?t=7985 - similar topic |
Something like this:
1. Create an entity 2. Set it's origin 3. Mess around with the angles 4. Use attach_view with id and entid |
Where i can find some plugin like this, or this "attach_view()" fx usage examples? what plugins can use them?
|
You can do it more easier if you check the pev(id, pev_iuser1), pev(id, pev_iuser2) and possibly pev(id, pev_iuser3). (FakeMeta way)
Register DeathMsg event and do a print out on these above values, I'm pretty certain when your a specator iuser1 is the camera position and iuser2 is the target you want to view. |
| All times are GMT -4. The time now is 16:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.