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

[CSGO, CSS] Show Player Clips 1.1.1


Post New Thread Reply   
 
Thread Tools Display Modes
butare
Senior Member
Join Date: Nov 2016
Old 08-05-2019 , 12:38   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #11

Quote:
Originally Posted by eyal282 View Post
Create the equivalent of r_drawclipbrushes 2 please.
I don't know of any other way of drawing shapes via sourcemod that capable of drawing shapes like r_drawclipbrushes 2, so right now I think it's impossible actually, or there's some complex and inefficient way that I really don't want to even look at.
butare is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-05-2019 , 13:28   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #12

Quote:
Originally Posted by 8guawong View Post
what is the purpose of this plugin? useful in what situation?
sv_cheats 1 bad
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 08-05-2019 , 13:47   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #13

thanks Gamma
freak.exe_uLow is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-05-2019 , 14:41   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #14

Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

new const String:PLUGIN_VERSION[] = "1.0";

public Plugin:myinfo = 
{
	name = "Show Player Clips",
	author = "Eyal282",
	description = "Makes r_drawclipbrushes 2 to any admin to want it.",
	version = PLUGIN_VERSION,
	url = ""
}

new bool:DrawEnabled[MAXPLAYERS+1];

new Handle:hcv_DrawClipBrushes = INVALID_HANDLE;

public OnPluginStart()
{
	RegAdminCmd("sm_dcb", Command_DrawClipBrushes, ADMFLAG_GENERIC, "Enables / Disables r_drawclipbrushes 2.");
	RegAdminCmd("sm_drawclipbrushes", Command_DrawClipBrushes, ADMFLAG_GENERIC, "Enables / Disables r_drawclipbrushes 2.");
	
	hcv_DrawClipBrushes = FindConVar("r_drawclipbrushes");
	
	SetConVarFlags(hcv_DrawClipBrushes, GetConVarFlags(hcv_DrawClipBrushes) & ~FCVAR_CHEAT);
}

public Action:Command_DrawClipBrushes(client, args)
{
	DrawEnabled[client] = !DrawEnabled[client];
	
	if(DrawEnabled[client])
		ClientCommand(client, "r_drawclipbrushes 2");
	
	else
		ClientCommand(client, "r_drawclipbrushes 0");
		
	PrintToChat(client, "r_drawclipbrushes is now set to %i for you.", DrawEnabled[client] ? 2 : 0);
	
	return Plugin_Handled;
}
Best I could do, this however has the side effect of r_drawclipbrushes losing cheat flag, meaning every player can use it.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 08-05-2019 , 21:06   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #15

Quote:
Originally Posted by eyal282 View Post
Best I could do, this however has the side effect of r_drawclipbrushes losing cheat flag, meaning every player can use it.
Have you actually tested this? Don't think you can ClientCommand that cvar.
hmmmmm is offline
Cruze
Veteran Member
Join Date: May 2017
Old 08-07-2019 , 01:57   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #16

Server lagging on some areas in surf_eclipse_fix. Error spam in server console:
HTML Code:
Teleport trigger '' cannot find destination named ''!
Edit: Try stage 3
__________________
Taking paid private requests! Contact me

Last edited by Cruze; 08-07-2019 at 02:01.
Cruze is offline
butare
Senior Member
Join Date: Nov 2016
Old 08-07-2019 , 15:38   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #17

Quote:
Originally Posted by Cruze View Post
Server lagging on some areas in surf_eclipse_fix. Error spam in server console:
HTML Code:
Teleport trigger '' cannot find destination named ''!
Edit: Try stage 3
That error has nothing to do with this plugin. That's map issue, not plugin.

Last edited by butare; 08-07-2019 at 16:00.
butare is offline
Cruze
Veteran Member
Join Date: May 2017
Old 08-08-2019 , 00:18   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #18

Quote:
Originally Posted by butare View Post
That error has nothing to do with this plugin. That's map issue, not plugin.
Ah, though lag only happens when plugin is enabled.
__________________
Taking paid private requests! Contact me
Cruze is offline
butare
Senior Member
Join Date: Nov 2016
Old 08-08-2019 , 00:29   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #19

Quote:
Originally Posted by Cruze View Post
Ah, though lag only happens when plugin is enabled.
As I said it has nothing to do with this plugin, first of all that map doesn't even has a lot of player clips, only few brushes so it couldn't lag from that, second is that this plugin has nothing to do with trigger_* entities, idk why you even thought on that plugin. And here's the real problem:

as you can see that trigger_teleport does not have any destination set, so that's why it spams you about it, and it should be trigger_multiple as all it does is sets targetname for player that triggered it, that is mappers fault, for making it trigger_teleport (is it by mistake or not idk).
butare is offline
Cruze
Veteran Member
Join Date: May 2017
Old 08-08-2019 , 06:49   Re: [CSGO, CSS] Show Player Clips 1.0.0
Reply With Quote #20

Quote:
Originally Posted by butare View Post
As I said it has nothing to do with this plugin, first of all that map doesn't even has a lot of player clips, only few brushes so it couldn't lag from that, second is that this plugin has nothing to do with trigger_* entities, idk why you even thought on that plugin. And here's the real problem:

as you can see that trigger_teleport does not have any destination set, so that's why it spams you about it, and it should be trigger_multiple as all it does is sets targetname for player that triggered it, that is mappers fault, for making it trigger_teleport (is it by mistake or not idk).
Oh, okay..... thanks for clarifying
__________________
Taking paid private requests! Contact me
Cruze is offline
Reply



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 09:40.


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