Skip to content

Feature Request: DispatchKeyValueInt #1761

@Mart-User

Description

@Mart-User

SM has DispatchKeyValue/DispatchKeyValueFloat/DispatchKeyValueVector available.

Having a wrapper to int would be useful for scenarios where we use int and int cvars as the value.

To achieve that with int values, currently is necessary to create a buffer string, format it, then uses it as DispatchKeyValue;

e.g: DispatchKeyValue(entity, "key", buffer);

From what I researched the current methods read some symbols and seem that "Int" is not available as one of them.

But I believe this could be implemented by changing "extensions/sdktools/vnatives.cpp"

IMO would help in scripting, some similar stuff was done like "GetCmdArgInt", etc.

Anyway, is just a request, if it doesn't make sense, just be polite and close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions