Skip to content

Return array type info with FindSendPropInfo #1548

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

Merged
merged 1 commit into from
Aug 1, 2021
Merged

Conversation

asherkin
Copy link
Member

@asherkin asherkin commented Jul 20, 2021

FindSendPropInfo currently isn't very useful with array props, it'll
return the correct offset but the type will be unknown and the bit count
zero. Instead, populate type and num_bits with the underlying array type
info same as we'd handle it when reading/writing the prop. Closes #1258.

This also adds the preliminary support for Source's legacy / virtual
array props for issue #1386. They can now be looked up correctly with
FindSendPropInfo and it returns the correct type / size / offset.

FindSendPropInfo currently isn't very useful with array props, it'll
return the correct offset but the type will be unknown and the bit count
zero. Instead, populate type and num_bits with the underlying array type
info same as we'd handle it when reading/writing the prop. Closes #1258.

This also adds the preliminary for Source's legacy / virtual array props
for issue #1386. They can now be looked up correctly with
FindSendPropInfo and it returns the correct type / size / offset.

Co-Authored-By: nosoop <nosoop@users.noreply.github.com>
@asherkin asherkin requested a review from psychonic July 20, 2021 20:39
asherkin added a commit that referenced this pull request Jul 20, 2021
This rounds out the work started in #1548 to complete support for
reading the older SendPropArray type array netprops, along with bringing
SDKTools' GameRule netprop code in sync with core to add string array
support.

There aren't many SendPropArray type props around but this opens up a
few interesting opportunities for plugin developers, particularly in
L4D2 with manipulation of the EMS HUD.

Tested reading the `m_vCPPositions` array in TF2, and reading/writing
the `m_szScriptedHUDStringSet` EMS HUD netprop in L4D2. Closes #1386.
asherkin added a commit that referenced this pull request Jul 20, 2021
This rounds out the work started in #1548 to complete support for
reading the older SendPropArray type array netprops, along with bringing
SDKTools' GameRule netprop code in sync with core to add string array
support.

There aren't many SendPropArray type props around but this opens up a
few interesting opportunities for plugin developers, particularly in
L4D2 with manipulation of the EMS HUD.

Tested reading the `m_vCPPositions` array in TF2, and reading/writing
the `m_szScriptedHUDStringSet` EMS HUD netprop in L4D2. Closes #1386.
asherkin added a commit that referenced this pull request Jul 20, 2021
This rounds out the work started in #1548 to complete support for
reading the older SendPropArray type array netprops, along with bringing
SDKTools' GameRule netprop code in sync with core to add string array
support.

There aren't many SendPropArray type props around but this opens up a
few interesting opportunities for plugin developers, particularly in
L4D2 with manipulation of the EMS HUD.

Tested reading the `m_vCPPositions` array in TF2, and reading/writing
the `m_szScriptedHUDStringSet` EMS HUD netprop in L4D2. Closes #1386.
@asherkin asherkin merged commit 296deb9 into master Aug 1, 2021
@asherkin asherkin deleted the array-prop-info branch August 1, 2021 18:44
asherkin added a commit that referenced this pull request Aug 1, 2021
This rounds out the work started in #1548 to complete support for
reading the older SendPropArray type array netprops, along with bringing
SDKTools' GameRule netprop code in sync with core to add string array
support.

There aren't many SendPropArray type props around but this opens up a
few interesting opportunities for plugin developers, particularly in
L4D2 with manipulation of the EMS HUD.

Tested reading the `m_vCPPositions` array in TF2, and reading/writing
the `m_szScriptedHUDStringSet` EMS HUD netprop in L4D2. Closes #1386.
@asherkin asherkin mentioned this pull request Aug 23, 2021
6 tasks
asherkin added a commit that referenced this pull request Aug 23, 2021
This rounds out the work started in #1548 to complete support for
reading the older SendPropArray type array netprops, along with bringing
SDKTools' GameRule netprop code in sync with core to add string array
support.

There aren't many SendPropArray type props around but this opens up a
few interesting opportunities for plugin developers, particularly in
L4D2 with manipulation of the EMS HUD.

Tested reading the `m_vCPPositions` array in TF2, and reading/writing
the `m_szScriptedHUDStringSet` EMS HUD netprop in L4D2. Closes #1386.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REQ] FindSendPropInfo with array support ? To get array PropFieldType
2 participants