Raised This Month: $ Target: $400
 0% 

Spectators


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Peter
New Member
Join Date: Oct 2005
Old 10-30-2005 , 10:19   Spectators
Reply With Quote #1

Is there any chance to catch events from spectators (dead players)?
I would like to write a plugin that lets admins spectate all players, but non admins can only spectate teammates.
I like to avoid tasks, and striktly use events.
Is this possible? Are there any info sent to the server when spectators shift players or mode? Or is spectating commands client side only?

Anyone plz help
Peter is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-30-2005 , 10:22  
Reply With Quote #2

I don't think there is an event for when spectators hit their attack button. You'd have to do client_PreThink with get_user_button(id) & IN_ATTACK. It would still be sorta screwed though, then you'd have to spawn an ent above a player, and attach_view to that.

This has been tried before but no one was ever able to. What I put above is just throwing out random ideas, don't take it for writing in stone.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-30-2005 , 10:30  
Reply With Quote #3

Also, Any view function in AMXX seems to be broken, it will place or you view at the origin 0, 0, 0
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Peter
New Member
Join Date: Oct 2005
Old 10-30-2005 , 14:41  
Reply With Quote #4

If it is a client side only function... then info must be sent from server to client, is here a way to alter this info? I mean can it be done to change "mp_forcechasecam 1" to "mp_forcechasecam 0" in the serverinfo for just the admins?

..just a thought
Peter is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-30-2005 , 14:47  
Reply With Quote #5

You may be able to catch right before some presses the attack button to switch view, and then do mp_forcechasecamera 1, then right when he's done pressing it, set it to 0. The only problem is, the engine might push him back to the mp_forcechasecamera 0 view after it's set, rather than waiting until he naturally moves out.

Another problem, catching +attack. It's a bit value, and the only way I know for sure you can catch it is get_user_button(id) & IN_ATTACK, which works after the player pressed the button.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply


Thread Tools
Display Modes

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 00:04.


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