Monthly Target: $400 Donations: $334
 83% 

[TF2] Ghost Mode (v1.5, 08/04/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlaminSarge
Veteran Member
Join Date: Jul 2010
Plugin ID:
2915
Plugin Version:
1.5
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Approver:
    Plugin Description:
    When you die, you turn into a ghost.
    Servers with this Plugin:
    5 
    Old 04-19-2012 , 21:07   [TF2] Ghost Mode (v1.5, 08/04/2012)
    Reply With Quote #1

    CSS: Redie was for CSS. This is for TF2.

    I'd think it works fairly well, particularly for arena.

    CVARS:
    ghostmode_version - do not touch
    ghostmode_enablemode - default 1. 0-disable ghostmode; 1-enable ghostmode; 2-enable only in arena. If toggling is disabled, this is used as the ghostmode setting for every player who has access to ghostmode.
    ghostmode_allowtoggle - default 1. 0-disallow toggling; 1-allow toggling; 2-disallow toggling only for arena. If toggling is enabled (global or non-arena during a non-arena), then clients can toggle ghostmode to bypass the 'ghostmode_enablemode' cvar.
    ghostmode_alpha - default 70. Set from 0 to 255 for how visible ghosts are. 0 is invisible, 255 is as visible as live players.
    ghostmode_thirdperson - default 0. 0-ghosts do not have thirdperson; 1-ghosts have thirdperson.
    ghostmode_taunt - default 1. 0-ghosts cannot taunt (for high-five, etc); 1-ghosts can taunt (though it does nothing if they aren't high-fiving somebody else)
    ghostmode_powers - default 3. 0-no ghost powers; 1-Flight (hold altfire); 2-Teleportation (primary fire; you teleport to live, non-crouching teammates); 3-both

    COMMANDS:
    sm_ghosttoggle
    sm_ghostmode
    sm_ghostm
    tf_redie
    - All four commands toggle ghostmode if toggling is allowed.

    OVERRIDES (set this in admin_overrides.cfg to restrict access to ghost mode):
    "ghostmode" - Only clients with this access can ever become ghosts, regardless of the cvars above.

    I'm planning on expanding this to work in any game, but for right now it's TF2 only.

    I am NOT sure how SMAC reacts to this.

    Stuff's kinda glitchy when you're a ghost. You don't really disrupt live people's gameplay though.

    If you're using ThirdPerson by DarthNinja, use this version https://forums.alliedmods.net/showpo...4&postcount=45

    Changelog
    Code:
    08/04/2012 (v1.5)
    *Fixed ghosts changing to spec and breaking their spec-cam movement
    *Hid healthbar and other stuff for ghosts (just like being dead!)
    
    07/23/2012 (v1.4)
    *Apparently you could attack with the fists as a ghost. Strange. Fixed. Thanks again to Bottiger for the quick report.
    
    07/22/2012 (v1.3)
    *Really fixed collision stuff
    *Fixed ghosts being able to change class in spawn to respawn quicker
    
    07/18/2012 (v1.2)
    *Fixed pushing around - thanks to Bottiger for the fix
    *Made wearable items take the same alpha value as the player, so they also become transparent
    
    05/15/2012 (v1.1)
    *Toggling system
    *Cvars to manage enable/disable/arena/toggling in different modes
    *Cvar for thirdperson
    *Cvar for taunting
    *Cvar for how visible ghosts are
    *Fixed ghosts taking teleporters (they automatically warp to the exit without using the teleporter). Plugins that teleport ghosts on top of teleporters may allow them to take them.
    *Fixed trainstopping (fix found by VoiDeD)
    
    04/19/2012 (v1.0)
    *Initial release
    Previous total plugin views - 680
    Attached Files
    File Type: sp Get Plugin or Get Source (ghostmode.sp - 2029 views - 19.3 KB)
    __________________
    Bread EOTL will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, BetheHorsemann, etc. (+SaxtonHale)
    Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia if you don't.
    Psyduck likes replays.

    Last edited by FlaminSarge; 08-04-2012 at 04:08.
    FlaminSarge is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 04-19-2012 , 21:08   Re: [TF2] Ghost Mode
    Reply With Quote #2

    Reserved.
    __________________
    Bread EOTL will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, BetheHorsemann, etc. (+SaxtonHale)
    Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia if you don't.
    Psyduck likes replays.
    FlaminSarge is offline
    NameUser
    Senior Member
    Join Date: Apr 2012
    Location: Bay Area, California
    Old 04-19-2012 , 21:12   Re: [TF2] Ghost Mode
    Reply With Quote #3

    Pretty nice plugin you got here. It is really fun to use on my tf2 server, and best of all, no errors!
    __________________
    NameUser is offline
    Send a message via Skype™ to NameUser
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Location: Source SDK
    Old 04-19-2012 , 22:15   Re: [TF2] Ghost Mode
    Reply With Quote #4

    Cool plugin. Would you mind implementing a command that lets you toggle a player into ghost mode?
    Also ghost's are able to be air-blasted.

    Last edited by Sreaper; 04-21-2012 at 03:10.
    Sreaper is offline
    RavensBro
    Veteran Member
    Join Date: Sep 2009
    Location: Wisonsin USA
    Old 04-20-2012 , 18:47   Re: [TF2] Ghost Mode
    Reply With Quote #5

    freaking nice lol just got off my server looks awsome only thing though once you die and turn into a ghost you dont walk just move around now if they could keep moving as in arms, legs is what i mean by that. that would be even nicer i would think.
    RavensBro is offline
    ozgaming
    SourceMod Donor
    Join Date: Aug 2011
    Old 04-20-2012 , 19:12   Re: [TF2] Ghost Mode
    Reply With Quote #6

    anyway to toggle on and off for players that want to stay in spec? Also they can use teleporter which is an issue.
    ozgaming is offline
    Sorrowfire
    Member
    Join Date: Jul 2010
    Location: <Missing String>
    Old 04-20-2012 , 22:27   Re: [TF2] Ghost Mode
    Reply With Quote #7

    Now this seems like an interesting plugin Sarge... Any chance it works without too many issues when used on a hale server? (Probably not) As clients can get rather bored of waiting for a round to end. (A game of pong never seems to quite cut it with them...)
    __________________
    "Nothing is True, Everything is Permitted"
    Sorrowfire is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 04-21-2012 , 00:09   Re: [TF2] Ghost Mode
    Reply With Quote #8

    Quote:
    Originally Posted by Sorrowfire View Post
    Now this seems like an interesting plugin Sarge... Any chance it works without too many issues when used on a hale server? (Probably not) As clients can get rather bored of waiting for a round to end. (A game of pong never seems to quite cut it with them...)
    You'll have to update every IsPlayerAlive check in VSH to check that the player is not a ghost too.
    __________________
    napalm00 is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 04-21-2012 , 15:18   Re: [TF2] Ghost Mode
    Reply With Quote #9

    IsPlayerAlive returns false on ghosts already.

    I made this with VSH servers in mind.

    Update soon that prevents ghosts from stopping trains, adds command.
    __________________
    Bread EOTL will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, BetheHorsemann, etc. (+SaxtonHale)
    Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia if you don't.
    Psyduck likes replays.

    Last edited by FlaminSarge; 04-21-2012 at 15:19.
    FlaminSarge is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 04-21-2012 , 15:50   Re: [TF2] Ghost Mode
    Reply With Quote #10

    Quote:
    Originally Posted by FlaminSarge View Post
    IsPlayerAlive returns false on ghosts already.

    I made this with VSH servers in mind.

    Update soon that prevents ghosts from stopping trains, adds command.
    Simply great, thanks!
    __________________
    napalm00 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 07:40.


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