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

How to get inventory details? #88

Open
marcotama opened this issue Dec 4, 2023 · 2 comments
Open

How to get inventory details? #88

marcotama opened this issue Dec 4, 2023 · 2 comments

Comments

@marcotama
Copy link

marcotama commented Dec 4, 2023

I am trying to recreate the GSI (Game State Integration; learn more: [Valve] [Reddit]) stream from a demo.
The GSI data is produced by the game at regular intervals (so ideally I can calculate it from ticks data).
The GSI data includes details beyond the weapon types for the inventory (example below).
Is it currently possible to retrieve this information using the parser?
If not, would you consider adding the capability?

    "weapons": {
        "weapon_0": {
            "name": "weapon_knife_t",
            "paintkit": "default",
            "type": "Knife",
            "state": "holstered"
        },
        "weapon_1": {
            "name": "weapon_glock",
            "paintkit": "cu_glock-liquescent",
            "type": "Pistol",
            "ammo_clip": 20,
            "ammo_clip_max": 20,
            "ammo_reserve": 120,
            "state": "holstered"
        },
        "weapon_2": {
            "name": "weapon_galilar",
            "paintkit": "gs_galil_phoenix",
            "type": "Rifle",
            "ammo_clip": 35,
            "ammo_clip_max": 35,
            "ammo_reserve": 90,
            "state": "holstered"
        },
        "weapon_3": {
            "name": "weapon_smokegrenade",
            "paintkit": "default",
            "type": "Grenade",
            "ammo_reserve": 1,
            "state": "active"
        },
        "weapon_4": {
            "name": "weapon_hegrenade",
            "paintkit": "default",
            "type": "Grenade",
            "ammo_reserve": 1,
            "state": "holstered"
        }
@LaihoE
Copy link
Owner

LaihoE commented Dec 4, 2023

This is currently not possible. Currently you can only get the names of things in you inventory. I would like to implement this but will take some time. Will be tricky to make it elegant and fast.

@marcotama
Copy link
Author

Looking forward to that! And thanks for all the work, of course. Could you please link this issue when you open a PR?

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