Raised This Month: $ Target: $400
 0% 

Moving player view after death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JanisB_
New Member
Join Date: Jan 2006
Old 06-07-2006 , 15:45   Moving player view after death
Reply With Quote #1

Hi. It is possible to move player's camera after death to some location(e.g. -122 425 67, 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
JanisB_ is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-07-2006 , 16:18  
Reply With Quote #2

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
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
JanisB_
New Member
Join Date: Jan 2006
Old 06-07-2006 , 16:44  
Reply With Quote #3

Where i can find some plugin like this, or this "attach_view()" fx usage examples? what plugins can use them?
JanisB_ is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 06-08-2006 , 06:53  
Reply With Quote #4

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.
Orangutanz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode