Skip to content

Commit

Permalink
feat: update schema from 17.11.23 update
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmuffin committed Nov 18, 2023
1 parent 517607d commit 15e1260
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 4 deletions.
70 changes: 68 additions & 2 deletions managed/CounterStrikeSharp.API/Core/Objects.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,13 @@ public enum BrushSolidities_e : uint
BRUSHSOLID_ALWAYS = 0x2,
}

public enum C4LightEffect_t : uint
{
eLightEffectNone = 0x0,
eLightEffectDropped = 0x1,
eLightEffectThirdPersonHeld = 0x2,
}

public enum CAnimationGraphVisualizerPrimitiveType : uint
{
ANIMATIONGRAPHVISUALIZERPRIMITIVETYPE_Text = 0x0,
Expand Down Expand Up @@ -2773,6 +2780,7 @@ public enum TakeDamageFlags_t : uint
DFLAG_RADIUS_DMG = 0x400,
DMG_LASTDFLAG = 0x400,
DFLAG_IGNORE_ARMOR = 0x800,
DFLAG_SUPPRESS_UTILREMOVE = 0x1000,
}

public enum TextureRepetitionMode_t : uint
Expand Down Expand Up @@ -3927,6 +3935,9 @@ public partial class CBaseCSGrenadeProjectile : CBaseGrenade
{
public CBaseCSGrenadeProjectile (IntPtr pointer) : base(pointer) {}

// m_vInitialPosition
public Vector InitialPosition => Schema.GetDeclaredClass<Vector>(this.Handle, "CBaseCSGrenadeProjectile", "m_vInitialPosition");

// m_vInitialVelocity
public Vector InitialVelocity => Schema.GetDeclaredClass<Vector>(this.Handle, "CBaseCSGrenadeProjectile", "m_vInitialVelocity");

Expand Down Expand Up @@ -3972,6 +3983,12 @@ public CBaseCSGrenadeProjectile (IntPtr pointer) : base(pointer) {}
// m_nTicksAtZeroVelocity
public ref Int32 TicksAtZeroVelocity => ref Schema.GetRef<Int32>(this.Handle, "CBaseCSGrenadeProjectile", "m_nTicksAtZeroVelocity");

// m_bHasEverHitPlayer
public ref bool HasEverHitPlayer => ref Schema.GetRef<bool>(this.Handle, "CBaseCSGrenadeProjectile", "m_bHasEverHitPlayer");

// m_bClearFromPlayers
public ref bool ClearFromPlayers => ref Schema.GetRef<bool>(this.Handle, "CBaseCSGrenadeProjectile", "m_bClearFromPlayers");

}

public partial class CBaseDMStart : CPointEntity
Expand Down Expand Up @@ -7099,8 +7116,8 @@ public string TournamentPredictionsTxt
// m_nShorthandedBonusLastEvalRound
public ref Int32 ShorthandedBonusLastEvalRound => ref Schema.GetRef<Int32>(this.Handle, "CCSGameRules", "m_nShorthandedBonusLastEvalRound");

// m_bMatchAbortedDueToPlayerBan
public ref bool MatchAbortedDueToPlayerBan => ref Schema.GetRef<bool>(this.Handle, "CCSGameRules", "m_bMatchAbortedDueToPlayerBan");
// m_nMatchAbortedEarlyReason
public ref Int32 MatchAbortedEarlyReason => ref Schema.GetRef<Int32>(this.Handle, "CCSGameRules", "m_nMatchAbortedEarlyReason");

// m_bHasTriggeredRoundStartMusic
public ref bool HasTriggeredRoundStartMusic => ref Schema.GetRef<bool>(this.Handle, "CCSGameRules", "m_bHasTriggeredRoundStartMusic");
Expand Down Expand Up @@ -7515,6 +7532,12 @@ public CCSPlayer_MovementServices (IntPtr pointer) : base(pointer) {}
// m_flStamina
public ref float Stamina => ref Schema.GetRef<float>(this.Handle, "CCSPlayer_MovementServices", "m_flStamina");

// m_flHeightAtJumpStart
public ref float HeightAtJumpStart => ref Schema.GetRef<float>(this.Handle, "CCSPlayer_MovementServices", "m_flHeightAtJumpStart");

// m_flMaxJumpHeightThisJump
public ref float MaxJumpHeightThisJump => ref Schema.GetRef<float>(this.Handle, "CCSPlayer_MovementServices", "m_flMaxJumpHeightThisJump");

}

