Skip to content

Native way to get struct keys #59

@SwatDoge

Description

@SwatDoge

Summary

A method that returns the keys of a struct.
Simular to the now defunct getStructKeys(struct) from t6-gsc-utils

Why?

Extremely useful for debugging/researching non-map entities like killstreaks and equipment. Right now there is no way to easily know what the properties of these entities are. You have to rely on existing dumps, read sourcecode or read the memory using an external tool.

When it was still functional with t6-utils, I used the feature constantly and its been very time consuming to develop without it. With other functionality from t6-utils having already been integrated into the engine, this would be a perfect next choice.

Proposed solution

A new method that takes in a struct and returns an array of struct key names.

Affected game(s)

BO2 Multiplayer (T6MP)

Affected component(s)

Client (game)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: clientIssue related to the game clientfeatureRequest for new featuregame: T6Issue related to T6mode: MPIssue only affecting Multiplayer

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions