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

[HELP] Disable player shadows in CSGO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Antix1267
Junior Member
Join Date: Jun 2013
Old 01-31-2015 , 06:40   [HELP] Disable player shadows in CSGO
Reply With Quote #1

Hi,

is it possible to remove playershadows in CS:GO? I know it's possible in sourcemod according to this: https://forums.alliedmods.net/showthread.php?t=154269

Is there are way to remove player shadows in CS:GO as well?

Regards
Antix1267 is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 02-01-2015 , 03:02   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #2

Did you try it?
nomy is offline
Antix1267
Junior Member
Join Date: Jun 2013
Old 02-02-2015 , 18:22   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #3

Yes ..and it didn't work.
Antix1267 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-02-2015 , 19:30   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #4

try AcceptEntityInput(client, "DisableShadow");
https://developer.valvesoftware.com/wiki/Player

Last edited by Mitchell; 02-02-2015 at 19:31.
Mitchell is offline
Antix1267
Junior Member
Join Date: Jun 2013
Old 02-02-2015 , 22:36   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #5

new iCount = 0;

for(new i=0;i<MaxClients;i++){
AcceptEntityInput(i, "DisableShadow");
}

Like that? Didn't work.

Regards
Antix1267 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-02-2015 , 22:45   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #6

-snip-
Does not work at all.

Last edited by Mitchell; 02-02-2015 at 22:48.
Mitchell is offline
Antix1267
Junior Member
Join Date: Jun 2013
Old 02-03-2015 , 13:35   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #7

Hm .... seems like it isn't possible, right? Too bad :/.

Thanks anyways.
Antix1267 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-04-2015 , 11:13   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #8

has anybody tried this method?
Code:
#pragma semicolon 1
#include <sdktools>
#define EF_NOSHADOW                 (1 << 4)
#define EF_NORECEIVESHADOW          (1 << 6)

public OnPluginStart() {
	HookEvent("round_start", Event_Start);
	HookEvent("player_spawn", Event_Spawn);
	for(new i=1; i<=MaxClients; i++) {
		if(IsClientInGame(i) && IsPlayerAlive(i)) {
			DisableShadow(i);
		}
	}
}
public Action:Event_Spawn(Handle:event, const String:name[], bool:dontBroadcast) {
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	if(IsPlayerAlive(client)) {
		DisableShadow(client);
	}
}
public Action:Event_Start(Handle:event, const String:name[], bool:dontBroadcast) {
	for(new i=1; i<=MaxClients; i++) {
		if(IsClientInGame(i) && IsPlayerAlive(i)) {
			DisableShadow(i);
		}
	}
}
stock DisableShadow(entity) {
	SetEntProp(entity, Prop_Send, "m_fEffects", GetEntProp(entity, Prop_Send, "m_fEffects")|EF_NOSHADOW|EF_NORECEIVESHADOW);
}

Last edited by Mitchell; 02-04-2015 at 11:13.
Mitchell is offline
Antix1267
Junior Member
Join Date: Jun 2013
Old 02-04-2015 , 13:06   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #9

Tested, doesn't work.
Antix1267 is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 02-13-2016 , 13:48   Re: [HELP] Disable player shadows in CSGO
Reply With Quote #10

Did someone find a solution for this problem ?
__________________

Last edited by bboygrun; 02-13-2016 at 17:22.
bboygrun 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 10:01.


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