-
Notifications
You must be signed in to change notification settings - Fork 36
Fix #350, Updated CTakeDamageInfo wrapper for CS:GO. #352
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
Fix #350, Updated CTakeDamageInfo wrapper for CS:GO. #352
Conversation
|
Nice, thanks! Here are some points:
|
In my tests, there has never been a time when
CSGOAttackerInfo's default constructor is already in hl2sdk.
In my tests, indeed We might try changing it to |
|
Something else I just realized is that info.attacker = player
info.attacker = world
It will before an attacker is set when new instances are created, for example into |
You're absolutely right.
Yeah, but it immediately overrides with set_attacker(0) in CTakeDamageInfo *init(). |
Good point. I forgot a constructor was added to the Python class. |
Yeah I know, but I wasn't sure about this part... Source.Python/src/core/utilities/conversions/playerinfo_from.cpp Lines 91 to 93 in aeef22f
That''s good to hear. Thanks for the advice. |
Assuming the SDK is up-to-date when it comes to the player manager, GetPlayerInfo fails if the |
|
I will double-check about |
Looks good to me at a code level, what else is there to test? Slight note though, the external linkage of |
I missed that.
A check in the game to see if Index(0) and m_bIsWorld are linked, and they seem to be.
I don't know how it behaved before, but it doesn't look like it changed. |
Referenced from alliedmodders/sourcemod@250886f, alliedmodders/hl2sdk@1d2902b