[TF2] MakeMeInvisible!
Credits to pheadxdll's Roll the Dice for invisibility code and DarthNinja's Fake Gifts for toggling code
Description:
You can make people invisible or visible. Very handy for trolling and generally getting people to ragequit. Works with
Updater (but it's not required).
Commands:- sm_makemeinvis_toggle [player(s)] - Toggles invisibility on target player(s). If player(s) is not specified, the client's invisibility is toggled.
- sm_makemeinvis [player(s)] - Turns on invisibility on target player(s), or client if not specified.
- sm_makemenormal [player(s)] - Turns off invisibility on target player(s), or client if not specified.
- sm_makemeinvis_timed <player(s)> [time] - Turns on invisibility on target player(s) for an amount of time (in seconds). If time is not specified, it uses the value of sm_makemeinvis_time.
- sm_makemecolored <player(s)> [R] [G] [B] [A] - Makes target player(s) turn into the selected color. Either you include all RGBA (decimal) values, include only the RGB values, or you include none of them. If you include none of them or only the RGB values, it uses the default according to your cvars. (Get RGB values using the link, A is just transparency (0 = transparent, 255 = opaque))
CVars:- sm_makemeinvis_version - Plugin version
- sm_makemeinvis_broadcast - Who is notified when invisibility is toggled ("0" = admin, "1" = admin and target (default), "2" = all players)
- sm_makemeinvis_time - Default time (in seconds) for invisibility timers (Default "30")
- sm_makemeinvis_defr - Default red value to use for sm_makemecolored (Default "0")
- sm_makemeinvis_defg - Default green value to use for sm_makemecolored (Default "0")
- sm_makemeinvis_defb - Default blue value to use for sm_makemecolored (Default "0")
- sm_makemeinvis_defa - Default alpha value to use for sm_makemecolored (Default "255")
- sm_makemeinvis_offondeath - Is invisibility turned off on death ("0" = no, "1" = yes (default))
- sm_makemeinvis_offonswitch - Is invisibility turned off on class switch ("0" = no, "1" = yes (default))
- sm_makemeinvis_offkillcam - Is invisibility turned off during deathcams? ("0" = no (default), "1" = yes)
- sm_makemeinvis_timerstyle - Style of invisibility timer ("0" = hint text (default), "1" = center text, "2" = hint and center text, "4" = no timer)
Installation Directions:- Place makemeinvisible.smx into your addons/sourcemod/plugins/ folder
- ???
- Profit
To-Do List- Flickering mode
- Custom Admin Flag
- Invisibility menu
Known Bugs- If a client has a invisibility timer, and then gets invisible (sm_makemeinvis), the timer will still count down and the invisibility will still be removed at the end
- Kills in rapid succession while visible during deathcam is on makes you invisible too quickly
Changelog:
- v1.3.4 (11-17-2011)
- Actually generates config now. Last version was bugged.
- v1.3.3 (11-16-2011)
- Automatically generates config file
- v1.3.2 (11-16-2011)
- Generated config files will actually run
- v1.3.1 (11-16-2011)
- Added Updater support (Thanks Dr. McKay!)
- v1.3.0 (11-16-2011)
- Added the visible during deathcam function. Not perfect, but works well enough.
- Added function to generate a separate config if you wish
- Changed default ALPHA value from 0 to 255
- Added cvar for timer style
- Added cvar for turning off invisibility on class switch
- Fixed bug with newer player inheriting invisibility from previous player
- v1.2.0 (11-14-2011)
- Fixed glitch where plugin would think client was still invisible after class change
- Added custom colors (RGBA) along with a whole slew of cvars
- Added setting to turn off invisibility on death
- v1.1.0 (11-13-2011)
- v1.0.1 (11-13-2011)
- Allowed groups to be selectable (@all, @red, @blue, etc)
- Changed commands a bit
- v1.0.0 (11-12-2011)
By the way, this is my first plugin, so if I did anything wrong/strangely, don't hesitate to tell me.
Total Downloads: 43 (Not including the current ones)