Raised This Month: $12 Target: $400
 3% 

Admin Free Look


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   VEN (29)
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-05-2007 , 06:10   Admin Free Look
Reply With Quote #1

Description:
When an admin who has flag "d" (ADMIN_BAN) is dead, it allows him to spectate the players of the other team no matter "mp_forcechasecam" is set.
no cvars and commands.
for cs only

Credits:
Damaged Soul - message logging
SubStream, VEN - suggestions
Vm|Mayhem, lantz69 - test

completely rewrote. (new method, solved the bugs coming with the old generation)

To Win32 Users:
Please use this
Module: Admin Free Look

Linux server: try this please:
http://forums.alliedmods.net/showpos...1&postcount=68
It works under Windows too. Orpheu module is required.
credits goes to Arkshine
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>

Last edited by jim_yang; 07-29-2012 at 02:24.
jim_yang is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 01-05-2007 , 09:17   Re: Admin Free Look
Reply With Quote #2

simple and usefull . gj
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 01-05-2007 , 10:44   Re: Admin Free Look
Reply With Quote #3

I was just thinking the other day...

"Man I need to write a plugin for myself that lets me freelook and nobody else.. hmmm.. how can I do that?"

Well this is awesome. GJ on the message_begin and all that to make it look like the person is still on the team they were on. I'll go test this right now and repost how it's working. Nice work.

Edit:

Okay I just tested this and I found a few things you could add to make it even better/more compatible/etc.

Issues:

#1: When a terrorist dies he immediately gets a CT skin because he is going into spectate and players noticed this immediately. This caused confusion as well as tipped off players that I could spectate. In addition, it made it hard for Terrorists to know where teammates had died.

Suggested fix: Maybe a set_task delay of 2 seconds or something similar to delay the team change upon death so that it's not directly hooked to the death--resulting in a skin change upon death.


#2: Let's say I die, and now I really DO want to be in spectate. I switch to spectate and the next round I'm respawned on my previous team. I wanted to be in spectate to go to the bathroom and when I got back, I was being killed because I was alive still.

Suggested fix: Perhaps add a command like say /brb (similar to cheap_suits plugin) that grabs the players team as a spectator, sends the admin to spectate, does a message_begin/etc. with the team set as spectator, and prevents the person from being spawned on a team the next round.

If you could add those features, that'd be great.

Thanks.

Last edited by SubStream; 01-05-2007 at 12:06.
SubStream is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-05-2007 , 15:20   Re: Admin Free Look
Reply With Quote #4

1. Your team restoring method doesn't take care of manual team changes.

2. I recommend to hook ClCorpse message/event. set_task would be needed if there wasn't such accurate way.

3. I recommend to hook the new round instead of a round end (see the "Code Snippets/Tutorials" section for details). Then you obviously will not need #Game_will_restart_in hook.

4. If yo skip bots in the second case, you obviously have to check for them in the first case as well. Bot potentially may recieve the corresponding access level.

Last edited by VEN; 01-05-2007 at 15:28.
VEN is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-06-2007 , 10:12   Re: Admin Free Look
Reply With Quote #5

thanks for the feedback and suggestion and sorry for the delay, i've been busy these two days.
1. maual team changes check added
2. add a delay after death, but still not good. all models turn to urban when being a spec.
3. some servers don't have the HLTV event. i don't know why. it says invalid event when server init.
4. ingore bot totally.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kyiv
Old 01-06-2007 , 11:07   Re: Admin Free Look
Reply With Quote #6

thx a lot!!!
+karma
hasta is offline
Send a message via ICQ to hasta
Old 01-06-2007, 11:18
hasta
This message has been deleted by VEN. Reason: ok
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 01-06-2007 , 15:01   Re: Admin Free Look
Reply With Quote #7

If you can fix the bug with the model changing on the ground then I would love to use it. Let me know if you figure out how to fix that bug.
SubStream is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-08-2007 , 00:29   Re: Admin Free Look
Reply With Quote #8

updated, like VEN said before, i should hook the ClCorpse event, then the model will not change, but ClCorpse event doesn't involve player's id, so i change the delay time to 5.0. now it looks better.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-08-2007 , 05:13   Re: Admin Free Look
Reply With Quote #9

Quote:
ClCorpse event doesn't involve player's id
Go to the wiki and see. The last argument should be the player index.
VEN is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-08-2007 , 06:46   Re: Admin Free Look
Reply With Quote #10

now fixed the issues. hook corpse and use new round
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
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 08:14.


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