Raised This Month: $32 Target: $400
 8% 

[TF2] Discovered Effect


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Aderic
Senior Member
Join Date: Oct 2011
Plugin ID:
4388
Plugin Version:
1.2
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Adds a sound and visual effect when a cloaked spy is discovered.
    Old 10-18-2014 , 19:44   [TF2] Discovered Effect
    Reply With Quote #1

    Just an update: I no longer run servers, therefore I do not have an environment to continue updating my plugins. If you would like to take over development of one of my plugins, feel free to do so.

    What does this plugin do?

    Plays the ALERT! sound from Metal Gear Solid and shows an exclamation mark over the spy's head when bumped into or damaged.

    Who is it for?
    The very non-serious.

    How does it work?
    The effect plays when a Spy *flickers* from being damaged or bumped into while cloaked.

    CVARs
    Quote:
    sm_discovered_version - Current version of the plugin. Read Only
    sm_discovered_bump_cooldown - Amount of seconds required to elapse for effect.
    sm_discovered_bump_enabled - If 1, bumping into a cloaked spy will play the effect
    sm_discovered_shout_range - Distance required to detect a spy using the spy shout. Set to 0 to disable.
    sm_discovered_shout_cooldown - Amount of seconds required to elapse to shout spy to detect.
    Changelog:
    Quote:
    Version 1.0 - Initial release.
    Version 1.1 - Bumping into a player while cloaked now honors player FOV and determines whether the effect should be played or not based off of this.
    Added spy detection by shouting spy along with a cooldown and distance CVAR.
    Version 1.2 - Added CVAR to disable effect playing if bumped into a cloaked spy.
    Install instructions
    1. Click Get Plugin next to discovered_effect.sp to download the plugin.
    2. Move discovered_effect.smx into your sourcemod/plugins folder.
    3. Download required.zip and extract it to your fastDL, clients MUST be able to download these files.
    4. Change the map or restart the server, do NOT load the plugin manually after installing.
    Attached Files
    File Type: zip required.zip (33.2 KB, 531 views)
    File Type: sp Get Plugin or Get Source (discovered_effect.sp - 1206 views - 9.4 KB)
    __________________

    Last edited by Aderic; 10-19-2016 at 16:20. Reason: No longer active! Sorry, should have updated sooner.
    Aderic is offline
    HelpMe
    Senior Member
    Join Date: Jun 2013
    Location: Home
    Old 10-19-2014 , 05:57   Re: [TF2] Discovered Effect
    Reply With Quote #2

    Failed to load sound "alert_sound.mp3", file probably missing from disk/repository
    
    I think you should put the sound in a subfolder
    HelpMe is offline
    Aderic
    Senior Member
    Join Date: Oct 2011
    Old 10-19-2014 , 10:46   Re: [TF2] Discovered Effect
    Reply With Quote #3

    Quote:
    Originally Posted by HelpMe View Post
    Failed to load sound "alert_sound.mp3", file probably missing from disk/repository
    
    I think you should put the sound in a subfolder
    No, the sound does not need to be in a subfolder.

    Your fastdownload server is not working correctly.
    __________________
    Aderic is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 10-19-2014 , 11:18   Re: [TF2] Discovered Effect
    Reply With Quote #4

    Requesting triggering the effect when spy is cloaked and visible in enemy's FOV, also when somebody says 'Spy!'
    __________________
    Leonardo is offline
    Aderic
    Senior Member
    Join Date: Oct 2011
    Old 10-19-2014 , 11:20   Re: [TF2] Discovered Effect
    Reply With Quote #5

    Quote:
    Originally Posted by Leonardo View Post
    Requesting triggering the effect when spy is cloaked and visible in enemy's FOV, also when somebody says 'Spy!'
    What do you mean "when somebody says Spy"?

    You mean while actually looking at the Spy and screaming it?
    __________________
    Aderic is offline
    Marverlous
    Senior Member
    Join Date: May 2013
    Old 10-19-2014 , 11:51   Re: [TF2] Discovered Effect
    Reply With Quote #6

    While actually looking at a visible spy and saying "SPY!" would be awesome.
    __________________
    Marverlous is offline
    Oshizu
    Veteran Member
    Join Date: Nov 2012
    Location: Warsaw
    Old 10-19-2014 , 11:57   Re: [TF2] Discovered Effect
    Reply With Quote #7

    Quote:
    Originally Posted by Aderic View Post
    No, the sound does not need to be in a subfolder.

    Your fastdownload server is not working correctly.
    Or it might be just related to this issue:
    https://forums.alliedmods.net/showthread.php?t=250009
    __________________
    ...
    Oshizu is offline
    HelpMe
    Senior Member
    Join Date: Jun 2013
    Location: Home
    Old 10-19-2014 , 12:13   Re: [TF2] Discovered Effect
    Reply With Quote #8

    Let's just say that I didn't try restart my game... ._.

    Last edited by HelpMe; 10-19-2014 at 12:25.
    HelpMe is offline
    Aderic
    Senior Member
    Join Date: Oct 2011
    Old 10-19-2014 , 13:17   Re: [TF2] Discovered Effect
    Reply With Quote #9

    Quote:
    Originally Posted by Oshizu View Post
    Or it might be just related to this issue:
    https://forums.alliedmods.net/showthread.php?t=250009
    I see what you're saying. These are the files that get added via AddFileToDownloadsTable:
    Quote:
    sound/alert_sound.mp3
    materials/sprites/alert.vmt
    materials/sprites/alert.vtf
    I've tested the plugin thoroughly and run it on my public server, should be fine.

    Quote:
    Originally Posted by Marverlous View Post
    While actually looking at a visible spy and saying "SPY!" would be awesome.
    I will implement this today.

    Quote:
    Originally Posted by HelpMe View Post
    Let's just say that I didn't try restart my game... ._.
    That would definitely be the problem, clients already connected can't download the new precached files. These files have to be downloaded when the client is connecting. I'm glad you have it working.
    __________________

    Last edited by Aderic; 10-19-2014 at 13:20.
    Aderic is offline
    robotortoise
    Senior Member
    Join Date: Nov 2013
    Old 10-19-2014 , 15:41   Re: [TF2] Discovered Effect
    Reply With Quote #10

    This is one of the dumbest funniest plugins I've ever seen.

    10/10 Added to server
    __________________
    -Robotortoise [Palutena's Bro]

    If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

    Contact me via Steam

    I don't bite.


    How to loop and compress .wav files

    Me and my friends' server
    robotortoise 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 02:03.


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