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

Solved [L4D2] how to disable spray ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
little_froy
Senior Member
Join Date: May 2021
Old 08-05-2021 , 06:24   [L4D2] how to disable spray ?
Reply With Quote #1

i tryed
sm_cvar sv_allowupload "0"
sm_cvar sv_allowdownload "0"
but, them are no useful.

------------------------------------
use with plugin like this
https://forums.alliedmods.net/showthread.php?p=2746116

Last edited by little_froy; 08-05-2021 at 06:27.
little_froy is online now
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-05-2021 , 14:49   Re: [L4D2] how to disable spray ?
Reply With Quote #2

Code:
#define PAINT_DECAL 201

public Action OnPlayerRunCmd(int client, int &buttons, int &impulse)
{
	if(impulse == PAINT_DECAL)
	{
		impulse = 0;

		return Plugin_Changed;
	}

	return Plugin_Continue;
}
__________________
retired
shavit is offline
little_froy
Senior Member
Join Date: May 2021
Old 08-05-2021 , 20:14   Re: [L4D2] how to disable spray ?
Reply With Quote #3

Quote:
Originally Posted by shavit View Post
Code:
#define PAINT_DECAL 201

public Action OnPlayerRunCmd(int client, int &buttons, int &impulse)
{
	if(impulse == PAINT_DECAL)
	{
		impulse = 0;

		return Plugin_Changed;
	}

	return Plugin_Continue;
}
is there ready made values list of impulse and buttons for every game ?

Last edited by little_froy; 08-05-2021 at 20:17.
little_froy is online now
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 10:41.


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