public partial class CCSPlayer_PingServices : CPlayerPawnComponent
Expand Down Expand Up @@ -7792,6 +7815,9 @@ public string ClanName
// m_uiAbandonRecordedReason
public ref UInt32 UiAbandonRecordedReason => ref Schema.GetRef<UInt32>(this.Handle, "CCSPlayerController", "m_uiAbandonRecordedReason");

// m_bCannotBeKicked
public ref bool CannotBeKicked => ref Schema.GetRef<bool>(this.Handle, "CCSPlayerController", "m_bCannotBeKicked");

// m_bEverFullyConnected
public ref bool EverFullyConnected => ref Schema.GetRef<bool>(this.Handle, "CCSPlayerController", "m_bEverFullyConnected");

Expand Down Expand Up @@ -7909,9 +7935,15 @@ public string ClanName
// m_bGaveTeamDamageWarningThisRound
public ref bool GaveTeamDamageWarningThisRound => ref Schema.GetRef<bool>(this.Handle, "CCSPlayerController", "m_bGaveTeamDamageWarningThisRound");

// m_dblLastReceivedPacketPlatFloatTime
public ref double DblLastReceivedPacketPlatFloatTime => ref Schema.GetRef<double>(this.Handle, "CCSPlayerController", "m_dblLastReceivedPacketPlatFloatTime");

// m_LastTeamDamageWarningTime
public ref float LastTeamDamageWarningTime => ref Schema.GetRef<float>(this.Handle, "CCSPlayerController", "m_LastTeamDamageWarningTime");

// m_LastTimePlayerWasDisconnectedForPawnsRemove
public ref float LastTimePlayerWasDisconnectedForPawnsRemove => ref Schema.GetRef<float>(this.Handle, "CCSPlayerController", "m_LastTimePlayerWasDisconnectedForPawnsRemove");

}

public partial class CCSPlayerController_ActionTrackingServices : CPlayerControllerComponent
Expand Down Expand Up @@ -8046,6 +8078,9 @@ public string LastPlaceName
set { Schema.SetString(this.Handle, "CCSPlayerPawn", "m_szLastPlaceName", value); }
}

// m_bInHostageResetZone
public ref bool InHostageResetZone => ref Schema.GetRef<bool>(this.Handle, "CCSPlayerPawn", "m_bInHostageResetZone");

// m_bInBuyZone
public ref bool InBuyZone => ref Schema.GetRef<bool>(this.Handle, "CCSPlayerPawn", "m_bInBuyZone");

Expand Down Expand Up @@ -12825,6 +12860,9 @@ public CHostage (IntPtr pointer) : base(pointer) {}
// m_vecSpawnGroundPos
public Vector SpawnGroundPos => Schema.GetDeclaredClass<Vector>(this.Handle, "CHostage", "m_vecSpawnGroundPos");

// m_vecHostageResetPosition
public Vector HostageResetPosition => Schema.GetDeclaredClass<Vector>(this.Handle, "CHostage", "m_vecHostageResetPosition");

}

public partial class CHostageAlias_info_hostage_spawn : CHostage
Expand Down Expand Up @@ -14153,6 +14191,28 @@ public string EntityB

}

public partial class CLogicEventListener : CLogicalEntity
{
public CLogicEventListener (IntPtr pointer) : base(pointer) {}

// m_strEventName
public string StrEventName
{
get { return Schema.GetUtf8String(this.Handle, "CLogicEventListener", "m_strEventName"); }
set { Schema.SetString(this.Handle, "CLogicEventListener", "m_strEventName", value); }
}

// m_bIsEnabled
public ref bool IsEnabled => ref Schema.GetRef<bool>(this.Handle, "CLogicEventListener", "m_bIsEnabled");

// m_nTeam
public ref Int32 Team => ref Schema.GetRef<Int32>(this.Handle, "CLogicEventListener", "m_nTeam");

// m_OnEventFired
public CEntityIOOutput OnEventFired => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CLogicEventListener", "m_OnEventFired");

}

public partial class CLogicGameEvent : CLogicalEntity
{
public CLogicGameEvent (IntPtr pointer) : base(pointer) {}
Expand Down Expand Up @@ -20138,6 +20198,12 @@ public CTriggerGravity (IntPtr pointer) : base(pointer) {}

}

public partial class CTriggerHostageReset : CBaseTrigger
{
public CTriggerHostageReset (IntPtr pointer) : base(pointer) {}

}

