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
8 changes: 8 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
"options": {
"cwd": "${workspaceFolder}/managed/CounterStrikeSharp.API"
}
},
{
"label": "generate-schema",
"type": "shell",
"command": "dotnet run -- ../CounterStrikeSharp.API/Core/Schema",
"options": {
"cwd": "${workspaceFolder}/managed/CounterStrikeSharp.SchemaGen"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,6 @@ public string TournamentPredictionsTxt
[SchemaMember("CCSGameRules", "m_MinimapVerticalSectionHeights")]
public Span<float> MinimapVerticalSectionHeights => Schema.GetFixedArray<float>(this.Handle, "CCSGameRules", "m_MinimapVerticalSectionHeights", 8);

// m_bSpawnedTerrorHuntHeavy
[SchemaMember("CCSGameRules", "m_bSpawnedTerrorHuntHeavy")]
public ref bool SpawnedTerrorHuntHeavy => ref Schema.GetRef<bool>(this.Handle, "CCSGameRules", "m_bSpawnedTerrorHuntHeavy");

// m_ullLocalMatchID
[SchemaMember("CCSGameRules", "m_ullLocalMatchID")]
public ref UInt64 UllLocalMatchID => ref Schema.GetRef<UInt64>(this.Handle, "CCSGameRules", "m_ullLocalMatchID");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,4 @@ public CCSPlayer_ItemServices (IntPtr pointer) : base(pointer) {}
[SchemaMember("CCSPlayer_ItemServices", "m_bHasHelmet")]
public ref bool HasHelmet => ref Schema.GetRef<bool>(this.Handle, "CCSPlayer_ItemServices", "m_bHasHelmet");

// m_bHasHeavyArmor
[SchemaMember("CCSPlayer_ItemServices", "m_bHasHeavyArmor")]
public ref bool HasHeavyArmor => ref Schema.GetRef<bool>(this.Handle, "CCSPlayer_ItemServices", "m_bHasHeavyArmor");

}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ public enum CSPlayerBlockingUseAction_t : uint
k_CSPlayerBlockingUseAction_DefusingWithKit = 0x2,
k_CSPlayerBlockingUseAction_HostageGrabbing = 0x3,
k_CSPlayerBlockingUseAction_HostageDropping = 0x4,
k_CSPlayerBlockingUseAction_EquippingHeavyArmor = 0x5,
k_CSPlayerBlockingUseAction_TakingOffHeavyArmor = 0x6,
k_CSPlayerBlockingUseAction_MapLongUseEntity_Pickup = 0x7,
k_CSPlayerBlockingUseAction_MapLongUseEntity_Place = 0x8,
k_CSPlayerBlockingUseAction_MaxCount = 0x9,
k_CSPlayerBlockingUseAction_MapLongUseEntity_Pickup = 0x5,
k_CSPlayerBlockingUseAction_MapLongUseEntity_Place = 0x6,
k_CSPlayerBlockingUseAction_MaxCount = 0x7,
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,5 @@ public enum CSWeaponType : uint
WEAPONTYPE_GRENADE = 0x9,
WEAPONTYPE_EQUIPMENT = 0xA,
WEAPONTYPE_STACKABLEITEM = 0xB,
WEAPONTYPE_FISTS = 0xC,
WEAPONTYPE_BREACHCHARGE = 0xD,
WEAPONTYPE_BUMPMINE = 0xE,
WEAPONTYPE_TABLET = 0xF,
WEAPONTYPE_MELEE = 0x10,
WEAPONTYPE_SHIELD = 0x11,
WEAPONTYPE_ZONE_REPULSOR = 0x12,
WEAPONTYPE_UNKNOWN = 0x13,
WEAPONTYPE_UNKNOWN = 0xC,
}
64 changes: 5 additions & 59 deletions managed/CounterStrikeSharp.SchemaGen/Schema/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -13263,13 +13263,6 @@
"name": "float32[8]"
}
},
{
"name": "m_bSpawnedTerrorHuntHeavy",
"type": {
"category": 0,
"name": "bool"
}
},
{
"name": "m_ullLocalMatchID",
"type": {
Expand Down Expand Up @@ -16569,13 +16562,6 @@
"category": 0,
"name": "bool"
}
},
{
"name": "m_bHasHeavyArmor",
"type": {
"category": 0,
"name": "bool"
}
}
],
"parent": "CPlayer_ItemServices"
Expand Down Expand Up @@ -32657,10 +32643,6 @@
],
"parent": "CBaseModelEntity"
},
"CItemHeavyAssaultSuit": {
"fields": [],
"parent": "CItemAssaultSuit"
},
"CItemKevlar": {
"fields": [],
"parent": "CItem"
Expand Down Expand Up @@ -100249,25 +100231,17 @@
"name": "k_CSPlayerBlockingUseAction_HostageDropping",
"value": 4
},
{
"name": "k_CSPlayerBlockingUseAction_EquippingHeavyArmor",
"value": 5
},
{
"name": "k_CSPlayerBlockingUseAction_TakingOffHeavyArmor",
"value": 6
},
{
"name": "k_CSPlayerBlockingUseAction_MapLongUseEntity_Pickup",
"value": 7
"value": 5
},
{
"name": "k_CSPlayerBlockingUseAction_MapLongUseEntity_Place",
"value": 8
"value": 6
},
{
"name": "k_CSPlayerBlockingUseAction_MaxCount",
"value": 9
"value": 7
}
]
},
Expand Down Expand Up @@ -100451,37 +100425,9 @@
"name": "WEAPONTYPE_STACKABLEITEM",
"value": 11
},
{
"name": "WEAPONTYPE_FISTS",
"value": 12
},
{
"name": "WEAPONTYPE_BREACHCHARGE",
"value": 13
},
{
"name": "WEAPONTYPE_BUMPMINE",
"value": 14
},
{
"name": "WEAPONTYPE_TABLET",
"value": 15
},
{
"name": "WEAPONTYPE_MELEE",
"value": 16
},
{
"name": "WEAPONTYPE_SHIELD",
"value": 17
},
{
"name": "WEAPONTYPE_ZONE_REPULSOR",
"value": 18
},
{
"name": "WEAPONTYPE_UNKNOWN",
"value": 19
"value": 12
}
]
},
Expand Down Expand Up @@ -110428,4 +110374,4 @@
]
}
}
}
}
Loading