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

[ANY] Quick Spectate (1.1, May 12 2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Plugin ID:
2917
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Because you shouldn't have to click a thousand times to spectate a specific player.
    Old 04-20-2012 , 14:55   [ANY] Quick Spectate (1.1, May 12 2012)
    Reply With Quote #1

    Kinda requested by Horsedick.

    sm_spec <target>
    to start spectating a player. That's it, nothing fancy. All players are allowed to use it. (Optional)
    sm_spec_ex <target> to spectate a player every time they spawn.

    Tested in TF2 but should work in any game. In TF2, if you "can't" spectate your target because of the state you're in (either alive, or dead but on the other team), you're moved to Spectator so that you can. In other games it will just assume that you can spectate them, and try to set your spec-sights on your target.

    Changelog

    1.1 May 12, 2012
    • Added admin menu support
    • Added sm_spec_ex command. Targeting others using this command will automatically set your spec onto them every time they respawn. "sm_spec_ex 0" to stop spectating
    • Added cvar "sm_spec_players", defaults to 1. Set to 0 to prevent non-admins from using Quick Spectate
    1.0 April 20, 2012
    • Release
    Attached Files
    File Type: sp Get Plugin or Get Source (spec.sp - 2086 views - 6.4 KB)
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

    Last edited by MasterOfTheXP; 10-17-2012 at 04:07.
    MasterOfTheXP is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 04-20-2012 , 16:56   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #2

    so this is a command that will just have you specate another player - next time the round starts and you die, you have to execute the command again, or will it switch you to spectate that targeted player (if they're alive)?
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 04-20-2012 , 16:58   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #3

    Quote:
    Originally Posted by TnTSCS View Post
    so this is a command that will just have you specate another player - next time the round starts and you die, you have to execute the command again, or will it switch you to spectate that targeted player (if they're alive)?
    It doesn't constantly force spectating on one target, it just places your camera on them and lets you do the rest. So if they die, or you stop spectating and start spectating again, you have to use the command on them again. They have to be alive.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 04-20-2012 , 17:17   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #4

    Ok this would be useful for a quick spectate as it is called vs shifting thru players. Thanks I'll give it a shot.
    Horsedick is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 04-20-2012 , 17:55   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #5

    nice!
    __________________
    Leonardo is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 04-20-2012 , 18:14   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #6

    Quote:
    Originally Posted by MasterOfTheXP View Post
    [URL="http://forums.alliedmods.net/showthread.php?p=1692596#post1692596"]In other games it will just assume that you can spectate them, and try to set your spec-sights on your target.
    Any plan on changing that to support at least popular mods like CS: S and DoD: S ? It feels really strange to have a plugin acting differently from one game to another (TF2 --> Switch team to spec if needed, but CS/DoD = need to be dead or in spectators...)

    Also L51 --> Else ? :$ You're running a function twice...
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 04-21-2012 , 03:39   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #7

    wait! no! bad!
    I hoped it's more like old mani's version
    once you selected target, you ALWAYS spectating him
    even if he's reconnected.
    __________________
    Leonardo is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 04-21-2012 , 04:02   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #8

    Quote:
    Originally Posted by RedSword View Post
    Any plan on changing that to support at least popular mods like CS: S and DoD: S ? It feels really strange to have a plugin acting differently from one game to another (TF2 --> Switch team to spec if needed, but CS/DoD = need to be dead or in spectators...)
    Next version I'll see what I can do in CS:S. I'm pretty sure jointeam can also be done with 2 and 3, not just red and blue, so yeah, maybe that's do-able in DOD:S as well.

    Quote:
    Originally Posted by RedSword View Post
    Also L51 --> Else ? :$ You're running a function twice...
    No big deal really...but I see your point. Will be fixed next version.

    Quote:
    Originally Posted by Leonardo View Post
    I hoped it's more like old mani's version
    once you selected target, you ALWAYS spectating him
    even if he's reconnected.
    The ability to constantly spectate a person can also be added in the next version, shouldn't be too hard.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 04-21-2012 , 05:29   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #9

    Quote:
    Originally Posted by MasterOfTheXP View Post
    Next version I'll see what I can do in CS:S. I'm pretty sure jointeam can also be done with 2 and 3, not just red and blue, so yeah, maybe that's do-able in DOD:S as well.
    Don't forget to use CS_SwitchTeam for CSS for teams Terro(2) and CT(3).

    Also, I believe you should use
    Code:
    SetEntPropEnt(client, Prop_Send, "m_hObserverTarget", targetToSee);
    and
    Code:
    ChangeClientTeam
    to change specTarget/teams, rather than faking commands. I'm pretty sure it's faster (even for a single exec :$).

    Btw; any plans for a menu ? So you can browse people ~7 at a time, rather than typing an unwrittable name.

    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 04-21-2012 at 05:29.
    RedSword is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 04-21-2012 , 09:43   Re: [ANY] Quick Spectate 1.0
    Reply With Quote #10

    Quote:
    Originally Posted by RedSword View Post

    Btw; any plans for a menu ? So you can browse people ~7 at a time, rather than typing an unwrittable name.

    Red

    To me he's already removed the browsing for people as that was what I needed, was to avoid hitting the cycle button to run thru players each time they died. If you do a menu and they die then you have to run back thru that menu again if you indeed do it that way which IMO would be defeating the purpose.
    Horsedick 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 03:41.


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