AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Smoker Cloud Damage (https://forums.alliedmods.net/showthread.php?t=96665)

AtomicStryker 07-07-2009 13:03

[L4D & L4D2] Smoker Cloud Damage
 
26 Attachment(s)
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 :D
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

Dragonshadow 07-07-2009 13:34

Re: Smoker Cloud Damage
 
Wooooo :D

AngryVag 07-07-2009 13:49

Re: Smoker Cloud Damage
 
Oh man this looks sweet! I'll be trying it out tonight for sure!

olj 07-07-2009 17:07

Re: Smoker Cloud Damage
 
Nice. So it have come path from mere request, through scripting and now in new plugins :)

olj 07-07-2009 17:24

Re: Smoker Cloud Damage
 
I dont see any hint anymore... and multiple infected bots' cloud damage stacks! I wonder if multiple player-smokers' cloud damage stacks too?

chunXray 07-07-2009 17:58

Re: Smoker Cloud Damage
 
Maybe we can do same thing on boomer :D

AtomicStryker 07-07-2009 18:01

Re: Smoker Cloud Damage
 
1 Attachment(s)
Quote:

Originally Posted by olj (Post 866731)
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 :D

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

GrossKopf 07-07-2009 18:56

Re: Smoker Cloud Damage
 
Nice. I've installed it.

olj 07-07-2009 20:17

Re: Smoker Cloud Damage
 
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.

Thraka 07-07-2009 22:26

Re: Smoker Cloud Damage
 
It didnt' work for me :( No damage.. Though I thoguht I got damaged at the start without a cough, after that though, nothing


All times are GMT -4. The time now is 19:30.

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