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

[L4D] L4DNoSmoking (v1.0.5, 2019-07-23)


Post New Thread Reply   
 
Thread Tools Display Modes
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 07-23-2019 , 13:38   Re: [L4D] L4DNoSmoking (v1.0.0, 2019-07-22)
Reply With Quote #11

Quote:
Originally Posted by Aya Supay View Post
here the code
I just saw the new translation file.. now it is working with the playername.

It looks good so far, I'll put it on the server and let it run a bit.

I removed the obsolete player spawn part and put in Lux suggestion for cvars.
I also removed the victim check from the if clause, so we can check in case multiple smokers are around (via zspawn or other plugins)


PHP Code:
From:
if (
&& <= MaxClients && IsClientInGame(i) && GetClientTeam(i) == && != victim)// ignore the survivor getting smoked 

to
if (&& <= MaxClients && IsClientInGame(i) && GetClientTeam(i) == 2
Your help is really appreciated guys.

I ran it for a couple days, seems to be stable on l4d1. No idea about l4d2. Mb someone can give feedback for it.
Attached Files
File Type: sp Get Plugin or Get Source (L4DNoSmoking1.0.5.sp - 204 views - 8.6 KB)
File Type: txt l4d_nosmoking.phrases.txt (1.4 KB, 77 views)

Last edited by finishlast; 07-29-2019 at 14:51.
finishlast is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-02-2021 , 15:37   Re: [L4D] L4DNoSmoking (v1.0.5, 2019-07-23)
Reply With Quote #12

Shouldn't you just make the smoker have a forced cooldown of his smoke ability so instead of making the smoker bot trash, it will rush you and punch you?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 12-02-2021 , 16:19   Re: [L4D] L4DNoSmoking (v1.0.5, 2019-07-23)
Reply With Quote #13

Well I mostly use it on versus servers and it only kicks in when smoking the last survivor. On coop it might render the bot smoker useless when attacking last survivor. Preventing it from smoking at all would be another way. I have no clue how to accomplish that. Got any code snippets? For versus it is working very well though.

We have it set to slay the smoker and no complains by players at all.
__________________

Last edited by finishlast; 12-02-2021 at 16:21.
finishlast 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 18:59.


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