iw4x-client/src/Components/Modules/PlayerName.hpp
Edo 491d4d3ac3
[ClanTag] Add back component + extras (#357)
* [ClanTags] Add back component
2022-07-16 23:24:26 +02:00

26 lines
617 B
C++

#pragma once
namespace Components
{
class PlayerName : public Component
{
public:
PlayerName();
static void UserInfoCopy(char* buffer, const char* name, size_t size);
static int GetClientName(int localClientNum, int index, char* buf, int size);
private:
static Dvar::Var sv_allowColoredNames;
// Message used when kicking players
static constexpr auto INVALID_NAME_MSG = "Invalid name detected";
static char* CleanStrStub(char* string);
static void ClientCleanName();
static bool CopyClientNameCheck(char* dest, const char* source, int size);
static void SV_UserinfoChangedStub();
};
}