Added CEnvProjectedTexture data.#380
Conversation
|
I know this was already merged, but I have a couple points to add. I just tested the output on CS:S, HL2:MP, DOD:S, TF2, and CS:GO. I found that a few of the inputs, keyvalues, and properties ONLY exist on CS:GO:
Also, For the orangebox games, they have a Property The code I used to find these was: from entities.entity import Entity
entity = Entity.find_or_create('env_projectedtexture')
for k, server_class in entity.server_classes.items():
if k.__name__ == 'CEnvProjectedTexture':
break
for type_name in ('Inputs', 'Keyvalues', 'Outputs', 'Properties'):
print('=' * 30)
print(type_name.upper().center(30))
print('=' * 30)
for item in sorted(getattr(server_class, type_name.lower())):
print(f' {item}') |
|
Whoops, my bad. I'll correct this with another pull request as soon as I get home. |
Arggh.. I trusted you, I TRUSTED YOU!! 😆
Sometimes keyvalues are mapped to different members depending on the game. Some are also hard-coded and processed/validated in various ways before assigning/retrieving them. This seems to be the case for lightcolor on OB games as well as pointing to a different property. |
No description provided.