View Single Post
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin D.
Old 07-23-2019 , 06:05   Re: [L4D] L4DNoSmoking (v1.0.0, 2019-07-22)
Reply With Quote #9

That looks very good and gets rid of a lot of useless variables.

You did:

Code:
cvar_killorslap = CreateConVar("killorslap", "1", "1 kill smoker or 2 slap smoker", CVAR_FLAGS, true, 1.0, true, 2.0);
Does it mean 1-2 is valid or explicit 1 and 2 is valid, not the range 1-2?

When using it on the displaykillmessage with 0-3 would it be:
Code:
CreateConVar("displaykillmessage", "3", " 0 - Disabled; 1 - small HUD Hint; 2 - big HUD Hint; 3 - Chat Notification ", CVAR_FLAGS, true, 0.0, true, 3.0);
???

I think when you have a plugin that allows multiple smoker or when you zspawn them, the plugin would fail to detect that, right? I could just let out the victim check then?

Code:
            if (IS_VALID_SURVIVOR(i) && i != victim)// ignore the survivor getting smoked
I combined your code and parts from Aya Supay. Atm I get an error in the log stating this:

Code:
L 07/23/2019 - 11:42:25: [SM] Blaming: L4DNoSmoking1.0.4.smx
L 07/23/2019 - 11:42:25: [SM] Call stack trace:
L 07/23/2019 - 11:42:25: [SM]   [0] VFormat
L 07/23/2019 - 11:42:25: [SM]   [1] Line 236, L4DNoSmoking1.0.4.sp::CPrintToChatAll
L 07/23/2019 - 11:42:25: [SM]   [2] Line 173, L4DNoSmoking1.0.4.sp::PerformSlap
L 07/23/2019 - 11:42:25: [SM]   [3] Line 129, L4DNoSmoking1.0.4.sp::tongue_grab
L 07/23/2019 - 11:42:57: [SM] Exception reported: Client index 1413564483 is invalid (arg 2)

Last edited by finishlast; 07-24-2019 at 11:21.
finishlast is offline