12 lines
328 B
C++
12 lines
328 B
C++
#include "CCSPlayerController.h"
|
|
|
|
CCSPlayerController::CCSPlayerController(uintptr_t address) : address(address) {}
|
|
|
|
uintptr_t CCSPlayerController::getAddress() const {
|
|
return address;
|
|
}
|
|
|
|
const char* CCSPlayerController::getName() const {
|
|
if (!address) return nullptr;
|
|
return reinterpret_cast<const char*>(address + 0x660);
|
|
} |