You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the future I'd like to implement the following native functionality:
/** * Returns a subsection within an items "extended data" section. This handle should be freed by the calling plugin. * If the section doesn't exist, this returns `null`.*/nativeKeyValuesCWX_GetItemExtData(constchar[] uid, constchar[] name);
// TODO some item UID iterator (??)
One of the intended functions of this setup is to allow custom-defined sections, such as for precaching resources on map startup, and just things that other plugins can hook on:
"my item"
{
"name" "My custom bat that I didn't steal from Smash or anything"
"inherits" "TF_WEAPON_BAT"
"extdata"
{
"resources"
{
"model" "models/path/to/a/custom_bat.mdl"
"texture" "materials/stuff.vmt"
"texture" "materials/more_stuff.vmt"
"sound" "sound/satisfying_bat_impact_sound.wav"
}
}
}
I believe this is something that would be relevant for #7.
(The reason we do it this way is to isolate plugin-specific data and provide a convenient interface without having to traverse deep into the entire item KeyValues struct. Also, we may not necessarily require items to be defined in their entirety using KeyValues.)
The text was updated successfully, but these errors were encountered:
In the future I'd like to implement the following native functionality:
One of the intended functions of this setup is to allow custom-defined sections, such as for precaching resources on map startup, and just things that other plugins can hook on:
I believe this is something that would be relevant for #7.
(The reason we do it this way is to isolate plugin-specific data and provide a convenient interface without having to traverse deep into the entire item
KeyValues
struct. Also, we may not necessarily require items to be defined in their entirety usingKeyValues
.)The text was updated successfully, but these errors were encountered: