View Single Post
Author Message
FlaminSarge
Veteran Member
Join Date: Jul 2010
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 - 4039 views - 19.3 KB)
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 08-04-2012 at 04:08.
FlaminSarge is offline