Skip to content

[Feature Request] %E Format specifier #2099

Open
@xerox8521

Description

@xerox8521

I'm proposing a new specifier %E which takes an entity index which will insert the entity's classname. Similar how %N inserts the players name. If you have a better character suggestion I'm open to hear about it.

Which will make code like this

void Foo( int entity)
{
    char szClassName[32];
    GetEntityClassname(entity, szClassName, sizeof(szClassName));
    PrintToServer("ClassName: %s", szClassName);
}

be replaced with

void Foo( int entity)
{
    PrintToServer("ClassName: %E", entity);
}

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