public partial class CTriggerHurt : CBaseTrigger
{
public CTriggerHurt (IntPtr pointer) : base(pointer) {}
Expand Down
135 changes: 133 additions & 2 deletions managed/CounterStrikeSharp.SchemaGen/Schema/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -4855,6 +4855,14 @@
},
"CBaseCSGrenadeProjectile": {
"fields": [
{
"name": "m_vInitialPosition",
"type": {
"atomic": 0,
"category": 4,
"name": "Vector"
}
},
{
"name": "m_vInitialVelocity",
"type": {
Expand Down Expand Up @@ -4970,6 +4978,20 @@
"category": 0,
"name": "int32"
}
},
{
"name": "m_bHasEverHitPlayer",
"type": {
"category": 0,
"name": "bool"
}
},
{
"name": "m_bClearFromPlayers",
"type": {
"category": 0,
"name": "bool"
}
}
],
"parent": "CBaseGrenade"
Expand Down Expand Up @@ -13245,10 +13267,10 @@
}
},
{
"name": "m_bMatchAbortedDueToPlayerBan",
"name": "m_nMatchAbortedEarlyReason",
"type": {
"category": 0,
"name": "bool"
"name": "int32"
}
},
{
Expand Down Expand Up @@ -13828,6 +13850,13 @@
"name": "uint32"
}
},
{
"name": "m_bCannotBeKicked",
"type": {
"category": 0,
"name": "bool"
}
},
{
"name": "m_bEverFullyConnected",
"type": {
Expand Down Expand Up @@ -14125,12 +14154,26 @@
"name": "bool"
}
},
{
"name": "m_dblLastReceivedPacketPlatFloatTime",
"type": {
"category": 0,
"name": "float64"
}
},
{
"name": "m_LastTeamDamageWarningTime",
"type": {
"category": 5,
"name": "GameTime_t"
}
},
{
"name": "m_LastTimePlayerWasDisconnectedForPawnsRemove",
"type": {
"category": 5,
"name": "GameTime_t"
}
}
],
"parent": "CBasePlayerController"
Expand Down Expand Up @@ -14439,6 +14482,13 @@
"name": "char[18]"
}
},
{
"name": "m_bInHostageResetZone",
"type": {
"category": 0,
"name": "bool"
}
},
{
"name": "m_bInBuyZone",
"type": {
Expand Down Expand Up @@ -16244,6 +16294,20 @@
"category": 0,
"name": "float32"
}
},
{
"name": "m_flHeightAtJumpStart",
"type": {
"category": 0,
"name": "float32"
}
},
{
"name": "m_flMaxJumpHeightThisJump",
"type": {
"category": 0,
"name": "float32"
}
}
],
"parent": "CPlayer_MovementServices_Humanoid"
Expand Down Expand Up @@ -30081,6 +30145,14 @@
"category": 4,
"name": "Vector"
}
},
{
"name": "m_vecHostageResetPosition",
"type": {
"atomic": 0,
"category": 4,
"name": "Vector"
}
}
],
"parent": "CHostageExpresserShim"
Expand Down Expand Up @@ -32719,6 +32791,40 @@
],
"parent": "CLogicalEntity"
},
"CLogicEventListener": {
"fields": [
{
"name": "m_strEventName",
"type": {
"atomic": 0,
"category": 4,
"name": "CUtlString"
}
},
{
"name": "m_bIsEnabled",
"type": {
"category": 0,
"name": "bool"
}
},
{
"name": "m_nTeam",
"type": {
"category": 0,
"name": "int32"
}
},
{
"name": "m_OnEventFired",
"type": {
"category": 5,
"name": "CEntityIOOutput"
}
}
],
"parent": "CLogicalEntity"
},
"CLogicGameEvent": {
"fields": [
{
Expand Down Expand Up @@ -54460,6 +54566,10 @@
"fields": [],
"parent": "CBaseTrigger"
},
"CTriggerHostageReset": {
"fields": [],
"parent": "CBaseTrigger"
},
"CTriggerHurt": {
"fields": [
{
Expand Down Expand Up @@ -90276,6 +90386,23 @@
}
]
},
"C4LightEffect_t": {
"align": 4,
"items": [
{
"name": "eLightEffectNone",
"value": 0
},
{
"name": "eLightEffectDropped",
"value": 1
},
{
"name": "eLightEffectThirdPersonHeld",
"value": 2
}
]
},
"CAnimationGraphVisualizerPrimitiveType": {
"align": 4,
"items": [
Expand Down Expand Up @@ -96794,6 +96921,10 @@
{
"name": "DFLAG_IGNORE_ARMOR",
"value": 2048
},
{
"name": "DFLAG_SUPPRESS_UTILREMOVE",
"value": 4096
}
]
},
Expand Down

0 comments on commit 15e1260

Please sign in to comment.