-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: query for info only from ticks that satisfy specific prop states conditions #209
feat: query for info only from ticks that satisfy specific prop states conditions #209
Conversation
bar the translation of user input into PropInfo vector
looks good so far, check discord for some more info |
@LaihoE tested to work with basic condition like
|
Sorry for the late reply. Yes prop_controller is some horrible code that needs to be refactored. And very much true that the if statements were already getting quite ridiculous, and now double the amount is maybe a little too much. If you want to try to simplify it then that would be great. As for "is_player_prop" it is used in game events for something. I think it is to know where to look for the value (from the perspective of the player or something i don't quite remember) but maybe this could also be implemented in some other way. |
@LaihoE no worries on the late reply Yeah, I can refactor those if statements. I just have a few more questions to better understand the If I interpret it correctly, it sets PropInfo for A) Buttons B) Ticks, SteamID, Name C) Props that are of type As for the |
You can just add all the A) Buttons B) Ticks, SteamID, Name C) as PropType::Custom 👍 You are probably right about the is_player_prop. I don't really remember much about its role. |
eb3c7c6
to
2917165
Compare
7c05bb2
to
ee75355
Compare
ee75355
to
0177420
Compare
0f67ee2
to
5f0a5c7
Compare
2e41b95
to
16c4cc5
Compare
16c4cc5
to
bdb2a1a
Compare
Are we ready to merge? |
Not yet. Need to add 1 more Rust test case and JS bindings. |
^ Had to remove other wanted states as querying for prop states while parsing event(s) not yet implemented and "other" props do not work when parsing ticks. Will probably implement querying for prop states while parsing event(s) in another PR down the line. |
ddd568e
to
db81084
Compare
LGTM. Will create a new release soon. |
bar the translation of user input into PropInfo vector