Raised This Month: $154 Target: $400
 38% 

[TF2] Sleeper Extinguish


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlaminSarge
Veteran Member
Join Date: Jul 2010
Plugin ID:
2603
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    The Sydney Sleeper will extinguish teammates where it normally jarates enemies
    Old 10-11-2011 , 04:23   [TF2] Sleeper Extinguish
    Reply With Quote #1

    Yeap.

    Makes sense.
    The Sleeper normally adds Jarate to hit enemies after charging for 1 second (around 27% charge), so this also allows it to extinguish burning teammates when at or above that charge.

    Version cvar: tf2_slprxtngsh_version
    Attached Files
    File Type: sp Get Plugin or Get Source (sleeperextinguish.sp - 748 views - 2.1 KB)
    __________________
    Bread EOTL GunMettle Invasion will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, 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 otherwise.
    Psyduck likes replays.

    Last edited by psychonic; 12-10-2013 at 17:12. Reason: resaving post as-is to maybe fix something
    FlaminSarge is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: Soviet Union
    Old 10-11-2011 , 08:33   Re: [TF2] Sleeper Extinguish
    Reply With Quote #2

    * require random crits enabled. Right?
    Leonardo is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 10-11-2011 , 08:45   Re: [TF2] Sleeper Extinguish
    Reply With Quote #3

    Would it benefit servers with HL StatsX or similar to create a "player_extinguish" event with the proper data when a player does extinguish a player with a sleeper?
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 10-11-2011 , 12:08   Re: [TF2] Sleeper Extinguish
    Reply With Quote #4

    The IsValidClient stock you are defining, seems pretty odd.
    - How (+why) do you give your replay and sourcetv bot adminrights anyway?
    - Why is being an admin (with a certain username) relevant for being a valid client in the first place?

    Suggestions:
    - You should probably disable the plugin if friendly fire is turned on.
    - An enable cvar to turn it off (this is a must have, isnt it?)
    - Maybe a cvar to control the required chargelevel
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 10-12-2011 , 08:20   Re: [TF2] Sleeper Extinguish
    Reply With Quote #5

    For the IsValidClient questions:
    I have the Admin check in there because http://forums.alliedmods.net/showthread.php?t=157485 assigns the two as admins with those names. It's an extended IsValidClient stock I'm beginning to use, just so the plugin ignores replay. It only checks if the client is an admin with the names "SourceTV" or "Replay", and marks them as invalid clients if so, that's all.

    Charge level cvar, k.
    Enable cvar, k.
    FF check, k.

    Player extinguish event, k.

    Will do that as soon as I update Randomizer.

    Yes, I believe this plugin requires that you have random crits enabled. If it becomes a problem I'll try swapping it out for a different method.
    __________________
    Bread EOTL GunMettle Invasion will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, 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 otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    Thraka
    SourceMod Donor
    Join Date: Aug 2005
    Old 10-25-2011 , 18:51   Re: [TF2] Sleeper Extinguish
    Reply With Quote #6

    Booo.. I have random crits off Sounds awesome though.
    Thraka is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 11-04-2011 , 18:21   Re: [TF2] Sleeper Extinguish
    Reply With Quote #7

    You could probably try using player_shoot event. That event is under generic source events, but if it's available and works properly in tf2 for sniper rifles it's a perfect replacement for TF2_CalcIsAttackCritical
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-04-2011 , 19:50   Re: [TF2] Sleeper Extinguish
    Reply With Quote #8

    Approved, however a few changes would be good:

    • I'm not sure why any of your IsValidClient check is needed since TF2_CalcIsAttackCritical won't be called unless the client is firing a weapon.
    • Your weapon name check is redundant since you check the item index on the following 2 lines.
    • You might want to add some sort of advertisement message if a player spawns with a Sydney Sleeper so they know they can put teammates out.

    Thrawn2 also makes some good suggestions especially the chargelevel cvar.

    Also, in your post you have your version cvar and version number in the wrong fields.
    __________________

    Last edited by DarthNinja; 11-04-2011 at 19:52.
    DarthNinja is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 11-05-2011 , 00:28   Re: [TF2] Sleeper Extinguish
    Reply With Quote #9

    1) Probably.
    2) I could always have a tf_weapon_minigun with index 230.
    3) Yeah, a cvar to have it show or not
    4) Yeap, cvar for chargelevel.
    5) Fixed.
    __________________
    Bread EOTL GunMettle Invasion will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, 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 otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-05-2011 , 04:42   Re: [TF2] Sleeper Extinguish
    Reply With Quote #10

    Quote:
    Originally Posted by FlaminSarge View Post
    2) I could always have a tf_weapon_minigun with index 230.
    Do tell.
    How exactly?
    __________________

    Last edited by DarthNinja; 11-05-2011 at 04:44.
    DarthNinja 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 05:38.


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