Raised This Month: $12 Target: $400
 3% 

[L4D & L4D2] Smoker Cloud Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Plugin ID:
984
Plugin Version:
2.22
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    The Smoker's Cloud deals damage to Survivors and slows melee
    Old 07-07-2009 , 13:03   [L4D & L4D2] Smoker Cloud Damage
    Reply With Quote #1

    Originating from This Thread, here i have a new version of the Smoker Cloud Damage Plugin that shouldn't suffer from vocalize hook inacurateness.

    A big Thanks to strontiumdogs Gas Plugin whose code was very helpful


    It hooks a Smokers Demise and creates a periodic Function, which hurts all Survivors in set radius, for a variable time after.


    When damage is dealt, the Survivor gets a customizable Sound Effect, a HUD Damage notification and a written Hint above his crosshair that he's in fact suffering from standing in a Smoker Cloud.

    Damage is scored correctly for the inflicting Smoker.


    CVARS:
    l4d_cloud_damage_enabled (default 1)
    l4d_cloud_damage_damage (default 2) - Damage dealt every 2 seconds
    l4d_cloud_damage_time (default 17) - how long the damage effect persists
    l4d_cloud_damage_radius (default 250) - how wide the damage area is
    l4d_cloud_damage_sound (default player/survivor/voice/choke_5.wav) - link to the soundfile. You may only use those supplied with l4d
    l4d_cloud_meleeslow_enabled (default 1) - Being in a smoker cloud causes Melee Fatigue
    l4d_cloud_message_enabled (default 1) - 0 means disabled, 1 means small HUD Hint, 2 means big HUD Hint, 3 equals a Chat Notification to the victim
    l4d_cloud_shake_enabled (default 1) - adds a dizzying HUD shake effect when coughing
    l4d_cloud_blocks_revive (default 0) - setting to stop reviving in a cloud
    l4d_cloud_gamemodesactive (default "versus,teamversus,realism") - Set the gamemodes for which the plugin should be activated (same usage as sv_gametypes, i.e. add all game modes where you want it active separated by comma)


    Version History
    1.0 - Initial Release, bet i forgot something
    1.1 - Fixed Temp Damage Calculation and premature Handle Killing on Bot Disconnect
    1.2 - Reverted to point_hurt instead of an SDK call for HUD damage display
    1.3 - Fixed missing coughing effect and "Killed.." messages for real, improved damage accuracy
    1.4 - Added Melee Fatigue effect (can be turned on/off)
    1.5 - Hopefully Fixed Bot Console error Messages, added message CVAR, slightly changed message
    1.6 - fixed another Bot Console error Message
    1.7 - another console flodder cleanup
    1.8 - added CVAR and function for Revive Blocking Toggle
    1.9 - fixed Ghost Death Exploit, changed some default values.
    2.0 - fixed shitty Valve L4D Ghost coding Exploit .. again
    2.1 - added HUD shake effect, code optimizations
    2.11 - readjusted damage functions
    2.12 - small bugfix for L4D2 Hooksound "Array error" logs
    2.13 - bugfix concerning not applying "Shake" on L4D2
    2.14 - more notification options
    2.15 - code overhaul, now scores damage for Smoker, removed revive blocking convar
    2.16 - readded revive blocking
    2.17 - 0.1 second fixes -.-
    2.18 - added raytracing check
    2.19 - added gamemode convar
    2.20 - fixed gamemode convar to actually work
    2.21 - small fix to changing gamemodes not being recognized
    2.22 - small fix to last gamemode in gamemode convar being ignored
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_cloud_damage.sp - 15972 views - 12.5 KB)

    Last edited by AtomicStryker; 10-17-2011 at 06:12.
    AtomicStryker is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 07-07-2009 , 13:34   Re: Smoker Cloud Damage
    Reply With Quote #2

    Wooooo
    Dragonshadow is offline
    AngryVag
    Member
    Join Date: Jun 2009
    Old 07-07-2009 , 13:49   Re: Smoker Cloud Damage
    Reply With Quote #3

    Oh man this looks sweet! I'll be trying it out tonight for sure!
    __________________
    AngryVag is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 07-07-2009 , 17:07   Re: Smoker Cloud Damage
    Reply With Quote #4

    Nice. So it have come path from mere request, through scripting and now in new plugins
    olj is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 07-07-2009 , 17:24   Re: Smoker Cloud Damage
    Reply With Quote #5

    I dont see any hint anymore... and multiple infected bots' cloud damage stacks! I wonder if multiple player-smokers' cloud damage stacks too?
    olj is offline
    chunXray
    Member
    Join Date: Jul 2009
    Old 07-07-2009 , 17:58   Re: Smoker Cloud Damage
    Reply With Quote #6

    Maybe we can do same thing on boomer
    chunXray is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 07-07-2009 , 18:01   Re: Smoker Cloud Damage
    Reply With Quote #7

    Quote:
    Originally Posted by olj View Post
    I dont see any hint anymore... and multiple infected bots' cloud damage stacks! I wonder if multiple player-smokers' cloud damage stacks too?
    Its arrayed for both Players and (up to 5) bots, so ... YES


    Quote:
    Originally Posted by chunXray
    Maybe we can do same thing on boomer
    All you'd need to do is change the 'class' in the plugin to Boomer, and change from Timer to Execute-Once



    EDIT:
    Something like this xD
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_splash_damage.sp - 2985 views - 3.6 KB)

    Last edited by AtomicStryker; 07-09-2009 at 07:12.
    AtomicStryker is offline
    GrossKopf
    Senior Member
    Join Date: Jun 2007
    Old 07-07-2009 , 18:56   Re: Smoker Cloud Damage
    Reply With Quote #8

    Nice. I've installed it.
    GrossKopf is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 07-07-2009 , 20:17   Re: Smoker Cloud Damage
    Reply With Quote #9

    Nice, now we got boomer plugin also... I will use old smoker plugin version though (the one which hooked cough sounds), unless you fix hint message not displaying and stacking of clouds.

    Oh, it seems you just commented //PrintCenterText(target, "You're taking Damage from a Smoker Cloud!"); thats why i didnt see any message.
    olj is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 07-07-2009 , 22:26   Re: Smoker Cloud Damage
    Reply With Quote #10

    It didnt' work for me No damage.. Though I thoguht I got damaged at the start without a cough, after that though, nothing
    Thraka 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 08:40.


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