Skip to content

Commit 65732a6

Browse files
committed
feat(sdk/CBasePlayerController): EntityIndex
1 parent dab638e commit 65732a6

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

src/plugins/core/scripting/generated/GClasses1.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "classes.h"
22

33
#include "../../../../sdk/entity/CBaseEntity.h"
4+
#include "../../../../sdk/entity/CBasePlayerController.h"
45
#include "../../../../sdk/entity/CBaseModelEntity.h"
56

67
GCGlowProperty::GCGlowProperty(std::string ptr) {
@@ -12831,6 +12832,9 @@ GCBasePlayerController::GCBasePlayerController(std::string ptr) {
1283112832
GCBasePlayerController::GCBasePlayerController(void *ptr) {
1283212833
m_ptr = ptr;
1283312834
}
12835+
int GCBasePlayerController::EntityIndex() {
12836+
return ((CBasePlayerController*)m_ptr)->GetEntityIndex().Get();
12837+
}
1283412838
uint64_t GCBasePlayerController::GetInButtonsWhichAreToggles() const {
1283512839
return GetSchemaValue<uint64_t>(m_ptr, "CBasePlayerController", "m_nInButtonsWhichAreToggles");
1283612840
}
@@ -13030,6 +13034,7 @@ void SetupLuaClassCBasePlayerController(LuaPlugin *plugin, lua_State *state)
1303013034
.addProperty("SteamID", &GCBasePlayerController::GetSteamID, &GCBasePlayerController::SetSteamID)
1303113035
.addProperty("DesiredFOV", &GCBasePlayerController::GetDesiredFOV, &GCBasePlayerController::SetDesiredFOV)
1303213036
.addProperty("Parent", &GCBasePlayerController::GetParent, &GCBasePlayerController::SetParent)
13037+
.addFunction("EntityIndex", &GCBasePlayerController::EntityIndex)
1303313038
.addFunction("ToPtr", &GCBasePlayerController::ToPtr)
1303413039
.addFunction("IsValid", &GCBasePlayerController::IsValid)
1303513040
.endClass();

src/plugins/core/scripting/generated/GClasses2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "classes.h"
22

33
#include "../../../../sdk/entity/CBaseEntity.h"
4+
#include "../../../../sdk/entity/CBasePlayerController.h"
45
#include "../../../../sdk/entity/CBaseModelEntity.h"
56

67
GCFuncNavObstruction::GCFuncNavObstruction(std::string ptr) {

src/plugins/core/scripting/generated/GClasses3.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "classes.h"
22

33
#include "../../../../sdk/entity/CBaseEntity.h"
4+
#include "../../../../sdk/entity/CBasePlayerController.h"
45
#include "../../../../sdk/entity/CBaseModelEntity.h"
56

67
GRnFace_t::GRnFace_t(std::string ptr) {

src/plugins/core/scripting/generated/GClasses4.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "classes.h"
22

33
#include "../../../../sdk/entity/CBaseEntity.h"
4+
#include "../../../../sdk/entity/CBasePlayerController.h"
45
#include "../../../../sdk/entity/CBaseModelEntity.h"
56

67
GFeBuildTaperedCapsuleRigid_t::GFeBuildTaperedCapsuleRigid_t(std::string ptr) {

src/plugins/core/scripting/generated/classes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6417,6 +6417,7 @@ class GCBasePlayerController
64176417
GCBasePlayerController(std::string ptr);
64186418
GCBasePlayerController(void *ptr);
64196419

6420+
int EntityIndex();
64206421
uint64_t GetInButtonsWhichAreToggles() const;
64216422
void SetInButtonsWhichAreToggles(uint64_t value);
64226423
uint32_t GetTickBase() const;

0 commit comments

Comments
 (0)