AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Ghost Mode (v1.5, 08/04/2012) (https://forums.alliedmods.net/showthread.php?t=183266)

FlaminSarge 04-19-2012 21:07

[TF2] Ghost Mode (v1.5, 08/04/2012)
 
9 Attachment(s)
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

FlaminSarge 04-19-2012 21:08

Re: [TF2] Ghost Mode
 
Reserved.

NameUser 04-19-2012 21:12

Re: [TF2] Ghost Mode
 
Pretty nice plugin you got here. It is really fun to use on my tf2 server, and best of all, no errors!

Sreaper 04-19-2012 22:15

Re: [TF2] Ghost Mode
 
Cool plugin. Would you mind implementing a command that lets you toggle a player into ghost mode? :3
Also ghost's are able to be air-blasted.

RavensBro 04-20-2012 18:47

Re: [TF2] Ghost Mode
 
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.

ozgaming 04-20-2012 19:12

Re: [TF2] Ghost Mode
 
anyway to toggle on and off for players that want to stay in spec? Also they can use teleporter which is an issue.

Sorrowfire 04-20-2012 22:27

Re: [TF2] Ghost Mode
 
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...)

napalm00 04-21-2012 00:09

Re: [TF2] Ghost Mode
 
Quote:

Originally Posted by Sorrowfire (Post 1693321)
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.

FlaminSarge 04-21-2012 15:18

Re: [TF2] Ghost Mode
 
IsPlayerAlive returns false on ghosts already.

I made this with VSH servers in mind.

Update soon that prevents ghosts from stopping trains, adds command.

napalm00 04-21-2012 15:50

Re: [TF2] Ghost Mode
 
Quote:

Originally Posted by FlaminSarge (Post 1693842)
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! :bacon!:


All times are GMT -4. The time now is 16:50.

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