[CS GO] Disable shadow of certain player
Posted: Wed Feb 07, 2018 10:41 pm
Hello. I want to disable shadow of certain player and return it back in the end of round. What I've try (does not work):
I found another way, but it kill all dynamic shadows on a map:
Is there a way to do this?
Syntax: Select all
Code: Select all
from players.entity import Player
from entities.constants import EntityEffects
from commands.client import ClientCommand
@ClientCommand('shadows')
def disable_shadows(command, index, team_only=None):
player = Player(index)
player.effects = EntityEffects.NOSHADOW | EntityEffects.NORECEIVESHADOW
player.call_input("DisableShadow")
I found another way, but it kill all dynamic shadows on a map:
Syntax: Select all
Code: Select all
from entities.entity import Entity
from commands.client import ClientCommand
@ClientCommand('shadows')
def disable_shadows(command, index, team_only=None):
sh = Entity.create('env_cascade_light')
sh.call_input('Kill')
Is there a way to do this?