|
1 | 1 | #include "classes.h" |
2 | 2 |
|
3 | 3 | #include "../../../../sdk/entity/CBaseEntity.h" |
| 4 | +#include "../../../../sdk/entity/CBasePlayerController.h" |
4 | 5 | #include "../../../../sdk/entity/CBaseModelEntity.h" |
5 | 6 |
|
6 | 7 | GCGlowProperty::GCGlowProperty(std::string ptr) { |
@@ -12831,6 +12832,9 @@ GCBasePlayerController::GCBasePlayerController(std::string ptr) { |
12831 | 12832 | GCBasePlayerController::GCBasePlayerController(void *ptr) { |
12832 | 12833 | m_ptr = ptr; |
12833 | 12834 | } |
| 12835 | +int GCBasePlayerController::EntityIndex() { |
| 12836 | + return ((CBasePlayerController*)m_ptr)->GetEntityIndex().Get(); |
| 12837 | +} |
12834 | 12838 | uint64_t GCBasePlayerController::GetInButtonsWhichAreToggles() const { |
12835 | 12839 | return GetSchemaValue<uint64_t>(m_ptr, "CBasePlayerController", "m_nInButtonsWhichAreToggles"); |
12836 | 12840 | } |
@@ -13030,6 +13034,7 @@ void SetupLuaClassCBasePlayerController(LuaPlugin *plugin, lua_State *state) |
13030 | 13034 | .addProperty("SteamID", &GCBasePlayerController::GetSteamID, &GCBasePlayerController::SetSteamID) |
13031 | 13035 | .addProperty("DesiredFOV", &GCBasePlayerController::GetDesiredFOV, &GCBasePlayerController::SetDesiredFOV) |
13032 | 13036 | .addProperty("Parent", &GCBasePlayerController::GetParent, &GCBasePlayerController::SetParent) |
| 13037 | + .addFunction("EntityIndex", &GCBasePlayerController::EntityIndex) |
13033 | 13038 | .addFunction("ToPtr", &GCBasePlayerController::ToPtr) |
13034 | 13039 | .addFunction("IsValid", &GCBasePlayerController::IsValid) |
13035 | 13040 | .endClass(); |
|
0 commit comments