Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
620 changes: 310 additions & 310 deletions generator/schema_generator/sdk.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ public void UnhookEntityOutput(Guid guid)
{ typeof(CFuncTimescale), "func_timescale" },
{ typeof(CFuncTankTrain), "func_tanktrain" },
{ typeof(CFuncShatterglass), "func_shatterglass" },
{ typeof(CFuncRetakeBarrier), "func_retakebarrier" },
{ typeof(CFuncRotator), "func_rotator" },
{ typeof(CFuncRotating), "func_rotating" },
{ typeof(CFuncPropRespawnZone), "func_proprrespawnzone" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public ref bool TechnicalTimeOut {
public ref bool MatchWaitingForResume {
get => ref _Handle.AsRef<bool>(Schema.GetOffset(0x6295CF6597B2188B));
}
public ref int FreezeTime {
get => ref _Handle.AsRef<int>(Schema.GetOffset(0x6295CF6525D5D12E));
}
public ref int RoundTime {
get => ref _Handle.AsRef<int>(Schema.GetOffset(0x6295CF659A5A5155));
}
Expand Down Expand Up @@ -268,9 +271,6 @@ public ref bool EndMatchOnRoundReset {
public ref bool EndMatchOnThink {
get => ref _Handle.AsRef<bool>(Schema.GetOffset(0x6295CF650888575A));
}
public ref int FreezeTime {
get => ref _Handle.AsRef<int>(Schema.GetOffset(0x6295CF6525D5D12E));
}
public ref int NumTerrorist {
get => ref _Handle.AsRef<int>(Schema.GetOffset(0x6295CF65E58F0B9A));
}
Expand Down Expand Up @@ -650,6 +650,9 @@ public void TechnicalTimeOutUpdated() {
public void MatchWaitingForResumeUpdated() {
Schema.Update(_Handle, 0x6295CF6597B2188B);
}
public void FreezeTimeUpdated() {
Schema.Update(_Handle, 0x6295CF6525D5D12E);
}
public void RoundTimeUpdated() {
Schema.Update(_Handle, 0x6295CF659A5A5155);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,6 @@ public ref bool KilledByHeadshot {
public ref int LastHitBox {
get => ref _Handle.AsRef<int>(Schema.GetOffset(0xC7614AAB9B4C64DB));
}
public ref int LastHealth {
get => ref _Handle.AsRef<int>(Schema.GetOffset(0xC7614AAB3697C5BB));
}
public CCSBot? Bot {
get {
var ptr = _Handle.Read<nint>(Schema.GetOffset(0xC7614AAB172AF0B4));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ public ref bool WasSurfing {
public ref Vector InputRotated {
get => ref _Handle.AsRef<Vector>(Schema.GetOffset(0xD20D9A03853EE154));
}
public ref bool JumpApexPending {
get => ref _Handle.AsRef<bool>(Schema.GetOffset(0xD20D9A03B2669F50));
}

public void LadderNormalUpdated() {
Schema.Update(_Handle, 0xD20D9A0308F3CAF6);
Expand Down Expand Up @@ -196,4 +199,7 @@ public void StaminaUpdated() {
public void WasSurfingUpdated() {
Schema.Update(_Handle, 0xD20D9A03C30201EE);
}
public void JumpApexPendingUpdated() {
Schema.Update(_Handle, 0xD20D9A03B2669F50);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public CCSPlayer_PingServicesImpl(nint handle) : base(handle) {
public SchemaUntypedField PlayerPingTokens {
get => new SchemaUntypedField(_Handle + Schema.GetOffset(0xC78D79CA55696280));
}
public ref CHandle<CBaseEntity> PlayerPing {
get => ref _Handle.AsRef<CHandle<CBaseEntity>>(Schema.GetOffset(0xC78D79CA464EEA6E));
public ref CHandle<CPlayerPing> PlayerPing {
get => ref _Handle.AsRef<CHandle<CPlayerPing>>(Schema.GetOffset(0xC78D79CA464EEA6E));
}

public void PlayerPingUpdated() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public ref int Flags {
public ref CUtlVector<uint> Recipients {
get => ref _Handle.AsRef<CUtlVector<uint>>(Schema.GetOffset(0xB27F546CDF6522D1));
}
public ref uint SlotPlayerExcludedDueToPrediction {
get => ref _Handle.AsRef<uint>(Schema.GetOffset(0xB27F546CA4F2B69C));
}


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// <auto-generated />
#pragma warning disable CS0108
#nullable enable

using SwiftlyS2.Core.Schemas;
using SwiftlyS2.Shared.Schemas;
using SwiftlyS2.Shared.SchemaDefinitions;
using SwiftlyS2.Shared.Natives;
using SwiftlyS2.Core.Extensions;

namespace SwiftlyS2.Core.SchemaDefinitions;

internal partial class CFuncRetakeBarrierImpl : CDynamicPropImpl, CFuncRetakeBarrier {

public CFuncRetakeBarrierImpl(nint handle) : base(handle) {
}




}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public ref short VerticalAngleNodeIdx {
public ref short HorizontalAngleNodeIdx {
get => ref _Handle.AsRef<short>(Schema.GetOffset(0xE1CD14C28E2FD3DB));
}
public ref short WeaponCategoryNodeIdx {
get => ref _Handle.AsRef<short>(Schema.GetOffset(0xE1CD14C216D198E4));
}
public ref short EnabledNodeIdx {
get => ref _Handle.AsRef<short>(Schema.GetOffset(0xE1CD14C2F7CDF5E9));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public ref PropDoorRotatingOpenDirection_e OpenDirection {
public ref PropDoorRotatingOpenDirection_e CurrentOpenDirection {
get => ref _Handle.AsRef<PropDoorRotatingOpenDirection_e>(Schema.GetOffset(0x289EB6132BAD86EE));
}
public ref doorCheck_e DefaultCheckDirection {
get => ref _Handle.AsRef<doorCheck_e>(Schema.GetOffset(0x289EB6134191E768));
}
public ref float AjarAngle {
get => ref _Handle.AsRef<float>(Schema.GetOffset(0x289EB613CD456612));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public ref int FirstSecondHalfRound {
public ref int BombSite {
get => ref _Handle.AsRef<int>(Schema.GetOffset(0x34813D49E7E88ECF));
}
public ref CHandle<CCSPlayerPawn> BombPlanter {
get => ref _Handle.AsRef<CHandle<CCSPlayerPawn>>(Schema.GetOffset(0x34813D491A1306A3));
}

public void MatchSeedUpdated() {
Schema.Update(_Handle, 0x34813D492DE0044B);
Expand All @@ -46,4 +49,7 @@ public void FirstSecondHalfRoundUpdated() {
public void BombSiteUpdated() {
Schema.Update(_Handle, 0x34813D49E7E88ECF);
}
public void BombPlanterUpdated() {
Schema.Update(_Handle, 0x34813D491A1306A3);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CCSGameRules : CTeamplayRules, ISchemaClass<CCSGameRules> {

static CCSGameRules ISchemaClass<CCSGameRules>.From(nint handle) => new CCSGameRulesImpl(handle);
static int ISchemaClass<CCSGameRules>.Size => 70608;
static int ISchemaClass<CCSGameRules>.Size => 70704;


public ref bool FreezePeriod { get; }
Expand All @@ -38,6 +38,8 @@ public partial interface CCSGameRules : CTeamplayRules, ISchemaClass<CCSGameRule

public ref bool MatchWaitingForResume { get; }

public ref int FreezeTime { get; }

public ref int RoundTime { get; }

public ref float MatchStartTime { get; }
Expand Down Expand Up @@ -173,8 +175,6 @@ public partial interface CCSGameRules : CTeamplayRules, ISchemaClass<CCSGameRule

public ref bool EndMatchOnThink { get; }

public ref int FreezeTime { get; }

public ref int NumTerrorist { get; }

public ref int NumCT { get; }
Expand Down Expand Up @@ -406,6 +406,7 @@ public partial interface CCSGameRules : CTeamplayRules, ISchemaClass<CCSGameRule
public void CTTimeOutsUpdated();
public void TechnicalTimeOutUpdated();
public void MatchWaitingForResumeUpdated();
public void FreezeTimeUpdated();
public void RoundTimeUpdated();
public void MatchStartTimeUpdated();
public void RoundStartTimeUpdated();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CCSPlayerPawn : CCSPlayerPawnBase, ISchemaClass<CCSPlayerPawn> {

static CCSPlayerPawn ISchemaClass<CCSPlayerPawn>.From(nint handle) => new CCSPlayerPawnImpl(handle);
static int ISchemaClass<CCSPlayerPawn>.Size => 7296;
static int ISchemaClass<CCSPlayerPawn>.Size => 7280;


public CCSPlayer_BulletServices? BulletServices { get; }
Expand Down Expand Up @@ -184,8 +184,6 @@ public partial interface CCSPlayerPawn : CCSPlayerPawnBase, ISchemaClass<CCSPlay

public ref int LastHitBox { get; }

public ref int LastHealth { get; }

public CCSBot? Bot { get; }

public ref bool BotAllowActive { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CCSPlayer_MovementServices : CPlayer_MovementServices_Humanoid, ISchemaClass<CCSPlayer_MovementServices> {

static CCSPlayer_MovementServices ISchemaClass<CCSPlayer_MovementServices>.From(nint handle) => new CCSPlayer_MovementServicesImpl(handle);
static int ISchemaClass<CCSPlayer_MovementServices>.Size => 1512;
static int ISchemaClass<CCSPlayer_MovementServices>.Size => 3600;


public ref Vector LadderNormal { get; }
Expand Down Expand Up @@ -95,6 +95,8 @@ public partial interface CCSPlayer_MovementServices : CPlayer_MovementServices_H
public ref bool WasSurfing { get; }

public ref Vector InputRotated { get; }

public ref bool JumpApexPending { get; }

public void LadderNormalUpdated();
public void LadderSurfacePropIndexUpdated();
Expand All @@ -115,4 +117,5 @@ public partial interface CCSPlayer_MovementServices : CPlayer_MovementServices_H
public void OffsetTickStashedSpeedUpdated();
public void StaminaUpdated();
public void WasSurfingUpdated();
public void JumpApexPendingUpdated();
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public partial interface CCSPlayer_PingServices : CPlayerPawnComponent, ISchemaC
// GameTime_t
public SchemaUntypedField PlayerPingTokens { get; }

public ref CHandle<CBaseEntity> PlayerPing { get; }
public ref CHandle<CPlayerPing> PlayerPing { get; }

public void PlayerPingUpdated();
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CCopyRecipientFilter : ISchemaClass<CCopyRecipientFilter> {

static CCopyRecipientFilter ISchemaClass<CCopyRecipientFilter>.From(nint handle) => new CCopyRecipientFilterImpl(handle);
static int ISchemaClass<CCopyRecipientFilter>.Size => 48;
static int ISchemaClass<CCopyRecipientFilter>.Size => 56;


public ref int Flags { get; }

public ref CUtlVector<uint> Recipients { get; }

public ref uint SlotPlayerExcludedDueToPrediction { get; }


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// <auto-generated />
#pragma warning disable CS0108
#nullable enable

using SwiftlyS2.Shared.Schemas;
using SwiftlyS2.Shared.Natives;
using SwiftlyS2.Core.SchemaDefinitions;

namespace SwiftlyS2.Shared.SchemaDefinitions;

public partial interface CFuncRetakeBarrier : CDynamicProp, ISchemaClass<CFuncRetakeBarrier> {

static CFuncRetakeBarrier ISchemaClass<CFuncRetakeBarrier>.From(nint handle) => new CFuncRetakeBarrierImpl(handle);
static int ISchemaClass<CFuncRetakeBarrier>.Size => 3440;




}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmAdditiveBlendTask : CNmBlendTaskBase, ISchemaClass<CNmAdditiveBlendTask> {

static CNmAdditiveBlendTask ISchemaClass<CNmAdditiveBlendTask>.From(nint handle) => new CNmAdditiveBlendTaskImpl(handle);
static int ISchemaClass<CNmAdditiveBlendTask>.Size => 216;
static int ISchemaClass<CNmAdditiveBlendTask>.Size => 224;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public partial interface CNmAimCSNode__CDefinition : CNmPassthroughNode__CDefini

public ref short HorizontalAngleNodeIdx { get; }

public ref short WeaponCategoryNodeIdx { get; }

public ref short EnabledNodeIdx { get; }

public ref float BlendTimeSeconds { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmAimCSTask : CNmPoseTask, ISchemaClass<CNmAimCSTask> {

static CNmAimCSTask ISchemaClass<CNmAimCSTask>.From(nint handle) => new CNmAimCSTaskImpl(handle);
static int ISchemaClass<CNmAimCSTask>.Size => 304;
static int ISchemaClass<CNmAimCSTask>.Size => 240;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmBlendTask : CNmBlendTaskBase, ISchemaClass<CNmBlendTask> {

static CNmBlendTask ISchemaClass<CNmBlendTask>.From(nint handle) => new CNmBlendTaskImpl(handle);
static int ISchemaClass<CNmBlendTask>.Size => 216;
static int ISchemaClass<CNmBlendTask>.Size => 224;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmBlendTaskBase : CNmPoseTask, ISchemaClass<CNmBlendTaskBase> {

static CNmBlendTaskBase ISchemaClass<CNmBlendTaskBase>.From(nint handle) => new CNmBlendTaskBaseImpl(handle);
static int ISchemaClass<CNmBlendTaskBase>.Size => 216;
static int ISchemaClass<CNmBlendTaskBase>.Size => 224;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmCachedPoseReadTask : CNmPoseTask, ISchemaClass<CNmCachedPoseReadTask> {

static CNmCachedPoseReadTask ISchemaClass<CNmCachedPoseReadTask>.From(nint handle) => new CNmCachedPoseReadTaskImpl(handle);
static int ISchemaClass<CNmCachedPoseReadTask>.Size => 88;
static int ISchemaClass<CNmCachedPoseReadTask>.Size => 96;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmCachedPoseWriteTask : CNmPoseTask, ISchemaClass<CNmCachedPoseWriteTask> {

static CNmCachedPoseWriteTask ISchemaClass<CNmCachedPoseWriteTask>.From(nint handle) => new CNmCachedPoseWriteTaskImpl(handle);
static int ISchemaClass<CNmCachedPoseWriteTask>.Size => 88;
static int ISchemaClass<CNmCachedPoseWriteTask>.Size => 96;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmChainLookatTask : CNmPoseTask, ISchemaClass<CNmChainLookatTask> {

static CNmChainLookatTask ISchemaClass<CNmChainLookatTask>.From(nint handle) => new CNmChainLookatTaskImpl(handle);
static int ISchemaClass<CNmChainLookatTask>.Size => 136;
static int ISchemaClass<CNmChainLookatTask>.Size => 144;


public ref int ChainEndBoneIdx { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmFollowBoneTask : CNmPoseTask, ISchemaClass<CNmFollowBoneTask> {

static CNmFollowBoneTask ISchemaClass<CNmFollowBoneTask>.From(nint handle) => new CNmFollowBoneTaskImpl(handle);
static int ISchemaClass<CNmFollowBoneTask>.Size => 112;
static int ISchemaClass<CNmFollowBoneTask>.Size => 120;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmModelSpaceBlendTask : CNmBlendTaskBase, ISchemaClass<CNmModelSpaceBlendTask> {

static CNmModelSpaceBlendTask ISchemaClass<CNmModelSpaceBlendTask>.From(nint handle) => new CNmModelSpaceBlendTaskImpl(handle);
static int ISchemaClass<CNmModelSpaceBlendTask>.Size => 216;
static int ISchemaClass<CNmModelSpaceBlendTask>.Size => 224;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmOverlayBlendTask : CNmBlendTaskBase, ISchemaClass<CNmOverlayBlendTask> {

static CNmOverlayBlendTask ISchemaClass<CNmOverlayBlendTask>.From(nint handle) => new CNmOverlayBlendTaskImpl(handle);
static int ISchemaClass<CNmOverlayBlendTask>.Size => 216;
static int ISchemaClass<CNmOverlayBlendTask>.Size => 224;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmPoseTask : ISchemaClass<CNmPoseTask> {

static CNmPoseTask ISchemaClass<CNmPoseTask>.From(nint handle) => new CNmPoseTaskImpl(handle);
static int ISchemaClass<CNmPoseTask>.Size => 80;
static int ISchemaClass<CNmPoseTask>.Size => 88;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace SwiftlyS2.Shared.SchemaDefinitions;
public partial interface CNmReferencePoseTask : CNmPoseTask, ISchemaClass<CNmReferencePoseTask> {

static CNmReferencePoseTask ISchemaClass<CNmReferencePoseTask>.From(nint handle) => new CNmReferencePoseTaskImpl(handle);
static int ISchemaClass<CNmReferencePoseTask>.Size => 80;
static int ISchemaClass<CNmReferencePoseTask>.Size => 88;



Expand Down
Loading
Loading