Skip to content

TF2Items_OnGetLoadoutItem reports invalid handle? #2

@keybangz

Description

@keybangz

It is of my understanding that TF2Items_OnGetLoadoutItem should pass through the TF2Item handle object of the already created items, however the handle passed is always invalid.

public Action TF2Items_OnGetLoadoutItem(int client, int class, int slot, Handle &item) {
    TF2Items_SetNumAttributes(item, 1); 
    TF2Items_SetQuality(item, 5); 

    TF2Items_SetAttribute(item, 0, 134, float(5)));

    return Plugin_Changed;
}

Creating an item and assigning it to the handle also breaks all weapons.

Using latest release r5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions