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?