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

[L4D & L4D2] Smoker Cloud Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Neon123
Senior Member
Join Date: Jan 2016
Old 12-21-2018 , 19:36   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #261

work in l4d2 ?
Neon123 is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 12-22-2018 , 01:52   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #262

Quote:
Originally Posted by Neon123 View Post
work in l4d2 ?
Yes, this version works fine: https://forums.alliedmods.net/showpo...&postcount=260
Mr. Man is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 07-19-2020 , 04:40   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #263

Quote:
Originally Posted by Ernecio View Post
Hi All I have taken the version by ConnerRia and have updated the new declarations of SoucerMod for my personal use at first, but I want to share my version for me working good in L4D1 and L4D2, the web compiler works on SourceMod 1.10, but if you have SourceMod 1.9 take the compiled version:
After throwing it on the server it did nothing for me.

I had to change:

isAllowedGameMode = ListContainsString(convarsetting, ",", gamemode);

to

isAllowedGameMode = ListContainsString(convarsetting, ", ", gamemode);

in order to get the gamemode working.

I guess it is bc the gamemodes are seperated with ", " <- blank after ,

Better change the default convar without blanks like in the original.
__________________

Last edited by finishlast; 07-19-2020 at 05:06.
finishlast is offline
AI0702
Junior Member
Join Date: Apr 2021
Old 06-14-2021 , 13:53   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #264

Can someone edit this version

https://forums.alliedmods.net/showpo...&postcount=260

and add such an event that causes the survivors to avoid the smoke cloud, like they avoid the spitter's spit pool, because the bots just stand there in the cloud radius, coughing and taking damage.

Last edited by AI0702; 06-14-2021 at 14:10.
AI0702 is offline
DonProof
Junior Member
Join Date: Jun 2021
Old 10-14-2021 , 13:54   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #265

The add-on works but I have a problem, when there is smoke from Smoker a damage sound is played to the player which lasts 4 times and is no longer heard. The sound is not that of choke_5.wav it is another sound that I think is from this line
DispatchKeyValue(entPointHurt, "DamageType", reviveblock ? "65536" : "263168");
how I increase the duration of that sound until the smoke time ends.
DonProof is offline
Breezy173
New Member
Join Date: Oct 2022
Old 10-03-2022 , 18:11   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #266

I decided to try this plugin out. It doesn't appear to work. I looked in the cfg folder to see if maybe I had to turn it on, but everything was already configured. Convars don't show up in game in the console either. Is there something else I have to do besides just dropping it in the plugins folder?
Breezy173 is offline
Slaven555
Member
Join Date: Jul 2018
Old 10-04-2022 , 01:36   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #267

Quote:
Originally Posted by DonProof View Post
The add-on works but I have a problem, when there is smoke from Smoker a damage sound is played to the player which lasts 4 times and is no longer heard. The sound is not that of choke_5.wav it is another sound that I think is from this line
DispatchKeyValue(entPointHurt, "DamageType", reviveblock ? "65536" : "263168");
how I increase the duration of that sound until the smoke time ends.


Try commenting out these lines:

DispatchKeyValue(victim, "targetname", strDamageTarget);
DispatchKeyValue(entPointHurt, "DamageTarget", strDamageTarget);
DispatchKeyValue(entPointHurt, "Damage", strDamage);

Last edited by Slaven555; 10-04-2022 at 01:37.
Slaven555 is offline
DonProof
Junior Member
Join Date: Jun 2021
Old 10-07-2022 , 01:51   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #268

Quote:
Originally Posted by Slaven555 View Post
Try commenting out these lines:

DispatchKeyValue(victim, "targetname", strDamageTarget);
DispatchKeyValue(entPointHurt, "DamageTarget", strDamageTarget);
DispatchKeyValue(entPointHurt, "Damage", strDamage);
thanks but what I want is for the damage sound to go along with the cough sound, I don't want to remove it.

Code:
    // Config, create point_hurt
    DispatchKeyValue(victim, "targetname", strDamageTarget);
    DispatchKeyValue(entPointHurt, "DamageTarget", strDamageTarget);
    DispatchKeyValue(entPointHurt, "Damage", strDamage);
    DispatchKeyValue(entPointHurt, "DamageType", reviveblock ? "65536" : "263168");
    DispatchSpawn(entPointHurt);
    
    // Teleport, activate point_hurt
    TeleportEntity(entPointHurt, victimPos, NULL_VECTOR, NULL_VECTOR);
    AcceptEntityInput(entPointHurt, "Hurt", (attacker > 0 && attacker < MaxClients && 
    IsClientInGame(attacker)) ? attacker : -1);
    
    // Config, delete point_hurt
    DispatchKeyValue(entPointHurt, "classname", "point_hurt");
    DispatchKeyValue(victim, "targetname", "null");
    RemoveEdict(entPointHurt);
the problem I said above is that the damage sound stops playing and only the cough sound sounds, my question is how do I make that sound go to the end next to the cough sound.
Attached video demonstration of the problem I have

Click here
DonProof is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 11-19-2022 , 16:59   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #269

if using Left 4 DHooks Direct to make this, just 4 lines here needed

PHP Code:
#include <sdkhooks>
#include <left4dhooks>
public void L4D_OnPlayerCough_Post(int clientint attacker) {
    
SDKHooks_TakeDamage(clientclientclient1.0);

Attached Files
File Type: sp Get Plugin or Get Source (l4d_smoker_cloud_lite.sp - 265 views - 1.4 KB)
__________________

Last edited by NoroHime; 11-19-2022 at 16:59.
NoroHime is offline
apples1949
Junior Member
Join Date: Apr 2021
Old 07-31-2023 , 00:48   Re: [L4D & L4D2] Smoker Cloud Damage
Reply With Quote #270

https://forums.alliedmods.net/showthread.php?t=339852
apples1949 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 06:13.


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