Skip to content
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

caste_body_info::unk_v40_2 update #617

Closed
ab9rf opened this issue Jul 12, 2023 · 1 comment
Closed

caste_body_info::unk_v40_2 update #617

ab9rf opened this issue Jul 12, 2023 · 1 comment

Comments

@ab9rf
Copy link
Member

ab9rf commented Jul 12, 2023

in caste_body_info, elements 5 through 9 of unk_v40_2 are gait values (WALK, FLY, SWIM, CRAWL, and CLIMB, respectively)

this based on code reverse engineered from 50.09-steam @ 0x1410cb097-0x1410cb0e4 (pcVar12 is a caste_body_info *, param_1 is a unitst *)

          pcVar12 = (param_1->body).body_plan;
          (param_1->enemy).gait_index.WALK = pcVar12->unk_v40_2[5];
          (param_1->enemy).gait_index.FLY = pcVar12->unk_v40_2[6];
          (param_1->enemy).gait_index.SWIM = pcVar12->unk_v40_2[7];
          (param_1->enemy).gait_index.CRAWL = pcVar12->unk_v40_2[8];
          (param_1->enemy).gait_index.CLIMB = pcVar12->unk_v40_2[9];

no intel on what elements 0-4 or 10 are, presumably will need to split unk_v40_2

@quietust
Copy link
Member

        <static-array name='default_gait_index' count="5" index-enum='gait_type' type-name='int32_t'/>
        <static-array name='fastest_gait_index' count="5" index-enum='gait_type' type-name='int32_t'/>

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

No branches or pull requests

2 participants