AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [HELP] Disable player shadows in CSGO (https://forums.alliedmods.net/showthread.php?t=257319)

Antix1267 01-31-2015 06:40

[HELP] Disable player shadows in CSGO
 
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

nomy 02-01-2015 03:02

Re: [HELP] Disable player shadows in CSGO
 
Did you try it?

Antix1267 02-02-2015 18:22

Re: [HELP] Disable player shadows in CSGO
 
Yes ..and it didn't work.

Mitchell 02-02-2015 19:30

Re: [HELP] Disable player shadows in CSGO
 
try AcceptEntityInput(client, "DisableShadow");
https://developer.valvesoftware.com/wiki/Player

Antix1267 02-02-2015 22:36

Re: [HELP] Disable player shadows in CSGO
 
new iCount = 0;

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

Like that? Didn't work.

Regards

Mitchell 02-02-2015 22:45

Re: [HELP] Disable player shadows in CSGO
 
-snip-
Does not work at all.

Antix1267 02-03-2015 13:35

Re: [HELP] Disable player shadows in CSGO
 
Hm .... seems like it isn't possible, right? Too bad :/.

Thanks anyways.

Mitchell 02-04-2015 11:13

Re: [HELP] Disable player shadows in CSGO
 
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);
}


Antix1267 02-04-2015 13:06

Re: [HELP] Disable player shadows in CSGO
 
Tested, doesn't work.

bboygrun 02-13-2016 13:48

Re: [HELP] Disable player shadows in CSGO
 
Did someone find a solution for this problem ?


All times are GMT -4. The time now is 18:34.

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