mirror of
https://github.com/roflmuffin/CounterStrikeSharp.git
synced 2025-12-06 08:03:12 -08:00
Compare commits
57 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32c99b2e49 | ||
|
|
5c9d38b2b0 | ||
|
|
b54f5c3dee | ||
|
|
761380dff6 | ||
|
|
71ae253e5e | ||
|
|
c2f212df51 | ||
|
|
ad7f7bd365 | ||
|
|
a0fcb7817e | ||
|
|
cdb7a6ed17 | ||
|
|
38e29531c3 | ||
|
|
5f95969980 | ||
|
|
42dd270b78 | ||
|
|
b807c3eda8 | ||
|
|
3ede4c366c | ||
|
|
49cc91e373 | ||
|
|
8a795de9fa | ||
|
|
e36d2e07e4 | ||
|
|
cdd2a8275e | ||
|
|
2b31f519eb | ||
|
|
2c7f896189 | ||
|
|
5a354a25e3 | ||
|
|
74ce0d295a | ||
|
|
9c8f25f721 | ||
|
|
4b1a2c427e | ||
|
|
8f59fd5b97 | ||
|
|
cbeac50e4a | ||
|
|
eba7d9c313 | ||
|
|
23828153eb | ||
|
|
0e3698b370 | ||
|
|
bb38b1cb1a | ||
|
|
10f472ec85 | ||
|
|
28ce183cdc | ||
|
|
dddf24d0f3 | ||
|
|
fce68cb160 | ||
|
|
a82faeb5c8 | ||
|
|
ce3ff449b9 | ||
|
|
aa40d81a86 | ||
|
|
5644921873 | ||
|
|
3860ca1662 | ||
|
|
b79fd19c85 | ||
|
|
b7ea025b03 | ||
|
|
5ac173df51 | ||
|
|
c82a58f5ab | ||
|
|
1806919559 | ||
|
|
f8451c2818 | ||
|
|
a87bd25b48 | ||
|
|
9c5468e5ba | ||
|
|
f826be664f | ||
|
|
7f5103d9ee | ||
|
|
877b7c5a4a | ||
|
|
24363d6352 | ||
|
|
2eaf7c2d8c | ||
|
|
8b486ecf7e | ||
|
|
54cc93e0f8 | ||
|
|
a695eec4fa | ||
|
|
e207be2fbf | ||
|
|
eea64519a6 |
11
.devcontainer/linux/devcontainer.json
Normal file
11
.devcontainer/linux/devcontainer.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "SteamRT Sniper SDK",
|
||||
"image": "registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-vscode.cpptools"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,5 +10,5 @@ indent_size = 4
|
||||
max_line_length = 140
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.json]
|
||||
[{*.json,*.yaml,*.yml}]
|
||||
indent_size = 2
|
||||
|
||||
3
.github/dependabot.yaml
vendored
3
.github/dependabot.yaml
vendored
@@ -6,7 +6,8 @@ updates:
|
||||
allow:
|
||||
- dependency-name: "libraries/hl2sdk-cs2"
|
||||
- dependency-name: "libraries/metamod-source"
|
||||
- dependency-name: "libraries/Protobufs"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
prefix: "chore(deps)"
|
||||
|
||||
21
.github/workflows/actionlint.yaml
vendored
Normal file
21
.github/workflows/actionlint.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: actionlint
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- ".github/actions/**"
|
||||
- ".github/workflows/**"
|
||||
|
||||
jobs:
|
||||
actionlint:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 3
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: actionlint
|
||||
uses: reviewdog/action-actionlint@v1
|
||||
with:
|
||||
reporter: github-pr-review
|
||||
fail_on_error: true
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,6 +3,7 @@
|
||||
cmake-build-*/
|
||||
.kdev4/
|
||||
generated/
|
||||
!**/protobuf/generated/
|
||||
|
||||
# configure_file auto generated.
|
||||
configs/addons/metamod/counterstrikesharp.vdf
|
||||
@@ -11,6 +12,7 @@ libraries/mono/
|
||||
|
||||
CMakeSettings.json
|
||||
|
||||
build-*/
|
||||
build/
|
||||
build_test/
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ add_subdirectory(libraries/DynoHook)
|
||||
set_property(TARGET dynohook PROPERTY DYNO_ARCH_X86 64)
|
||||
set_property(TARGET funchook-static PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
include("makefiles/protobuf.cmake")
|
||||
|
||||
set(SOURCE_FILES
|
||||
libraries/hl2sdk-cs2/public/tier0/memoverride.cpp
|
||||
src/mm_plugin.cpp
|
||||
@@ -56,8 +58,6 @@ set(SOURCE_FILES
|
||||
src/core/tick_scheduler.cpp
|
||||
src/scripting/autonative.h
|
||||
src/scripting/natives/natives_engine.cpp
|
||||
src/core/engine_trace.h
|
||||
src/core/engine_trace.cpp
|
||||
src/scripting/natives/natives_callbacks.cpp
|
||||
src/core/managers/player_manager.h
|
||||
src/core/managers/player_manager.cpp
|
||||
@@ -90,35 +90,20 @@ set(SOURCE_FILES
|
||||
src/core/managers/server_manager.cpp
|
||||
src/core/managers/server_manager.h
|
||||
src/scripting/natives/natives_server.cpp
|
||||
src/scripting/natives/natives_usermessages.cpp
|
||||
libraries/nlohmann/json.hpp
|
||||
src/core/managers/voice_manager.cpp
|
||||
src/core/managers/voice_manager.h
|
||||
src/core/managers/usermessage_manager.cpp
|
||||
src/core/managers/usermessage_manager.h
|
||||
src/scripting/natives/natives_dynamichooks.cpp
|
||||
src/core/game_system.h
|
||||
src/core/game_system.cpp
|
||||
src/core/UserMessage.h
|
||||
src/core/UserMessage.cpp
|
||||
src/core/recipientfilters.h
|
||||
)
|
||||
|
||||
set(PROTO_DIRS -I${CMAKE_CURRENT_SOURCE_DIR}/libraries/Protobufs/csgo)
|
||||
file(GLOB PROTOS "${CMAKE_CURRENT_SOURCE_DIR}/libraries/Protobufs/csgo/*.proto")
|
||||
|
||||
## Generate protobuf source & headers
|
||||
if(LINUX)
|
||||
set(PROTOC_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/libraries/hl2sdk-cs2/devtools/bin/linux/protoc)
|
||||
elseif(WIN32)
|
||||
set(PROTOC_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/libraries/hl2sdk-cs2/devtools/bin/protoc.exe)
|
||||
endif()
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT protobuf_output_stamp
|
||||
COMMAND ${PROTOC_EXECUTABLE} --proto_path=thirdparty/protobuf-3.21.8/src --proto_path=common --cpp_out=common common/network_connection.proto
|
||||
COMMENT "Generating protobuf file"
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libraries/hl2sdk-cs2
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
set(SOURCE_FILES ${SOURCE_FILES} protobuf_output_stamp)
|
||||
|
||||
# Sources
|
||||
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${NATIVES_SOURCES} ${CONVERSIONS_SOURCES} ${CONVERSIONS_HEADERS})
|
||||
|
||||
target_include_directories(
|
||||
@@ -143,7 +128,7 @@ elseif(WIN32)
|
||||
endif()
|
||||
|
||||
# Libraries
|
||||
target_link_libraries(${PROJECT_NAME} ${COUNTER_STRIKE_SHARP_LINK_LIBRARIES})
|
||||
target_link_libraries(${PROJECT_NAME} ${COUNTER_STRIKE_SHARP_LINK_LIBRARIES} Protobufs)
|
||||
|
||||
add_custom_command(
|
||||
TARGET ${PROJECT_NAME} PRE_BUILD
|
||||
|
||||
20
README.md
20
README.md
@@ -1,15 +1,19 @@
|
||||
# CounterStrikeSharp
|
||||
<div align=right>Table of Contents ↗️</div>
|
||||
|
||||
<h1 align=center><code>CounterStrikeSharp</code></h1>
|
||||
|
||||
<div align=center>
|
||||
<a href=https://github.com/roflmuffin/CounterStrikeSharp/releases><img src=https://img.shields.io/github/v/release/roflmuffin/CounterStrikeSharp?style=flat-square&label=latest></a>
|
||||
<a href=https://github.com/roflmuffin/CounterStrikeSharp/releases><img src=https://img.shields.io/github/release-date/roflmuffin/CounterStrikeSharp?style=flat-square&label=last%20release></a>
|
||||
<a href=https://github.com/roflmuffin/CounterStrikeSharp/releases><img src=https://img.shields.io/github/downloads/roflmuffin/CounterStrikeSharp/total.svg?style=flat-square alt=downloads></a>
|
||||
<a href=https://discord.gg/eAZU3guKWU><img src=https://img.shields.io/discord/1160907911501991946?logo=discord&cacheSeconds=3500&style=flat-square alt="chat on discord"></a>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
CounterStrikeSharp is a server side modding framework for Counter-Strike 2. This project implements a .NET 8 scripting layer on top of a Metamod Source Plugin, allowing developers to create plugins that interact with the game server in a modern language (C#) to facilitate the creation of maintainable and testable code.
|
||||
|
||||
[Come and join our Discord](https://discord.gg/eAZU3guKWU)
|
||||
|
||||
## History
|
||||
|
||||
This project is an ongoing migration of a previous project (titled [VSP.NET](https://github.com/roflmuffin/vspdotnet)) whereby a scripting layer was added to a Valve Server Plugin for CSGO.
|
||||
|
||||
Due to the architectural changes of CS2, the plugin is being rebuilt on the ground up, to support Linux 64-bit, something which was previously impossible.
|
||||
|
||||
## Install
|
||||
|
||||
Download the latest build from [here](https://github.com/roflmuffin/CounterStrikeSharp/releases). (Download the with runtime version if this is your first time installing).
|
||||
@@ -79,7 +83,7 @@ public class HelloWorldPlugin : BasePlugin
|
||||
return HookResult.Continue;
|
||||
}
|
||||
|
||||
[ConsoleCommand("issue_warning", "Issue warning to player")]
|
||||
[ConsoleCommand("css_issue_warning", "Issue warning to player")]
|
||||
public void OnCommand(CCSPlayerController? player, CommandInfo command)
|
||||
{
|
||||
Logger.LogWarning("Player shouldn't be doing that");
|
||||
|
||||
@@ -4,5 +4,7 @@
|
||||
"FollowCS2ServerGuidelines": true,
|
||||
"PluginHotReloadEnabled": true,
|
||||
"PluginAutoLoadEnabled": true,
|
||||
"ServerLanguage": "en"
|
||||
"ServerLanguage": "en",
|
||||
"UnlockConCommands": true,
|
||||
"UnlockConVars": true
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
"ClientPrint": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 85 C9 0F 84 ? ? ? ? 48 8B C4 48 89 58 18",
|
||||
"windows": "48 85 C9 0F 84 ? ? ? ? 48 89 5C 24 ? 55",
|
||||
"linux": "55 48 89 E5 41 57 49 89 CF 41 56 49 89 D6 41 55 41 89 F5 41 54 4C 8D A5 A0 FE FF FF"
|
||||
}
|
||||
},
|
||||
@@ -22,28 +22,28 @@
|
||||
},
|
||||
"CCSPlayerController_ChangeTeam": {
|
||||
"offsets": {
|
||||
"windows": 98,
|
||||
"linux": 97
|
||||
"windows": 100,
|
||||
"linux": 99
|
||||
}
|
||||
},
|
||||
"CCSPlayerController_Respawn": {
|
||||
"offsets": {
|
||||
"windows": 254,
|
||||
"linux": 256
|
||||
"windows": 257,
|
||||
"linux": 259
|
||||
}
|
||||
},
|
||||
"CBasePlayerController_SetPawn": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "44 88 4C 24 ? 55 56 57 41 54 41 56 48 8D 6C 24 ?",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 89 D6 41 55 49 89 FD 41 54 45 89 C4"
|
||||
"windows": "48 89 74 24 ? 55 41 54 41 55 41 56 41 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 4C 8B F9",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 55 49 89 FD 41 54 45 89 C4"
|
||||
}
|
||||
},
|
||||
"CCSPlayerPawnBase_PostThink": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 ? ? 55 53 56 57 41 ? 48 ? ? ? 48 ? ? ? ? ? ? 4C 89 68",
|
||||
"linux": "55 48 89 E5 41 56 41 55 41 54 53 48 89 FB 48 83 EC 30 E8 ? ? ? ?"
|
||||
"linux": "55 48 89 E5 41 56 41 55 41 54 53 48 89 FB 48 83 EC 40 E8"
|
||||
}
|
||||
},
|
||||
"CGameEventManager_Init": {
|
||||
@@ -57,7 +57,7 @@
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 89 5C 24 ? 48 89 74 24 ? 55 57 41 ? 41 ? 41 ? 48 ? ? ? ? 48 ? ? ? ? ? ? 4D ? ? 48",
|
||||
"linux": "55 48 89 E5 41 57 41 56 49 89 D6 41 55 49 89 CD 41 54 49 89 F4 53 48 89 FB 48 8D 3D 33 DA 7B 00"
|
||||
"linux": "55 48 89 E5 41 57 41 56 49 89 D6 41 55 49 89 CD 41 54 49 89 F4 53 48 89 FB 48 8D 3D"
|
||||
}
|
||||
},
|
||||
"UTIL_Remove": {
|
||||
@@ -71,7 +71,7 @@
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "44 89 4C 24 20 44 88 44 24 18",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 89 D6 41 55 4D 89 C5"
|
||||
"linux": "55 48 89 E5 41 57 41 56 49 89 F6 41 55 4D 89 C5"
|
||||
}
|
||||
},
|
||||
"CBaseModelEntity_SetModel": {
|
||||
@@ -84,26 +84,40 @@
|
||||
"CCSPlayer_WeaponServices_CanUse": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 89 5C 24 10 48 89 6C 24 18 56 57 41 56 48 83 EC 30 80 B9 A0 00 00 00 00",
|
||||
"linux": "48 85 F6 0F 84 ? ? ? ? 55 31 C9 48 89 E5 41 55 49 89 FD"
|
||||
"windows": "48 89 5C 24 ? 48 89 6C 24 ? 56 57 41 56 48 83 EC ? 48 8B 01 48 8B FA",
|
||||
"linux": "55 48 8D 15 ? ? ? ? 48 89 E5 41 55 49 89 FD 41 54 49 89 F4"
|
||||
}
|
||||
},
|
||||
"CCSPlayer_ItemServices_CanAcquire": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 8B C4 44 89 40 ? 48 89 50 ? 48 89 48",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 55 49 89 CD 41 54 53 48 83 EC"
|
||||
}
|
||||
},
|
||||
"GetCSWeaponDataFromKey": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 48 8B FA 8B F1 48 85 D2 0F 84",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 89 FE 41 55 41 54 45"
|
||||
}
|
||||
},
|
||||
"CCSPlayer_ItemServices_GiveNamedItem": {
|
||||
"offsets": {
|
||||
"windows": 17,
|
||||
"linux": 18
|
||||
"windows": 19,
|
||||
"linux": 20
|
||||
}
|
||||
},
|
||||
"CCSPlayer_ItemServices_DropActivePlayerWeapon": {
|
||||
"offsets": {
|
||||
"windows": 18,
|
||||
"linux": 19
|
||||
"windows": 20,
|
||||
"linux": 21
|
||||
}
|
||||
},
|
||||
"CCSPlayer_ItemServices_RemoveWeapons": {
|
||||
"offsets": {
|
||||
"windows": 19,
|
||||
"linux": 20
|
||||
"windows": 21,
|
||||
"linux": 22
|
||||
}
|
||||
},
|
||||
"CGameSceneNode_GetSkeletonInstance": {
|
||||
@@ -115,7 +129,7 @@
|
||||
"CCSGameRules_TerminateRound": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 8B C4 4C 89 48 ? 48 89 48 ? 55 56",
|
||||
"windows": "48 8B C4 4C 89 48 ? 48 89 48 ? 55 41 55",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 55 41 54 49 89 FC 53 48 81 EC 88 00 00 00 48 8D 05 ? ? ? ?"
|
||||
}
|
||||
},
|
||||
@@ -156,8 +170,8 @@
|
||||
},
|
||||
"CBasePlayerPawn_CommitSuicide": {
|
||||
"offsets": {
|
||||
"windows": 372,
|
||||
"linux": 372
|
||||
"windows": 380,
|
||||
"linux": 380
|
||||
}
|
||||
},
|
||||
"CBasePlayerPawn_RemovePlayerItem": {
|
||||
@@ -169,35 +183,35 @@
|
||||
},
|
||||
"CBaseEntity_Teleport": {
|
||||
"offsets": {
|
||||
"windows": 155,
|
||||
"linux": 154
|
||||
"windows": 157,
|
||||
"linux": 156
|
||||
}
|
||||
},
|
||||
"CBaseEntity_TakeDamageOld": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 89 74 24 20 57 48 83 EC 60 48 8B 41 10",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 55 41 54 49 89 FC 53 48 83 EC 48 4C 8D 2D ? ? ? ? 49 8B 7D 00 48 85 FF 0F 84 ? ? ? ?"
|
||||
"windows": "48 89 74 24 ? 57 48 81 EC 80 00 00 00 48 8B 41",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 55 41 54 49 89 FC 53 48 83 EC 58 4C 8D 3D"
|
||||
}
|
||||
},
|
||||
"CBaseTrigger_StartTouch": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "41 56 41 57 48 83 EC 58 48 8B 01",
|
||||
"windows": "40 57 41 57 48 83 EC 28 48 8B 01",
|
||||
"linux": "55 48 89 E5 41 56 49 89 F6 41 55 49 89 FD 41 54 53 BB"
|
||||
}
|
||||
},
|
||||
"CBaseTrigger_EndTouch": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "40 53 57 41 55 48 83 EC 40",
|
||||
"windows": "40 53 41 55 48 83 EC 28",
|
||||
"linux": "55 BA FF FF FF FF 48 89 E5 41 57 41 56 41 55 49 89 F5 41"
|
||||
}
|
||||
},
|
||||
"StateChanged": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "40 55 53 56 41 55 41 57 48 8D 6C 24 B0",
|
||||
"windows": "40 55 53 56 41 56 41 57 48 8D 6C 24 ? 48 81 EC 70 01 00 00",
|
||||
"linux": "55 48 89 E5 41 57 41 56 41 55 41 54 53 89 D3"
|
||||
}
|
||||
},
|
||||
@@ -230,14 +244,20 @@
|
||||
"IGameSystem_InitAllSystems_pFirst": {
|
||||
"signatures": {
|
||||
"library": "server",
|
||||
"windows": "48 8B 1D ? ? ? ? 48 85 DB 0F 84 ? ? ? ? BE ? ? ? ? 0F 1F 00 48 8B 7B 10",
|
||||
"linux": "4C 8B 35 ? ? ? ? 4D 85 F6 75 2D E9 ? ? ? ? 0F 1F 40 00 48 8B 05"
|
||||
"windows": "48 8B 3D ? ? ? ? 48 85 FF 0F 84 ? ? ? ? BE",
|
||||
"linux": "4C 8B 35 ? ? ? ? 4D 85 F6 75 ? E9"
|
||||
}
|
||||
},
|
||||
"CEntityResourceManifest_AddResource": {
|
||||
"offsets": {
|
||||
"windows": 2,
|
||||
"linux": 2
|
||||
"linux": 0
|
||||
}
|
||||
},
|
||||
"CheckTransmitPlayerSlot": {
|
||||
"offsets": {
|
||||
"windows": 584,
|
||||
"linux": 584
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,320 +0,0 @@
|
||||
ActionType_t
|
||||
AimMatrixBlendMode
|
||||
AmmoFlags_t
|
||||
AmmoPosition_t
|
||||
AnimationProcessingType_t
|
||||
AnimationSnapshotType_t
|
||||
AnimationType_t
|
||||
AnimLoopMode_t
|
||||
AnimNodeNetworkMode
|
||||
AnimParamButton_t
|
||||
AnimParamNetworkSetting
|
||||
AnimParamType_t
|
||||
AnimPoseControl
|
||||
AnimScriptType
|
||||
AnimValueSource
|
||||
AnimVectorSource
|
||||
attributeprovidertypes_t
|
||||
BaseExplosionTypes_t
|
||||
BBoxVolumeType_t
|
||||
BeamClipStyle_t
|
||||
BeamType_t
|
||||
BeginDeathLifeStateTransition_t
|
||||
BinaryNodeChildOption
|
||||
BinaryNodeTiming
|
||||
Blend2DMode
|
||||
BlendKeyType
|
||||
BloomBlendMode_t
|
||||
BlurFilterType_t
|
||||
BoneMaskBlendSpace
|
||||
BoneTransformSpace_t
|
||||
BrushSolidities_e
|
||||
C4LightEffect_t
|
||||
CAnimationGraphVisualizerPrimitiveType
|
||||
CanPlaySequence_t
|
||||
ChatIgnoreType_t
|
||||
ChickenActivity
|
||||
ChoiceBlendMethod
|
||||
ChoiceChangeMethod
|
||||
ChoiceMethod
|
||||
Class_T
|
||||
CLogicBranchList__LogicBranchListenerLastState_t
|
||||
ClosestPointTestType_t
|
||||
CNmBoneMask__WeightInfo_t
|
||||
CommandEntitySpecType_t
|
||||
CommandExecMode_t
|
||||
CompMatPropertyMutatorConditionType_t
|
||||
CompMatPropertyMutatorType_t
|
||||
CompositeMaterialInputContainerSourceType_t
|
||||
CompositeMaterialInputLooseVariableType_t
|
||||
CompositeMaterialInputTextureType_t
|
||||
CompositeMaterialMatchFilterType_t
|
||||
CompositeMaterialVarSystemVar_t
|
||||
CRR_Response__ResponseEnum_t
|
||||
CSPlayerBlockingUseAction_t
|
||||
CSPlayerState
|
||||
CSWeaponCategory
|
||||
CSWeaponMode
|
||||
CSWeaponSilencerType
|
||||
CSWeaponState_t
|
||||
CSWeaponType
|
||||
DamageTypes_t
|
||||
DampingSpeedFunction
|
||||
DebugOverlayBits_t
|
||||
Detail2Combo_t
|
||||
DetailCombo_t
|
||||
DisableShadows_t
|
||||
Disposition_t
|
||||
doorCheck_e
|
||||
DoorState_t
|
||||
EDemoBoneSelectionMode
|
||||
EInButtonState
|
||||
EKillTypes_t
|
||||
ELayoutNodeType
|
||||
EntFinderMethod_t
|
||||
EntityDisolveType_t
|
||||
EntityDormancyType_t
|
||||
EntityIOTargetType_t
|
||||
EntitySubclassScope_t
|
||||
EOverrideBlockLOS_t
|
||||
EStyleNodeType
|
||||
Explosions
|
||||
FacingMode
|
||||
FieldNetworkOption
|
||||
fieldtype_t
|
||||
filter_t
|
||||
FixAngleSet_t
|
||||
FlexOpCode_t
|
||||
FootFallTagFoot_t
|
||||
FootLockSubVisualization
|
||||
FootPinningTimingSource
|
||||
FootstepLandedFootSoundType_t
|
||||
ForcedCrouchState_t
|
||||
FuncDoorSpawnPos_t
|
||||
FuseVariableAccess_t
|
||||
FuseVariableType_t
|
||||
GameAnimEventIndex_t
|
||||
gear_slot_t
|
||||
GrenadeType_t
|
||||
HierarchyType_t
|
||||
HitboxLerpType_t
|
||||
HitGroup_t
|
||||
HorizJustification_e
|
||||
Hull_t
|
||||
IChoreoServices__ChoreoState_t
|
||||
IChoreoServices__ScriptState_t
|
||||
IKChannelMode
|
||||
IkEndEffectorType
|
||||
IKSolverType
|
||||
IKTargetCoordinateSystem
|
||||
IKTargetSource
|
||||
IkTargetType
|
||||
InheritableBoolType_t
|
||||
InputBitMask_t
|
||||
InputLayoutVariation_t
|
||||
ItemFlagTypes_t
|
||||
JiggleBoneSimSpace
|
||||
JointAxis_t
|
||||
JointMotion_t
|
||||
JumpCorrectionMethod
|
||||
LatchDirtyPermission_t
|
||||
LayoutPositionType_e
|
||||
LessonPanelLayoutFileTypes_t
|
||||
LifeState_t
|
||||
loadout_slot_t
|
||||
MaterialProxyType_t
|
||||
Materials
|
||||
MatterialAttributeTagType_t
|
||||
MedalRank_t
|
||||
MeshDrawPrimitiveFlags_t
|
||||
MissingParentInheritBehavior_t
|
||||
ModelBoneFlexComponent_t
|
||||
ModelConfigAttachmentType_t
|
||||
ModelSkeletonData_t__BoneFlags_t
|
||||
ModifyDamageReturn_t
|
||||
MoodType_t
|
||||
MorphBundleType_t
|
||||
MorphFlexControllerRemapType_t
|
||||
MoveCollide_t
|
||||
MoveLinearAuthoredPos_t
|
||||
MovementGait_t
|
||||
MoveMountingAmount_t
|
||||
MoveType_t
|
||||
NavAttributeEnum
|
||||
NavDirType
|
||||
navproperties_t
|
||||
NmFootPhase_t
|
||||
NmFootPhaseCondition_t
|
||||
NmFrameSnapEventMode_t
|
||||
NmTransitionRule_t
|
||||
NmTransitionRuleCondition_t
|
||||
NPCFollowFormation_t
|
||||
NPCLookType_t
|
||||
ObjectTypeFlags_t
|
||||
ObserverInterpState_t
|
||||
ObserverMode_t
|
||||
OnFrame
|
||||
ParticleAlphaReferenceType_t
|
||||
ParticleAttachment_t
|
||||
ParticleAttrBoxFlags_t
|
||||
ParticleCollisionMode_t
|
||||
ParticleColorBlendMode_t
|
||||
ParticleColorBlendType_t
|
||||
ParticleControlPointAxis_t
|
||||
ParticleDepthFeatheringMode_t
|
||||
ParticleDetailLevel_t
|
||||
ParticleDirectionNoiseType_t
|
||||
ParticleEndcapMode_t
|
||||
ParticleFalloffFunction_t
|
||||
ParticleFloatBiasType_t
|
||||
ParticleFloatInputMode_t
|
||||
ParticleFloatMapType_t
|
||||
ParticleFloatRandomMode_t
|
||||
ParticleFloatType_t
|
||||
ParticleFogType_t
|
||||
ParticleHitboxBiasType_t
|
||||
ParticleHitboxDataSelection_t
|
||||
ParticleImpulseType_t
|
||||
ParticleLightBehaviorChoiceList_t
|
||||
ParticleLightFogLightingMode_t
|
||||
ParticleLightingQuality_t
|
||||
ParticleLightnintBranchBehavior_t
|
||||
ParticleLightTypeChoiceList_t
|
||||
ParticleLightUnitChoiceList_t
|
||||
ParticleModelType_t
|
||||
ParticleOmni2LightTypeChoiceList_t
|
||||
ParticleOrientationChoiceList_t
|
||||
ParticleOrientationSetMode_t
|
||||
ParticleOutputBlendMode_t
|
||||
ParticleParentSetMode_t
|
||||
ParticlePinDistance_t
|
||||
ParticlePostProcessPriorityGroup_t
|
||||
ParticleRotationLockType_t
|
||||
ParticleSelection_t
|
||||
ParticleSequenceCropOverride_t
|
||||
ParticleSetMethod_t
|
||||
ParticleSortingChoiceList_t
|
||||
ParticleTextureLayerBlendType_t
|
||||
ParticleTopology_t
|
||||
ParticleTraceMissBehavior_t
|
||||
ParticleTraceSet_t
|
||||
ParticleTransformType_t
|
||||
ParticleVecType_t
|
||||
ParticleVRHandChoiceList_t
|
||||
PerformanceMode_t
|
||||
PermModelInfo_t__FlagEnum
|
||||
PetGroundType_t
|
||||
PFNoiseModifier_t
|
||||
PFNoiseTurbulence_t
|
||||
PFNoiseType_t
|
||||
PFuncVisualizationType_t
|
||||
PlayerAnimEvent_t
|
||||
PlayerConnectedState
|
||||
PointTemplateClientOnlyEntityBehavior_t
|
||||
PointTemplateOwnerSpawnGroupType_t
|
||||
PointWorldTextJustifyHorizontal_t
|
||||
PointWorldTextJustifyVertical_t
|
||||
PointWorldTextReorientMode_t
|
||||
PoseType_t
|
||||
PreviewCharacterMode
|
||||
PreviewEOMCelebration
|
||||
PreviewWeaponState
|
||||
PropDoorRotatingOpenDirection_e
|
||||
PropDoorRotatingSpawnPos_t
|
||||
PulseCursorCancelPriority_t
|
||||
PulseCursorExecResult_t
|
||||
PulseInstructionCode_t
|
||||
PulseMethodCallMode_t
|
||||
PulseTestEnumColor_t
|
||||
PulseTestEnumShape_t
|
||||
PulseValueType_t
|
||||
QuestProgress__Reason
|
||||
RagdollPoseControl
|
||||
RenderBufferFlags_t
|
||||
RenderFx_t
|
||||
RenderMode_t
|
||||
RenderMultisampleType_t
|
||||
RenderPrimitiveType_t
|
||||
RenderSlotType_t
|
||||
ResetCycleOption
|
||||
RumbleEffect_t
|
||||
ScalarExpressionType_t
|
||||
SceneOnPlayerDeath_t
|
||||
ScriptedConflictResponse_t
|
||||
ScriptedMoveTo_t
|
||||
ScriptedMoveType_t
|
||||
ScriptedOnDeath_t
|
||||
SelectorTagBehavior_t
|
||||
SeqCmd_t
|
||||
SeqPoseSetting_t
|
||||
SequenceFinishNotifyState_t
|
||||
ShadowType_t
|
||||
ShakeCommand_t
|
||||
ShardSolid_t
|
||||
ShatterDamageCause
|
||||
ShatterGlassStressType
|
||||
ShatterPanelMode
|
||||
SimpleConstraintSoundProfile__SimpleConstraintsSoundProfileKeypoints_t
|
||||
SnapshotIndexType_t
|
||||
SolidType_t
|
||||
SolveIKChainAnimNodeDebugSetting
|
||||
SosActionSortType_t
|
||||
SosActionStopType_t
|
||||
SosEditItemType_t
|
||||
SosGroupType_t
|
||||
SoundEventStartType_t
|
||||
SoundFlags_t
|
||||
soundlevel_t
|
||||
SpawnDebugOverrideState_t
|
||||
SpawnDebugRestrictionOverrideState_t
|
||||
SpawnPointCoopEnemy__BotDefaultBehavior_t
|
||||
SpriteCardPerParticleScale_t
|
||||
SpriteCardShaderType_t
|
||||
SpriteCardTextureChannel_t
|
||||
SpriteCardTextureType_t
|
||||
StanceOverrideMode
|
||||
StanceType_t
|
||||
StandardLightingAttenuationStyle_t
|
||||
StateActionBehavior
|
||||
StepPhase
|
||||
SubclassVDataChangeType_t
|
||||
SurroundingBoundsType_t
|
||||
TakeDamageFlags_t
|
||||
TextureRepetitionMode_t
|
||||
ThreeState_t
|
||||
TimelineCompression_t
|
||||
TOGGLE_STATE
|
||||
Touch_t
|
||||
TrackOrientationType_t
|
||||
TRAIN_CODE
|
||||
TrainOrientationType_t
|
||||
TrainVelocityType_t
|
||||
ValueRemapperHapticsType_t
|
||||
ValueRemapperInputType_t
|
||||
ValueRemapperMomentumType_t
|
||||
ValueRemapperOutputType_t
|
||||
ValueRemapperRatchetType_t
|
||||
VectorExpressionType_t
|
||||
VectorFloatExpressionType_t
|
||||
VelocityMetricMode
|
||||
VertJustification_e
|
||||
ViewFadeMode_t
|
||||
VMixChannelOperation_t
|
||||
VMixFilterSlope_t
|
||||
VMixFilterType_t
|
||||
VMixLFOShape_t
|
||||
VMixPannerType_t
|
||||
VMixProcessorType_t
|
||||
VMixSubgraphSwitchInterpolationType_t
|
||||
vote_create_failed_t
|
||||
VPhysXAggregateData_t__VPhysXFlagEnum_t
|
||||
VPhysXBodyPart_t__VPhysXFlagEnum_t
|
||||
VPhysXConstraintParams_t__EnumFlags0_t
|
||||
VPhysXJoint_t__Flags_t
|
||||
WaterLevel_t
|
||||
WeaponAttackType_t
|
||||
WeaponSound_t
|
||||
WeaponSwitchReason_t
|
||||
WorldTextPanelHorizontalAlign_t
|
||||
WorldTextPanelOrientation_t
|
||||
WorldTextPanelVerticalAlign_t
|
||||
@@ -28,7 +28,6 @@ receive a ban.
|
||||
> [!NOTE]
|
||||
> Disable this option at your own risk.
|
||||
|
||||
|
||||
## PluginHotReloadEnabled
|
||||
|
||||
When enabled, plugins are automatically reloaded when their .dll file is updated.
|
||||
@@ -39,4 +38,12 @@ When enabled, plugins are automatically loaded from the plugins directory on ser
|
||||
|
||||
## ServerLanguage
|
||||
|
||||
Configures the default language to use for server commands & messages. The format for the culture name based on RFC 4646 is `languagecode2-country`/`regioncode2`, where `languagecode2` is the two-letter language code and `country/regioncode2` is the two-letter subculture code. Examples include `ja-JP` for Japanese (Japan) and `en-US` for English (United States). Defaults to "en".
|
||||
Configures the default language to use for server commands & messages. The format for the culture name based on RFC 4646 is `languagecode2-country`/`regioncode2`, where `languagecode2` is the two-letter language code and `country/regioncode2` is the two-letter subculture code. Examples include `ja-JP` for Japanese (Japan) and `en-US` for English (United States). Defaults to "en".
|
||||
|
||||
## UnlockConCommands
|
||||
|
||||
When enabled, will remove the `FCVAR_HIDDEN`,`FCVAR_DEVELOPMENTONLY`, `FCVAR_MISSING0`, `FCVAR_MISSING1`, `FCVAR_MISSING2`, `FCVAR_MISSING3` flags from all console commands.
|
||||
|
||||
## UnlockConVars
|
||||
|
||||
When enabled, will remove the `FCVAR_HIDDEN`,`FCVAR_DEVELOPMENTONLY`, `FCVAR_MISSING0`, `FCVAR_MISSING1`, `FCVAR_MISSING2`, `FCVAR_MISSING3` flags from all console variables.
|
||||
|
||||
5
docfx/examples/WithUserMessages.md
Normal file
5
docfx/examples/WithUserMessages.md
Normal file
@@ -0,0 +1,5 @@
|
||||
[!INCLUDE [WithUserMessages](../../examples/WithUserMessages/README.md)]
|
||||
|
||||
<a href="https://github.com/roflmuffin/CounterStrikeSharp/tree/main/examples/WithUserMessages" class="btn btn-secondary">View project on Github <i class="bi bi-github"></i></a>
|
||||
|
||||
[!code-csharp[](../../examples/WithUserMessages/WithUserMessagesPlugin.cs)]
|
||||
@@ -19,6 +19,8 @@ items:
|
||||
href: WithSharedTypes.md
|
||||
- name: Translations
|
||||
href: WithTranslations.md
|
||||
- name: User Messages
|
||||
href: WithUserMessages.md
|
||||
- name: Voice Overrides
|
||||
href: WithVoiceOverrides.md
|
||||
- name: Warcraft Plugin
|
||||
|
||||
2
examples/WithCheckTransmit/README.md
Normal file
2
examples/WithCheckTransmit/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# With CheckTransmit
|
||||
This example shows how to work with the `CheckTransmit` listener.
|
||||
13
examples/WithCheckTransmit/WithCheckTransmit.csproj
Normal file
13
examples/WithCheckTransmit/WithCheckTransmit.csproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\managed\CounterStrikeSharp.API\CounterStrikeSharp.API.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
115
examples/WithCheckTransmit/WithCheckTransmitPlugin.cs
Normal file
115
examples/WithCheckTransmit/WithCheckTransmitPlugin.cs
Normal file
@@ -0,0 +1,115 @@
|
||||
using CounterStrikeSharp.API;
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace WithCheckTransmit;
|
||||
|
||||
[MinimumApiVersion(276)]
|
||||
public class WithCheckTransmitPlugin : BasePlugin
|
||||
{
|
||||
public override string ModuleName => "Example: With CheckTransmit";
|
||||
public override string ModuleVersion => "1.0.0";
|
||||
public override string ModuleAuthor => "CounterStrikeSharp & Contributors";
|
||||
public override string ModuleDescription => "A simple plugin that uses the CheckTransmit listener!";
|
||||
|
||||
private Dictionary<int, bool> ShouldSeeDoors = new Dictionary<int, bool>();
|
||||
|
||||
public override void Load(bool hotReload)
|
||||
{
|
||||
// This command is related to the following example.
|
||||
AddCommand("nodoors", "Toggle door transmit", (player, info) =>
|
||||
{
|
||||
if (player == null)
|
||||
return;
|
||||
|
||||
if (ShouldSeeDoors.ContainsKey(player.Slot))
|
||||
{
|
||||
ShouldSeeDoors[player.Slot] = !ShouldSeeDoors[player.Slot];
|
||||
} else
|
||||
{
|
||||
ShouldSeeDoors.Add(player.Slot, false);
|
||||
}
|
||||
|
||||
info.ReplyToCommand($"You should {(ShouldSeeDoors[player.Slot] ? "see" : "not see")} doors");
|
||||
});
|
||||
|
||||
// In this example, we will hide every door for players that have enabled the option with the command 'nodoors'
|
||||
RegisterListener<Listeners.CheckTransmit>((CCheckTransmitInfoList infoList) =>
|
||||
{
|
||||
// Get the list of the currently available doors (prop_door_rotating)
|
||||
IEnumerable<CPropDoorRotating> doors = Utilities.FindAllEntitiesByDesignerName<CPropDoorRotating>("prop_door_rotating");
|
||||
|
||||
// Do nothing if there is none.
|
||||
if (!doors.Any())
|
||||
return;
|
||||
|
||||
// Go through every received info
|
||||
foreach ((CCheckTransmitInfo info, CCSPlayerController? player) in infoList)
|
||||
{
|
||||
// If no player is found, we can continue
|
||||
if (player == null)
|
||||
continue;
|
||||
|
||||
// Otherwise, lets do the work:
|
||||
|
||||
// Check if we should clear or not:
|
||||
|
||||
// If we have no data saved for this player, then we should not continue
|
||||
if (!ShouldSeeDoors.ContainsKey(player.Slot))
|
||||
continue;
|
||||
|
||||
// If this value is true, then this player should see doors
|
||||
if (ShouldSeeDoors[player.Slot])
|
||||
continue;
|
||||
|
||||
// Otherwise, lets remove the door entity indexes from the info list so they won't be transmitted
|
||||
foreach (CPropDoorRotating door in doors)
|
||||
{
|
||||
info.TransmitEntities.Remove(door);
|
||||
}
|
||||
|
||||
// NOTE: this is a barebone example, saving data and doing sanity checks is up to you.
|
||||
}
|
||||
});
|
||||
|
||||
// In this example, we will hide other players in the same team as the player.
|
||||
// NOTE: 'Hiding' players requires extra work to do, killing non-transmitted players results in crash.
|
||||
RegisterListener<Listeners.CheckTransmit>((CCheckTransmitInfoList infoList) =>
|
||||
{
|
||||
// Get the list of the current players, we only work with this value later on
|
||||
List<CCSPlayerController> players = Utilities.GetPlayers();
|
||||
|
||||
// Go through every received info
|
||||
foreach ((CCheckTransmitInfo info, CCSPlayerController? player) in infoList)
|
||||
{
|
||||
// If no player is found, we can continue
|
||||
if (player == null)
|
||||
continue;
|
||||
|
||||
// Otherwise, lets do the work:
|
||||
|
||||
// as an example, lets hide everyone for this player who is in the same team.
|
||||
IEnumerable<CCSPlayerController> targetPlayers = players.Where(p =>
|
||||
// is the player and its pawn valid
|
||||
p.IsValid && p.Pawn.IsValid &&
|
||||
|
||||
// we shouldn't hide ourselves
|
||||
p.Slot != player.Slot &&
|
||||
|
||||
// is the player is in the same team
|
||||
p.Team == player.Team &&
|
||||
|
||||
// is alive
|
||||
p.PlayerPawn.Value?.LifeState == (byte)LifeState_t.LIFE_ALIVE
|
||||
);
|
||||
|
||||
foreach (CCSPlayerController targetPlayer in targetPlayers)
|
||||
{
|
||||
// Calling 'Remove' will clear the entity index of the target player pawn from the transmission list
|
||||
// so it won't be transmitted for the 'player'.
|
||||
info.TransmitEntities.Remove(targetPlayer.Pawn);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Globalization;
|
||||
using System.Globalization;
|
||||
using CounterStrikeSharp.API;
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
@@ -22,18 +22,29 @@ public class WithTranslationsPlugin : BasePlugin
|
||||
// A global `Localizer` is provided on the plugin instance.
|
||||
// You can also use dependency injection to inject `IStringLocalizer` in your own services.
|
||||
Logger.LogInformation("This message is in the server language: {Message}", Localizer["test.translation"]);
|
||||
|
||||
|
||||
// IStringLocalizer can accept standard string format arguments.
|
||||
// "This number has 2 decimal places {0:n2}" -> "This number has 2 decimal places 123.55"
|
||||
Logger.LogInformation(Localizer["test.format", 123.551]);
|
||||
|
||||
|
||||
// This message has colour codes
|
||||
Server.PrintToChatAll(Localizer["test.colors"]);
|
||||
|
||||
// This message has colour codes and formatted values
|
||||
Server.PrintToChatAll(Localizer["test.colors.withformat", 123.551]);
|
||||
|
||||
// This prints the message to all players in their respective language
|
||||
PrintToAllPlayersLocalized("test.format", 123.456);
|
||||
}
|
||||
|
||||
|
||||
void PrintToAllPlayersLocalized(string key, params object[] args)
|
||||
{
|
||||
foreach (var player in Utilities.GetPlayers().Where(x => x.IsValid))
|
||||
{
|
||||
player.PrintToChat(Localizer.ForPlayer(player, key, args));
|
||||
}
|
||||
}
|
||||
|
||||
[ConsoleCommand("css_replylanguage", "Test Translations")]
|
||||
public void OnCommandReplyLanguage(CCSPlayerController? player, CommandInfo command)
|
||||
{
|
||||
|
||||
2
examples/WithUserMessages/README.md
Normal file
2
examples/WithUserMessages/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# With User Messages
|
||||
This is example shows how you can hook, interrupt and send User Messages.
|
||||
12
examples/WithUserMessages/WithUserMessages.csproj
Normal file
12
examples/WithUserMessages/WithUserMessages.csproj
Normal file
@@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\managed\CounterStrikeSharp.API\CounterStrikeSharp.API.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
84
examples/WithUserMessages/WithUserMessagesPlugin.cs
Normal file
84
examples/WithUserMessages/WithUserMessagesPlugin.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
using CounterStrikeSharp.API.Core.Attributes.Registration;
|
||||
using CounterStrikeSharp.API.Modules.Commands;
|
||||
using CounterStrikeSharp.API.Modules.UserMessages;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace WithUserMessages;
|
||||
|
||||
[MinimumApiVersion(80)]
|
||||
public class WithUserMessagesPlugin : BasePlugin
|
||||
{
|
||||
public override string ModuleName => "Example: With User Messages";
|
||||
public override string ModuleVersion => "1.0.0";
|
||||
public override string ModuleAuthor => "CounterStrikeSharp & Contributors";
|
||||
public override string ModuleDescription => "A simple plugin that hooks and sends User Messages";
|
||||
|
||||
public override void Load(bool hotReload)
|
||||
{
|
||||
// Hooks can be added using the user message ID. In this case it's the ID for `CMsgTEFireBullets`.
|
||||
HookUserMessage(452, um =>
|
||||
{
|
||||
// Sets all weapon sounds to the sound of a silenced usp.
|
||||
um.SetUInt("weapon_id", 0);
|
||||
um.SetInt("sound_type", 9);
|
||||
um.SetUInt("item_def_index", 61);
|
||||
|
||||
return HookResult.Continue;
|
||||
}, HookMode.Pre);
|
||||
|
||||
HookUserMessage(118, um =>
|
||||
{
|
||||
var author = um.ReadString("param1");
|
||||
var message = um.ReadString("param2");
|
||||
Logger.LogInformation("Chat message from {Author}: {Message}", author, message);
|
||||
|
||||
for (var i = 0; i < um.Recipients.Count; i++)
|
||||
{
|
||||
Logger.LogInformation("Recipient {Index}: {Name}", i, um.Recipients[i].PlayerName);
|
||||
}
|
||||
|
||||
if (message.Contains("stop"))
|
||||
{
|
||||
return HookResult.Stop;
|
||||
}
|
||||
|
||||
if (message.Contains("skip"))
|
||||
{
|
||||
um.Recipients.Clear();
|
||||
}
|
||||
|
||||
return HookResult.Continue;
|
||||
});
|
||||
}
|
||||
|
||||
[ConsoleCommand("css_shake")]
|
||||
public void OnCommandShake(CCSPlayerController? player, CommandInfo command)
|
||||
{
|
||||
if (player == null) return;
|
||||
|
||||
// UserMessage.FromPartialName is a helper method that creates a UserMessage object from a partial network name.
|
||||
// In this case, it will resolve to `CUserMessageShake`.
|
||||
var message = UserMessage.FromPartialName("Shake");
|
||||
|
||||
message.SetFloat("duration", 2);
|
||||
message.SetFloat("amplitude", 5);
|
||||
message.SetFloat("frequency", 10f);
|
||||
message.SetInt("command", 0);
|
||||
|
||||
if (command.GetArg(1) == "all")
|
||||
{
|
||||
message.Recipients.AddAllPlayers();
|
||||
}
|
||||
else
|
||||
{
|
||||
message.Recipients.Add(player);
|
||||
}
|
||||
|
||||
message.Send();
|
||||
|
||||
// You can also use an overload of `Send` to send the message to a specific player without manually creating a recipient filter.
|
||||
// message.Send(player);
|
||||
}
|
||||
}
|
||||
Submodule libraries/Protobufs updated: 686a0628e6...76e070dc65
Submodule libraries/hl2sdk-cs2 updated: 739c88fa85...fc4b98f1a7
@@ -1,5 +1,4 @@
|
||||
#set(_ITERATOR_DEBUG_LEVEL 2)
|
||||
add_definitions(-D_LINUX -DPOSIX -DLINUX -DGNUC -DCOMPILER_GCC -DPLATFORM_64BITS -D_FILE_OFFSET_BITS=64)
|
||||
add_definitions(-D_LINUX -DPOSIX -DLINUX -DGNUC -DCOMPILER_GCC -DPLATFORM_64BITS -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_CXX11_ABI=0)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dstrnicmp=strncasecmp -D_snprintf=snprintf")
|
||||
@@ -16,6 +15,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse -msse -fno-strict-aliasing"
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-threadsafe-statics -v -fvisibility=default")
|
||||
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--exclude-libs=libprotobuf.a")
|
||||
|
||||
set(
|
||||
COUNTER_STRIKE_SHARP_LINK_LIBRARIES
|
||||
|
||||
59
makefiles/protobuf.cmake
Normal file
59
makefiles/protobuf.cmake
Normal file
@@ -0,0 +1,59 @@
|
||||
# Credit for this protobuf generation cmake file goes to Poggicek.
|
||||
# Based on their work at https://github.com/Poggicek/StickerInspect
|
||||
|
||||
set(PROTO_TARGETS
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/network_connection.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/networkbasetypes.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/cs_gameevents.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/engine_gcmessages.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/gcsdk_gcmessages.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/cstrike15_gcmessages.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/cstrike15_usermessages.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/netmessages.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/steammessages.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/usermessages.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/gameevents.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/clientmessages.proto
|
||||
${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo/te.proto
|
||||
)
|
||||
|
||||
if(UNIX)
|
||||
set(PROTOC_EXECUTABLE ${PROJECT_SOURCE_DIR}/libraries/hl2sdk-cs2/devtools/bin/linux/protoc)
|
||||
elseif(WIN32)
|
||||
set(PROTOC_EXECUTABLE ${PROJECT_SOURCE_DIR}/libraries/hl2sdk-cs2/devtools/bin/protoc.exe)
|
||||
endif()
|
||||
|
||||
foreach(PROTO_TARGET ${PROTO_TARGETS})
|
||||
get_filename_component(PROTO_FILENAME ${PROTO_TARGET} NAME_WLE)
|
||||
list(APPEND PROTO_OUTPUT ${PROTO_FILENAME}.pb.cc ${PROTO_FILENAME}.pb.h)
|
||||
list(APPEND PROTO_INPUT ${PROTO_FILENAME}.proto)
|
||||
get_filename_component(PROTO_PATH ${PROTO_TARGET} DIRECTORY)
|
||||
list(APPEND PROTO_PATHS "--proto_path=${PROTO_PATH}")
|
||||
endforeach()
|
||||
|
||||
list(REMOVE_DUPLICATES PROTO_PATHS)
|
||||
list(TRANSFORM PROTO_OUTPUT PREPEND ${CMAKE_CURRENT_BINARY_DIR}/protobufcompiler/)
|
||||
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/protobufcompiler)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${PROTO_OUTPUT}
|
||||
COMMAND "${PROTOC_EXECUTABLE}" -I ${PROJECT_SOURCE_DIR}/libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src --proto_path=${PROJECT_SOURCE_DIR}/libraries/Protobufs/csgo ${PROTO_PATHS} --cpp_out=${CMAKE_CURRENT_BINARY_DIR}/protobufcompiler ${PROTO_INPUT}
|
||||
COMMENT "Generating protobuf file"
|
||||
)
|
||||
|
||||
add_library(Protobufs STATIC
|
||||
${PROTO_OUTPUT}
|
||||
)
|
||||
|
||||
target_include_directories(Protobufs
|
||||
PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/protobufcompiler
|
||||
PUBLIC ${PROJECT_SOURCE_DIR}/libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(Protobufs PUBLIC ${PROJECT_SOURCE_DIR}/libraries/hl2sdk-cs2/lib/public/win64/2015/libprotobuf.lib)
|
||||
elseif(UNIX)
|
||||
target_link_libraries(Protobufs PUBLIC ${PROJECT_SOURCE_DIR}/libraries/hl2sdk-cs2/lib/linux64/release/libprotobuf.a)
|
||||
endif()
|
||||
set_target_properties(Protobufs PROPERTIES LINKER_LANGUAGE CXX)
|
||||
set_target_properties(Protobufs PROPERTIES FOLDER SDK)
|
||||
@@ -20,13 +20,14 @@ endif()
|
||||
|
||||
set(CMAKE_STATIC_LIBRARY_PREFIX "")
|
||||
|
||||
set(LIBRARIES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries)
|
||||
set(SOURCESDK_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/hl2sdk-cs2)
|
||||
set(METAMOD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/metamod-source)
|
||||
|
||||
set(SOURCESDK ${SOURCESDK_DIR}/${BRANCH})
|
||||
set(SOURCESDK_LIB ${SOURCESDK}/lib)
|
||||
|
||||
add_definitions(-DMETA_IS_SOURCE2)
|
||||
add_definitions(-DMETA_IS_SOURCE2 -D_ITERATOR_DEBUG_LEVEL=0)
|
||||
|
||||
if(DEFINED ENV{GITHUB_SHA_SHORT})
|
||||
add_definitions(-DGITHUB_SHA="$ENV{GITHUB_SHA_SHORT}")
|
||||
@@ -40,6 +41,10 @@ else()
|
||||
add_definitions(-DBUILD_NUMBER="0")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
${SOURCESDK}
|
||||
${SOURCESDK}/thirdparty/protobuf-3.21.8/src
|
||||
@@ -68,3 +73,5 @@ include_directories(
|
||||
)
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/metamod/configure_metamod.cmake)
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
|
||||
using System;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.UserMessages;
|
||||
using CounterStrikeSharp.API.Modules.Commands;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core
|
||||
{
|
||||
@@ -335,6 +337,16 @@ namespace CounterStrikeSharp.API.Core
|
||||
}
|
||||
}
|
||||
|
||||
public static float GetGameFrameTime(){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x97E331CA);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (float)ScriptContext.GlobalScriptContext.GetResult(typeof(float));
|
||||
}
|
||||
}
|
||||
|
||||
public static void IssueServerCommand(string command){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
@@ -558,6 +570,17 @@ namespace CounterStrikeSharp.API.Core
|
||||
}
|
||||
}
|
||||
|
||||
public static void DisconnectClient(int slot, int reason){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(slot);
|
||||
ScriptContext.GlobalScriptContext.Push(reason);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x799EE9C3);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static IntPtr GetEntityFromIndex(int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
@@ -1243,6 +1266,375 @@ namespace CounterStrikeSharp.API.Core
|
||||
}
|
||||
}
|
||||
|
||||
public static void HookUsermessage(int messageid, InputArgument callback, HookMode mode){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(messageid);
|
||||
ScriptContext.GlobalScriptContext.Push((InputArgument)callback);
|
||||
ScriptContext.GlobalScriptContext.Push(mode);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x76C63A83);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void UnhookUsermessage(int messageid, InputArgument callback, HookMode mode){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(messageid);
|
||||
ScriptContext.GlobalScriptContext.Push((InputArgument)callback);
|
||||
ScriptContext.GlobalScriptContext.Push(mode);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x63B0AC38);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static bool PbHasfield(UserMessage message, string name){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xC971FB70);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (bool)ScriptContext.GlobalScriptContext.GetResult(typeof(bool));
|
||||
}
|
||||
}
|
||||
|
||||
public static int PbReadint(UserMessage message, string name, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x5FA8BDC9);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (int)ScriptContext.GlobalScriptContext.GetResult(typeof(int));
|
||||
}
|
||||
}
|
||||
|
||||
public static long PbReadint64(UserMessage message, string name, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xECCF528B);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (long)ScriptContext.GlobalScriptContext.GetResult(typeof(long));
|
||||
}
|
||||
}
|
||||
|
||||
public static float PbReadfloat(UserMessage message, string name, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xED208CEA);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (float)ScriptContext.GlobalScriptContext.GetResult(typeof(float));
|
||||
}
|
||||
}
|
||||
|
||||
public static bool PbReadbool(UserMessage message, string name, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x54C0D7F4);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (bool)ScriptContext.GlobalScriptContext.GetResult(typeof(bool));
|
||||
}
|
||||
}
|
||||
|
||||
public static string PbReadstring(UserMessage message, string name, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x66CACEEF);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (string)ScriptContext.GlobalScriptContext.GetResult(typeof(string));
|
||||
}
|
||||
}
|
||||
|
||||
public static int PbGetrepeatedfieldcount(UserMessage message, string name){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xDE4E1549);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (int)ScriptContext.GlobalScriptContext.GetResult(typeof(int));
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbSetint(UserMessage message, string name, int value, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x99BBC059);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbSetint64(UserMessage message, string name, long value, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xF7AD351B);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbSetfloat(UserMessage message, string name, float value, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xF7FDEB7A);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbSetbool(UserMessage message, string name, bool value, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xD1342864);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbSetstring(UserMessage message, string name, string value, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x15C78B7F);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbAddint(UserMessage message, string name, int value){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x66CD6A1A);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbAddint64(UserMessage message, string name, object value){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x4FD05AD8);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbAddfloat(UserMessage message, string name, float value){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x5117B239);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbAddbool(UserMessage message, string name, bool value){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x40827C47);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbAddstring(UserMessage message, string name, string value){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(value);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x8DFD739C);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void PbRemoverepeatedfieldvalue(UserMessage message, string name, int index){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.Push(index);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x1721FCB1);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static string PbGetdebugstring(UserMessage message){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x913FB7BA);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (string)ScriptContext.GlobalScriptContext.GetResult(typeof(string));
|
||||
}
|
||||
}
|
||||
|
||||
public static ulong UsermessageGetrecipients(UserMessage message){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x70CDDEBE);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (ulong)ScriptContext.GlobalScriptContext.GetResult(typeof(ulong));
|
||||
}
|
||||
}
|
||||
|
||||
public static void UsermessageSetrecipients(UserMessage message, ulong recipients){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.Push(recipients);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xB4ED43AA);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static int UsermessageFindmessageidbyname(string name){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x22CD6C9F);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (int)ScriptContext.GlobalScriptContext.GetResult(typeof(int));
|
||||
}
|
||||
}
|
||||
|
||||
public static IntPtr UsermessageCreate(string name){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(name);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xE8E83344);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (IntPtr)ScriptContext.GlobalScriptContext.GetResult(typeof(IntPtr));
|
||||
}
|
||||
}
|
||||
|
||||
public static IntPtr UsermessageCreatebyid(int id){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(id);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xBC758632);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (IntPtr)ScriptContext.GlobalScriptContext.GetResult(typeof(IntPtr));
|
||||
}
|
||||
}
|
||||
|
||||
public static void UsermessageSend(UserMessage message){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0x24EB6B3C);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static void UsermessageDelete(UserMessage message){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xE10465D9);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
}
|
||||
}
|
||||
|
||||
public static int UsermessageGetid(UserMessage message){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xC17BA71B);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (int)ScriptContext.GlobalScriptContext.GetResult(typeof(int));
|
||||
}
|
||||
}
|
||||
|
||||
public static string UsermessageGetname(UserMessage message){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xEFE0FD1);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (string)ScriptContext.GlobalScriptContext.GetResult(typeof(string));
|
||||
}
|
||||
}
|
||||
|
||||
public static string UsermessageGettype(UserMessage message){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
ScriptContext.GlobalScriptContext.Push(message);
|
||||
ScriptContext.GlobalScriptContext.SetIdentifier(0xEF4842E);
|
||||
ScriptContext.GlobalScriptContext.Invoke();
|
||||
ScriptContext.GlobalScriptContext.CheckErrors();
|
||||
return (string)ScriptContext.GlobalScriptContext.GetResult(typeof(string));
|
||||
}
|
||||
}
|
||||
|
||||
public static IntPtr VectorNew(){
|
||||
lock (ScriptContext.GlobalScriptContext.Lock) {
|
||||
ScriptContext.GlobalScriptContext.Reset();
|
||||
|
||||
@@ -156,17 +156,10 @@ namespace CounterStrikeSharp.API.Core
|
||||
break;
|
||||
}
|
||||
|
||||
// If our arugment doesn't end in ".dll" - try and construct a path similar to PluginName/PluginName.dll.
|
||||
// If our argument doesn't end in ".dll" - try and construct a path similar to PluginName/PluginName.dll.
|
||||
// We'll assume we have a full path if we have ".dll".
|
||||
var path = info.GetArg(2);
|
||||
if (!path.EndsWith(".dll"))
|
||||
{
|
||||
path = Path.Combine(_scriptHostConfiguration.RootPath, $"plugins/{path}/{path}.dll");
|
||||
}
|
||||
else
|
||||
{
|
||||
path = Path.Combine(_scriptHostConfiguration.RootPath, path);
|
||||
}
|
||||
path = Path.Combine(_scriptHostConfiguration.RootPath, !path.EndsWith(".dll") ? $"plugins/{path}/{path}.dll" : path);
|
||||
|
||||
var plugin = _pluginContextQueryHandler.FindPluginByModulePath(path);
|
||||
|
||||
@@ -204,7 +197,13 @@ namespace CounterStrikeSharp.API.Core
|
||||
}
|
||||
|
||||
var pluginIdentifier = info.GetArg(2);
|
||||
IPluginContext? plugin = _pluginContextQueryHandler.FindPluginByIdOrName(pluginIdentifier);
|
||||
string path;
|
||||
path = Path.Combine(_scriptHostConfiguration.RootPath,
|
||||
!pluginIdentifier.EndsWith(".dll") ? $"plugins/{pluginIdentifier}/{pluginIdentifier}.dll" : pluginIdentifier);
|
||||
|
||||
var plugin = _pluginContextQueryHandler.FindPluginByIdOrName(pluginIdentifier)
|
||||
?? _pluginContextQueryHandler.FindPluginByModulePath(path);
|
||||
|
||||
if (plugin == null)
|
||||
{
|
||||
info.ReplyToCommand($"Could not unload plugin \"{pluginIdentifier}\"");
|
||||
@@ -249,7 +248,7 @@ namespace CounterStrikeSharp.API.Core
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void OnLangCommand(CCSPlayerController? player, CommandInfo command)
|
||||
{
|
||||
if (player == null) return;
|
||||
@@ -305,4 +304,4 @@ namespace CounterStrikeSharp.API.Core
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ using CounterStrikeSharp.API.Modules.Timers;
|
||||
using CounterStrikeSharp.API.Modules.Config;
|
||||
using CounterStrikeSharp.API.Modules.Cvars;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.UserMessages;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@@ -115,9 +116,6 @@ namespace CounterStrikeSharp.API.Core
|
||||
|
||||
public readonly Dictionary<Delegate, CallbackSubscriber> Handlers =
|
||||
new Dictionary<Delegate, CallbackSubscriber>();
|
||||
|
||||
public readonly Dictionary<Delegate, CallbackSubscriber> CommandHandlers =
|
||||
new Dictionary<Delegate, CallbackSubscriber>();
|
||||
|
||||
public readonly Dictionary<Delegate, CallbackSubscriber> CommandListeners =
|
||||
new Dictionary<Delegate, CallbackSubscriber>();
|
||||
@@ -131,6 +129,8 @@ namespace CounterStrikeSharp.API.Core
|
||||
internal readonly Dictionary<Delegate, EntityIO.EntityOutputCallback> EntitySingleOutputHooks =
|
||||
new Dictionary<Delegate, EntityIO.EntityOutputCallback>();
|
||||
|
||||
public readonly List<CommandDefinition> CommandDefinitions = new List<CommandDefinition>();
|
||||
|
||||
public readonly List<Timer> Timers = new List<Timer>();
|
||||
|
||||
public delegate HookResult GameEventHandler<T>(T @event, GameEventInfo info) where T : GameEvent;
|
||||
@@ -192,11 +192,13 @@ namespace CounterStrikeSharp.API.Core
|
||||
public void AddCommand(string name, string description, CommandInfo.CommandCallback handler)
|
||||
{
|
||||
var definition = new CommandDefinition(name, description, handler);
|
||||
CommandDefinitions.Add(definition);
|
||||
CommandManager.RegisterCommand(definition);
|
||||
}
|
||||
|
||||
private void AddCommand(CommandDefinition definition)
|
||||
{
|
||||
CommandDefinitions.Add(definition);
|
||||
CommandManager.RegisterCommand(definition);
|
||||
}
|
||||
|
||||
@@ -228,14 +230,13 @@ namespace CounterStrikeSharp.API.Core
|
||||
/// <param name="handler">The callback function to be invoked when the command is executed.</param>
|
||||
public void RemoveCommand(string name, CommandInfo.CommandCallback handler)
|
||||
{
|
||||
if (CommandHandlers.ContainsKey(handler))
|
||||
var definition = CommandDefinitions.FirstOrDefault(
|
||||
definition => definition.Name == name && definition.Callback == handler);
|
||||
|
||||
if (definition != null)
|
||||
{
|
||||
var subscriber = CommandHandlers[handler];
|
||||
|
||||
NativeAPI.RemoveCommand(name, subscriber.GetInputArgument());
|
||||
|
||||
FunctionReference.Remove(subscriber.GetReferenceIdentifier());
|
||||
CommandHandlers.Remove(handler);
|
||||
CommandDefinitions.Remove(definition);
|
||||
CommandManager.RemoveCommand(definition);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -528,6 +529,24 @@ namespace CounterStrikeSharp.API.Core
|
||||
NativeAPI.HookEntityOutput(classname, outputName, subscriber.GetInputArgument(), mode);
|
||||
EntityOutputHooks[handler] = subscriber;
|
||||
}
|
||||
|
||||
public void HookUserMessage(int messageId, UserMessage.UserMessageHandler handler, HookMode mode = HookMode.Pre)
|
||||
{
|
||||
var subscriber = new CallbackSubscriber(handler, handler,
|
||||
() => UnhookUserMessage(messageId, handler));
|
||||
|
||||
NativeAPI.HookUsermessage(messageId, subscriber.GetInputArgument(), mode);
|
||||
Handlers[handler] = subscriber;
|
||||
}
|
||||
|
||||
public void UnhookUserMessage(int messageId, UserMessage.UserMessageHandler handler, HookMode mode = HookMode.Pre)
|
||||
{
|
||||
if (!Handlers.TryGetValue(handler, out var subscriber)) return;
|
||||
|
||||
NativeAPI.UnhookUsermessage(messageId, subscriber.GetInputArgument(), mode);
|
||||
FunctionReference.Remove(subscriber.GetReferenceIdentifier());
|
||||
Handlers.Remove(handler);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unhooks an entity output.
|
||||
@@ -602,11 +621,6 @@ namespace CounterStrikeSharp.API.Core
|
||||
{
|
||||
subscriber.Dispose();
|
||||
}
|
||||
|
||||
foreach (var subscriber in CommandHandlers.Values)
|
||||
{
|
||||
subscriber.Dispose();
|
||||
}
|
||||
|
||||
foreach (var subscriber in CommandListeners.Values)
|
||||
{
|
||||
@@ -623,6 +637,11 @@ namespace CounterStrikeSharp.API.Core
|
||||
subscriber.Dispose();
|
||||
}
|
||||
|
||||
foreach (var definition in CommandDefinitions)
|
||||
{
|
||||
CommandManager.RemoveCommand(definition);
|
||||
}
|
||||
|
||||
foreach (var timer in Timers)
|
||||
{
|
||||
timer.Kill();
|
||||
@@ -631,4 +650,4 @@ namespace CounterStrikeSharp.API.Core
|
||||
_disposed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,8 +70,13 @@ public class CommandManager : ICommandManager
|
||||
|
||||
if (_commandDefinitions.TryGetValue(name, out var handler))
|
||||
{
|
||||
foreach (var command in handler)
|
||||
foreach (var command in handler.ToList())
|
||||
{
|
||||
if (!handler.Contains(command))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var methodInfo = command.Callback?.GetMethodInfo();
|
||||
|
||||
// We do not need to do permission checks on commands executed from the server console.
|
||||
|
||||
@@ -46,15 +46,21 @@ namespace CounterStrikeSharp.API.Core
|
||||
|
||||
[JsonPropertyName("FollowCS2ServerGuidelines")]
|
||||
public bool FollowCS2ServerGuidelines { get; set; } = true;
|
||||
|
||||
|
||||
[JsonPropertyName("PluginHotReloadEnabled")]
|
||||
public bool PluginHotReloadEnabled { get; set; } = true;
|
||||
|
||||
|
||||
[JsonPropertyName("PluginAutoLoadEnabled")]
|
||||
public bool PluginAutoLoadEnabled { get; set; } = true;
|
||||
|
||||
|
||||
[JsonPropertyName("ServerLanguage")]
|
||||
public string ServerLanguage { get; set; } = "en";
|
||||
|
||||
[JsonPropertyName("UnlockConCommands")]
|
||||
public bool UnlockConCommands { get; set; } = true;
|
||||
|
||||
[JsonPropertyName("UnlockConVars")]
|
||||
public bool UnlockConVars { get; set; } = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -97,14 +103,18 @@ namespace CounterStrikeSharp.API.Core
|
||||
/// When enabled, plugins are automatically reloaded when their .dll file is updated.
|
||||
/// </summary>
|
||||
public static bool PluginHotReloadEnabled => _coreConfig.PluginHotReloadEnabled;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// When enabled, plugins are automatically loaded from the plugins directory on server start.
|
||||
/// </summary>
|
||||
public static bool PluginAutoLoadEnabled => _coreConfig.PluginAutoLoadEnabled;
|
||||
|
||||
|
||||
public static string ServerLanguage => _coreConfig.ServerLanguage;
|
||||
|
||||
|
||||
public static bool UnlockConCommands => _coreConfig.UnlockConCommands;
|
||||
|
||||
public static bool UnlockConVars => _coreConfig.UnlockConVars;
|
||||
|
||||
}
|
||||
|
||||
public partial class CoreConfig : IStartupService
|
||||
@@ -140,28 +150,29 @@ namespace CounterStrikeSharp.API.Core
|
||||
ReloadCoreConfigCommand));
|
||||
_commandsRegistered = true;
|
||||
}
|
||||
|
||||
if (!File.Exists(_coreConfigPath))
|
||||
|
||||
if (File.Exists(_coreConfigPath))
|
||||
{
|
||||
try
|
||||
{
|
||||
var data = JsonSerializer.Deserialize<CoreConfigData>(File.ReadAllText(_coreConfigPath),
|
||||
new JsonSerializerOptions() { ReadCommentHandling = JsonCommentHandling.Skip });
|
||||
|
||||
if (data != null)
|
||||
{
|
||||
_coreConfig = data;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogWarning(ex, "Failed to load core configuration, fallback values will be used");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.LogWarning(
|
||||
"Core configuration could not be found at path \"{CoreConfigPath}\", fallback values will be used.",
|
||||
_coreConfigPath);
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var data = JsonSerializer.Deserialize<CoreConfigData>(File.ReadAllText(_coreConfigPath),
|
||||
new JsonSerializerOptions() { ReadCommentHandling = JsonCommentHandling.Skip });
|
||||
|
||||
if (data != null)
|
||||
{
|
||||
_coreConfig = data;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogWarning(ex, "Failed to load core configuration, fallback values will be used");
|
||||
}
|
||||
|
||||
var serverCulture = CultureInfo.GetCultures(CultureTypes.AllCultures)
|
||||
@@ -181,13 +192,13 @@ namespace CounterStrikeSharp.API.Core
|
||||
serverCulture = CultureInfo.InvariantCulture;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CultureInfo.DefaultThreadCurrentUICulture = serverCulture;
|
||||
CultureInfo.DefaultThreadCurrentCulture = serverCulture;
|
||||
CultureInfo.CurrentUICulture = serverCulture;
|
||||
CultureInfo.CurrentCulture = serverCulture;
|
||||
|
||||
|
||||
_logger.LogInformation("Successfully loaded core configuration");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -716,6 +716,86 @@ namespace CounterStrikeSharp.API.Core
|
||||
}
|
||||
}
|
||||
|
||||
[EventName("bullet_damage")]
|
||||
public class EventBulletDamage : GameEvent
|
||||
{
|
||||
public EventBulletDamage(IntPtr pointer) : base(pointer){}
|
||||
public EventBulletDamage(bool force) : base("bullet_damage", force){}
|
||||
|
||||
|
||||
|
||||
// player index who was hurt
|
||||
public CCSPlayerController? Victim
|
||||
{
|
||||
get => GetPlayer("victim");
|
||||
set => SetPlayer("victim", value);
|
||||
}
|
||||
|
||||
|
||||
// player index who attacked
|
||||
public CCSPlayerController? Attacker
|
||||
{
|
||||
get => GetPlayer("attacker");
|
||||
set => SetPlayer("attacker", value);
|
||||
}
|
||||
|
||||
|
||||
// how far the bullet travelled before it hit the player
|
||||
public float Distance
|
||||
{
|
||||
get => Get<float>("distance");
|
||||
set => Set<float>("distance", value);
|
||||
}
|
||||
|
||||
|
||||
// direction vector of the bullet
|
||||
public float DamageDirX
|
||||
{
|
||||
get => Get<float>("damage_dir_x");
|
||||
set => Set<float>("damage_dir_x", value);
|
||||
}
|
||||
|
||||
|
||||
// direction vector of the bullet
|
||||
public float DamageDirY
|
||||
{
|
||||
get => Get<float>("damage_dir_y");
|
||||
set => Set<float>("damage_dir_y", value);
|
||||
}
|
||||
|
||||
|
||||
// direction vector of the bullet
|
||||
public float DamageDirZ
|
||||
{
|
||||
get => Get<float>("damage_dir_z");
|
||||
set => Set<float>("damage_dir_z", value);
|
||||
}
|
||||
|
||||
|
||||
// how many surfaces were penetrated
|
||||
public int NumPenetrations
|
||||
{
|
||||
get => Get<int>("num_penetrations");
|
||||
set => Set<int>("num_penetrations", value);
|
||||
}
|
||||
|
||||
|
||||
// was the shooter noscoped?
|
||||
public bool NoScope
|
||||
{
|
||||
get => Get<bool>("no_scope");
|
||||
set => Set<bool>("no_scope", value);
|
||||
}
|
||||
|
||||
|
||||
// was the shooter jumping?
|
||||
public bool InAir
|
||||
{
|
||||
get => Get<bool>("in_air");
|
||||
set => Set<bool>("in_air", value);
|
||||
}
|
||||
}
|
||||
|
||||
[EventName("bullet_flight_resolution")]
|
||||
public class EventBulletFlightResolution : GameEvent
|
||||
{
|
||||
|
||||
@@ -163,5 +163,12 @@ namespace CounterStrikeSharp.API.Core
|
||||
/// <param name="manifest">Resource Manifest</param>
|
||||
[ListenerName("OnServerPrecacheResources")]
|
||||
public delegate void OnServerPrecacheResources(ResourceManifest manifest);
|
||||
|
||||
/// <summary>
|
||||
/// Called when checking transmit on entities.
|
||||
/// </summary>
|
||||
/// <param name="infoList">Transmit info list</param>
|
||||
[ListenerName("CheckTransmit")]
|
||||
public delegate void CheckTransmit([CastFrom(typeof(nint))]CCheckTransmitInfoList infoList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,16 +8,19 @@ namespace CounterStrikeSharp.API.Core;
|
||||
public partial class CBaseEntity
|
||||
{
|
||||
/// <exception cref="InvalidOperationException">Entity is not valid</exception>
|
||||
/// <exception cref="ArgumentNullException">No valid argument</exception>
|
||||
public void Teleport(Vector? position = null, QAngle? angles = null, Vector? velocity = null)
|
||||
{
|
||||
Guard.IsValidEntity(this);
|
||||
|
||||
position ??= AbsOrigin!;
|
||||
angles ??= AbsRotation!;
|
||||
velocity ??= AbsVelocity;
|
||||
|
||||
VirtualFunction.CreateVoid<IntPtr, IntPtr, IntPtr, IntPtr>(Handle, GameData.GetOffset("CBaseEntity_Teleport"))(
|
||||
Handle, position.Handle, angles.Handle, velocity.Handle);
|
||||
|
||||
if (position == null && angles == null && velocity == null)
|
||||
throw new ArgumentNullException("No valid argument");
|
||||
|
||||
nint _position = position?.Handle ?? 0;
|
||||
nint _angles = angles?.Handle ?? 0;
|
||||
nint _velocity = velocity?.Handle ?? 0;
|
||||
|
||||
VirtualFunction.CreateVoid<IntPtr, IntPtr, IntPtr, IntPtr>(Handle, GameData.GetOffset("CBaseEntity_Teleport"))(Handle, _position, _angles, _velocity);
|
||||
}
|
||||
|
||||
/// <exception cref="InvalidOperationException">Entity is not valid</exception>
|
||||
@@ -45,4 +48,4 @@ public partial class CBaseEntity
|
||||
|
||||
return (T)Activator.CreateInstance(typeof(T), Marshal.ReadIntPtr(SubclassID.Handle + 4));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
|
||||
using CounterStrikeSharp.API.Modules.Cvars;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Entities.Constants;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.ValveConstants.Protobuf;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
@@ -241,6 +241,15 @@ public partial class CCSPlayerController
|
||||
NativeAPI.IssueClientCommand(Slot, command);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disconnects a player from the server with the specified reason.
|
||||
/// </summary>
|
||||
/// <param name="reason"></param>
|
||||
public void Disconnect(NetworkDisconnectionReason reason)
|
||||
{
|
||||
NativeAPI.DisconnectClient(Slot, (int)reason);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Issue the specified command directly from the server (mimics the server executing the command with the given player context).
|
||||
/// <remarks>Works with server commands like `kill`, `explode`, `noclip`, etc. </remarks>
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Memory.DynamicFunctions;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
@@ -54,4 +56,9 @@ public partial class CCSPlayer_ItemServices
|
||||
|
||||
return (T)Activator.CreateInstance(typeof(T), pointer)!;
|
||||
}
|
||||
|
||||
public AcquireResult CanAcquire(CEconItemView itemView, AcquireMethod method, IntPtr unknown = 0)
|
||||
{
|
||||
return VirtualFunctions.CCSPlayer_ItemServices_CanAcquireFunc.Invoke(this, itemView, method, unknown);
|
||||
}
|
||||
}
|
||||
|
||||
106
managed/CounterStrikeSharp.API/Core/Model/CCheckTransmitInfo.cs
Normal file
106
managed/CounterStrikeSharp.API/Core/Model/CCheckTransmitInfo.cs
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* This file is part of CounterStrikeSharp.
|
||||
* CounterStrikeSharp is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CounterStrikeSharp is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with CounterStrikeSharp. If not, see <https://www.gnu.org/licenses/>. *
|
||||
*/
|
||||
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public struct CCheckTransmitInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Entity n is already marked for transmission
|
||||
/// </summary>
|
||||
[FieldOffset(0x0)]
|
||||
public CFixedBitVecBase TransmitEntities;
|
||||
|
||||
/// <summary>
|
||||
/// Entity n is always send even if not in PVS (HLTV and Replay only)
|
||||
/// </summary>
|
||||
[FieldOffset(0x8)]
|
||||
public CFixedBitVecBase TransmitAlways;
|
||||
};
|
||||
|
||||
public sealed class CCheckTransmitInfoList : NativeObject, IReadOnlyList<(CCheckTransmitInfo info, CCSPlayerController? player)>
|
||||
{
|
||||
private int CheckTransmitPlayerSlotOffset = GameData.GetOffset("CheckTransmitPlayerSlot");
|
||||
|
||||
private unsafe nint* Inner => (nint*)base.Handle;
|
||||
|
||||
public unsafe int Count { get => (int)(*(this.Inner + 1)); }
|
||||
|
||||
public unsafe CCheckTransmitInfoList(IntPtr pointer) : base(pointer)
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Get transmit info for the given index.
|
||||
/// </summary>
|
||||
/// <param name="index">Index of the info you want to retrieve from the list, should be between 0 and '<see cref="Count"/>' - 1</param>
|
||||
/// <returns></returns>
|
||||
public (CCheckTransmitInfo info, CCSPlayerController? player) this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
var (transmit, slot) = this.Get(index);
|
||||
CCSPlayerController? player = Utilities.GetPlayerFromSlot(slot);
|
||||
return (transmit, player);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get transmit info for the given index.
|
||||
/// </summary>
|
||||
/// <param name="index">Index of the info you want to retrieve from the list, should be between 0 and '<see cref="Count"/>' - 1</param>
|
||||
/// <returns></returns>
|
||||
private unsafe (CCheckTransmitInfo, int) Get(int index)
|
||||
{
|
||||
if (index < 0 || index >= this.Count)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("index");
|
||||
}
|
||||
|
||||
// 'base.Handle' holds the pointer for our 'CCheckTransmitInfoList' wrapper class
|
||||
|
||||
// Get the pointer to the array of 'CCheckTransmitInfo'
|
||||
nint* infoListPtr = *(nint**)this.Inner; // Dereference 'Inner' to get the pointer to the array
|
||||
|
||||
// Access the specific 'CCheckTransmitInfo*'
|
||||
nint infoPtr = *(infoListPtr + index);
|
||||
|
||||
// Retrieve the 'CCheckTransmitInfo' from the pointer
|
||||
CCheckTransmitInfo info = Marshal.PtrToStructure<CCheckTransmitInfo>(infoPtr);
|
||||
|
||||
// Get player slot from the 'infoPtr' using the 'CheckTransmitPlayerSlotOffset' offset
|
||||
int playerSlot = *(int*)((byte*)infoPtr + CheckTransmitPlayerSlotOffset);
|
||||
|
||||
return (info, playerSlot);
|
||||
}
|
||||
|
||||
public IEnumerator<(CCheckTransmitInfo, CCSPlayerController?)> GetEnumerator()
|
||||
{
|
||||
for (int i = 0; i < this.Count; i++)
|
||||
{
|
||||
yield return this[i];
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return this.GetEnumerator();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* This file is part of CounterStrikeSharp.
|
||||
* CounterStrikeSharp is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CounterStrikeSharp is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with CounterStrikeSharp. If not, see <https://www.gnu.org/licenses/>. *
|
||||
*/
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core
|
||||
{
|
||||
// credits: qstage
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct CFixedBitVecBase
|
||||
{
|
||||
private const int LOG2_BITS_PER_INT = 5;
|
||||
private const int BITS_PER_INT = 32;
|
||||
|
||||
private readonly uint* m_Ints;
|
||||
|
||||
public void Add(CEntityInstance entityInstance) => Write(entityInstance.Index);
|
||||
|
||||
public void Add(int bitNum) => Write(bitNum);
|
||||
|
||||
public void Add(uint bitNum) => Write(bitNum);
|
||||
|
||||
public void Remove(CEntityInstance entityInstance) => Clear(entityInstance.Index);
|
||||
|
||||
public void Remove(int bitNum) => Clear(bitNum);
|
||||
|
||||
public void Remove(uint bitNum) => Clear(bitNum);
|
||||
|
||||
public bool Contains(CEntityInstance entityInstance) => Contains(entityInstance.Index);
|
||||
|
||||
public bool Contains(uint bitNum) => Contains((int)bitNum);
|
||||
|
||||
private void Clear(uint bitNum) => Clear((int)bitNum);
|
||||
|
||||
private void Write(uint bitNum) => Write((int)bitNum);
|
||||
|
||||
private void Clear(int bitNum)
|
||||
{
|
||||
if (!(bitNum >= 0 && bitNum < Utilities.MaxEdicts))
|
||||
return;
|
||||
|
||||
uint* pInt = m_Ints + BitVec_Int(bitNum);
|
||||
*pInt &= ~(uint)BitVec_Bit(bitNum);
|
||||
}
|
||||
|
||||
private void Write(int bitNum)
|
||||
{
|
||||
if (!(bitNum >= 0 && bitNum < Utilities.MaxEdicts))
|
||||
return;
|
||||
|
||||
uint* pInt = m_Ints + BitVec_Int(bitNum);
|
||||
*pInt |= (uint)BitVec_Bit(bitNum);
|
||||
}
|
||||
|
||||
public bool Contains(int bitNum)
|
||||
{
|
||||
if (!(bitNum >= 0 && bitNum < Utilities.MaxEdicts))
|
||||
return false;
|
||||
|
||||
uint* pInt = m_Ints + BitVec_Int(bitNum);
|
||||
return (*pInt & (uint)BitVec_Bit(bitNum)) != 0;
|
||||
}
|
||||
|
||||
private int BitVec_Int(int bitNum) => bitNum >> LOG2_BITS_PER_INT;
|
||||
|
||||
private int BitVec_Bit(int bitNum) => 1 << (bitNum & (BITS_PER_INT - 1));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class AutoRoomDoorwayPairs_t : NativeObject
|
||||
{
|
||||
public AutoRoomDoorwayPairs_t (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// vP1
|
||||
[SchemaMember("AutoRoomDoorwayPairs_t", "vP1")]
|
||||
public Vector VP1 => Schema.GetDeclaredClass<Vector>(this.Handle, "AutoRoomDoorwayPairs_t", "vP1");
|
||||
|
||||
// vP2
|
||||
[SchemaMember("AutoRoomDoorwayPairs_t", "vP2")]
|
||||
public Vector VP2 => Schema.GetDeclaredClass<Vector>(this.Handle, "AutoRoomDoorwayPairs_t", "vP2");
|
||||
|
||||
}
|
||||
@@ -20,11 +20,11 @@ public partial class CAISound : CPointEntity
|
||||
|
||||
// m_iSoundType
|
||||
[SchemaMember("CAISound", "m_iSoundType")]
|
||||
public ref SoundTypes_t SoundType => ref Schema.GetRef<SoundTypes_t>(this.Handle, "CAISound", "m_iSoundType");
|
||||
public ref SoundTypes_t SoundType => ref Schema.GetRef<SoundTypes_t>(this.Handle, "CAISound", "m_iSoundType");
|
||||
|
||||
// m_iSoundFlags
|
||||
[SchemaMember("CAISound", "m_iSoundFlags")]
|
||||
public ref SoundFlags_t SoundFlags => ref Schema.GetRef<SoundFlags_t>(this.Handle, "CAISound", "m_iSoundFlags");
|
||||
// m_iSoundFlags
|
||||
[SchemaMember("CAISound", "m_iSoundFlags")]
|
||||
public ref SoundFlags_t SoundFlags => ref Schema.GetRef<SoundFlags_t>(this.Handle, "CAISound", "m_iSoundFlags");
|
||||
|
||||
// m_iVolume
|
||||
[SchemaMember("CAISound", "m_iVolume")]
|
||||
|
||||
@@ -46,10 +46,10 @@ public partial class CAI_Expresser : NativeObject
|
||||
[SchemaMember("CAI_Expresser", "m_bConsiderSceneInvolvementAsSpeech")]
|
||||
public ref bool ConsiderSceneInvolvementAsSpeech => ref Schema.GetRef<bool>(this.Handle, "CAI_Expresser", "m_bConsiderSceneInvolvementAsSpeech");
|
||||
|
||||
// m_bSceneEntityDisabled
|
||||
[SchemaMember("CAI_Expresser", "m_bSceneEntityDisabled")]
|
||||
public ref bool SceneEntityDisabled => ref Schema.GetRef<bool>(this.Handle, "CAI_Expresser", "m_bSceneEntityDisabled");
|
||||
|
||||
// m_bSceneEntityDisabled
|
||||
[SchemaMember("CAI_Expresser", "m_bSceneEntityDisabled")]
|
||||
public ref bool SceneEntityDisabled => ref Schema.GetRef<bool>(this.Handle, "CAI_Expresser", "m_bSceneEntityDisabled");
|
||||
|
||||
// m_nLastSpokenPriority
|
||||
[SchemaMember("CAI_Expresser", "m_nLastSpokenPriority")]
|
||||
public ref Int32 LastSpokenPriority => ref Schema.GetRef<Int32>(this.Handle, "CAI_Expresser", "m_nLastSpokenPriority");
|
||||
|
||||
@@ -190,6 +190,10 @@ public partial class CBarnLight : CBaseModelEntity
|
||||
[SchemaMember("CBarnLight", "m_flFogScale")]
|
||||
public ref float FogScale => ref Schema.GetRef<float>(this.Handle, "CBarnLight", "m_flFogScale");
|
||||
|
||||
// m_bFogMixedShadows
|
||||
[SchemaMember("CBarnLight", "m_bFogMixedShadows")]
|
||||
public ref bool FogMixedShadows => ref Schema.GetRef<bool>(this.Handle, "CBarnLight", "m_bFogMixedShadows");
|
||||
|
||||
// m_flFadeSizeStart
|
||||
[SchemaMember("CBarnLight", "m_flFadeSizeStart")]
|
||||
public ref float FadeSizeStart => ref Schema.GetRef<float>(this.Handle, "CBarnLight", "m_flFadeSizeStart");
|
||||
@@ -230,8 +234,88 @@ public partial class CBarnLight : CBaseModelEntity
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBExtent")]
|
||||
public Vector PrecomputedOBBExtent => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBExtent");
|
||||
|
||||
// m_nPrecomputedSubFrusta
|
||||
[SchemaMember("CBarnLight", "m_nPrecomputedSubFrusta")]
|
||||
public ref Int32 PrecomputedSubFrusta => ref Schema.GetRef<Int32>(this.Handle, "CBarnLight", "m_nPrecomputedSubFrusta");
|
||||
|
||||
// m_vPrecomputedOBBOrigin0
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBOrigin0")]
|
||||
public Vector PrecomputedOBBOrigin0 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBOrigin0");
|
||||
|
||||
// m_vPrecomputedOBBAngles0
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBAngles0")]
|
||||
public QAngle PrecomputedOBBAngles0 => Schema.GetDeclaredClass<QAngle>(this.Handle, "CBarnLight", "m_vPrecomputedOBBAngles0");
|
||||
|
||||
// m_vPrecomputedOBBExtent0
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBExtent0")]
|
||||
public Vector PrecomputedOBBExtent0 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBExtent0");
|
||||
|
||||
// m_vPrecomputedOBBOrigin1
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBOrigin1")]
|
||||
public Vector PrecomputedOBBOrigin1 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBOrigin1");
|
||||
|
||||
// m_vPrecomputedOBBAngles1
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBAngles1")]
|
||||
public QAngle PrecomputedOBBAngles1 => Schema.GetDeclaredClass<QAngle>(this.Handle, "CBarnLight", "m_vPrecomputedOBBAngles1");
|
||||
|
||||
// m_vPrecomputedOBBExtent1
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBExtent1")]
|
||||
public Vector PrecomputedOBBExtent1 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBExtent1");
|
||||
|
||||
// m_vPrecomputedOBBOrigin2
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBOrigin2")]
|
||||
public Vector PrecomputedOBBOrigin2 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBOrigin2");
|
||||
|
||||
// m_vPrecomputedOBBAngles2
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBAngles2")]
|
||||
public QAngle PrecomputedOBBAngles2 => Schema.GetDeclaredClass<QAngle>(this.Handle, "CBarnLight", "m_vPrecomputedOBBAngles2");
|
||||
|
||||
// m_vPrecomputedOBBExtent2
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBExtent2")]
|
||||
public Vector PrecomputedOBBExtent2 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBExtent2");
|
||||
|
||||
// m_vPrecomputedOBBOrigin3
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBOrigin3")]
|
||||
public Vector PrecomputedOBBOrigin3 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBOrigin3");
|
||||
|
||||
// m_vPrecomputedOBBAngles3
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBAngles3")]
|
||||
public QAngle PrecomputedOBBAngles3 => Schema.GetDeclaredClass<QAngle>(this.Handle, "CBarnLight", "m_vPrecomputedOBBAngles3");
|
||||
|
||||
// m_vPrecomputedOBBExtent3
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBExtent3")]
|
||||
public Vector PrecomputedOBBExtent3 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBExtent3");
|
||||
|
||||
// m_vPrecomputedOBBOrigin4
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBOrigin4")]
|
||||
public Vector PrecomputedOBBOrigin4 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBOrigin4");
|
||||
|
||||
// m_vPrecomputedOBBAngles4
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBAngles4")]
|
||||
public QAngle PrecomputedOBBAngles4 => Schema.GetDeclaredClass<QAngle>(this.Handle, "CBarnLight", "m_vPrecomputedOBBAngles4");
|
||||
|
||||
// m_vPrecomputedOBBExtent4
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBExtent4")]
|
||||
public Vector PrecomputedOBBExtent4 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBExtent4");
|
||||
|
||||
// m_vPrecomputedOBBOrigin5
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBOrigin5")]
|
||||
public Vector PrecomputedOBBOrigin5 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBOrigin5");
|
||||
|
||||
// m_vPrecomputedOBBAngles5
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBAngles5")]
|
||||
public QAngle PrecomputedOBBAngles5 => Schema.GetDeclaredClass<QAngle>(this.Handle, "CBarnLight", "m_vPrecomputedOBBAngles5");
|
||||
|
||||
// m_vPrecomputedOBBExtent5
|
||||
[SchemaMember("CBarnLight", "m_vPrecomputedOBBExtent5")]
|
||||
public Vector PrecomputedOBBExtent5 => Schema.GetDeclaredClass<Vector>(this.Handle, "CBarnLight", "m_vPrecomputedOBBExtent5");
|
||||
|
||||
// m_bPvsModifyEntity
|
||||
[SchemaMember("CBarnLight", "m_bPvsModifyEntity")]
|
||||
public ref bool PvsModifyEntity => ref Schema.GetRef<bool>(this.Handle, "CBarnLight", "m_bPvsModifyEntity");
|
||||
|
||||
// m_VisClusters
|
||||
[SchemaMember("CBarnLight", "m_VisClusters")]
|
||||
public NetworkedVector<UInt16> VisClusters => Schema.GetDeclaredClass<NetworkedVector<UInt16>>(this.Handle, "CBarnLight", "m_VisClusters");
|
||||
|
||||
}
|
||||
|
||||
@@ -50,12 +50,12 @@ public partial class CBaseAnimGraph : CBaseModelEntity
|
||||
[SchemaMember("CBaseAnimGraph", "m_nForceBone")]
|
||||
public ref Int32 ForceBone => ref Schema.GetRef<Int32>(this.Handle, "CBaseAnimGraph", "m_nForceBone");
|
||||
|
||||
// m_pRagdollPose
|
||||
[SchemaMember("CBaseAnimGraph", "m_pRagdollPose")]
|
||||
public PhysicsRagdollPose_t? RagdollPose => Schema.GetPointer<PhysicsRagdollPose_t>(this.Handle, "CBaseAnimGraph", "m_pRagdollPose");
|
||||
// m_RagdollPose
|
||||
[SchemaMember("CBaseAnimGraph", "m_RagdollPose")]
|
||||
public PhysicsRagdollPose_t RagdollPose => Schema.GetDeclaredClass<PhysicsRagdollPose_t>(this.Handle, "CBaseAnimGraph", "m_RagdollPose");
|
||||
|
||||
// m_bRagdollClientSide
|
||||
[SchemaMember("CBaseAnimGraph", "m_bRagdollClientSide")]
|
||||
public ref bool RagdollClientSide => ref Schema.GetRef<bool>(this.Handle, "CBaseAnimGraph", "m_bRagdollClientSide");
|
||||
// m_bRagdollClientSide
|
||||
[SchemaMember("CBaseAnimGraph", "m_bRagdollClientSide")]
|
||||
public ref bool RagdollClientSide => ref Schema.GetRef<bool>(this.Handle, "CBaseAnimGraph", "m_bRagdollClientSide");
|
||||
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@ public partial class CBaseAnimGraphController : CSkeletonAnimationController
|
||||
[SchemaMember("CBaseAnimGraphController", "m_flSoundSyncTime")]
|
||||
public ref float SoundSyncTime => ref Schema.GetRef<float>(this.Handle, "CBaseAnimGraphController", "m_flSoundSyncTime");
|
||||
|
||||
// m_nActiveIKChainMask
|
||||
[SchemaMember("CBaseAnimGraphController", "m_nActiveIKChainMask")]
|
||||
public ref UInt32 ActiveIKChainMask => ref Schema.GetRef<UInt32>(this.Handle, "CBaseAnimGraphController", "m_nActiveIKChainMask");
|
||||
|
||||
// m_nActiveIKChainMask
|
||||
[SchemaMember("CBaseAnimGraphController", "m_nActiveIKChainMask")]
|
||||
public ref UInt32 ActiveIKChainMask => ref Schema.GetRef<UInt32>(this.Handle, "CBaseAnimGraphController", "m_nActiveIKChainMask");
|
||||
|
||||
// m_hSequence
|
||||
[SchemaMember("CBaseAnimGraphController", "m_hSequence")]
|
||||
public ref Int32 Sequence => ref Schema.GetRef<Int32>(this.Handle, "CBaseAnimGraphController", "m_hSequence");
|
||||
@@ -52,7 +52,7 @@ public partial class CBaseAnimGraphController : CSkeletonAnimationController
|
||||
|
||||
// m_flPlaybackRate
|
||||
[SchemaMember("CBaseAnimGraphController", "m_flPlaybackRate")]
|
||||
public float PlaybackRate => Schema.GetDeclaredClass<float>(this.Handle, "CBaseAnimGraphController", "m_flPlaybackRate");
|
||||
public ref float PlaybackRate => ref Schema.GetRef<float>(this.Handle, "CBaseAnimGraphController", "m_flPlaybackRate");
|
||||
|
||||
// m_nNotifyState
|
||||
[SchemaMember("CBaseAnimGraphController", "m_nNotifyState")]
|
||||
|
||||
@@ -58,14 +58,14 @@ public partial class CBaseButton : CBaseToggle
|
||||
set { Schema.SetString(this.Handle, "CBaseButton", "m_sUnlockedSound", value); }
|
||||
}
|
||||
|
||||
// m_sOverrideAnticipationName
|
||||
[SchemaMember("CBaseButton", "m_sOverrideAnticipationName")]
|
||||
public string OverrideAnticipationName
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CBaseButton", "m_sOverrideAnticipationName"); }
|
||||
set { Schema.SetString(this.Handle, "CBaseButton", "m_sOverrideAnticipationName", value); }
|
||||
}
|
||||
|
||||
// m_sOverrideAnticipationName
|
||||
[SchemaMember("CBaseButton", "m_sOverrideAnticipationName")]
|
||||
public string OverrideAnticipationName
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CBaseButton", "m_sOverrideAnticipationName"); }
|
||||
set { Schema.SetString(this.Handle, "CBaseButton", "m_sOverrideAnticipationName", value); }
|
||||
}
|
||||
|
||||
// m_bLocked
|
||||
[SchemaMember("CBaseButton", "m_bLocked")]
|
||||
public ref bool Locked => ref Schema.GetRef<bool>(this.Handle, "CBaseButton", "m_bLocked");
|
||||
|
||||
@@ -26,10 +26,6 @@ public partial class CBaseCombatCharacter : CBaseFlex
|
||||
[SchemaMember("CBaseCombatCharacter", "m_hMyWearables")]
|
||||
public NetworkedVector<CHandle<CEconWearable>> MyWearables => Schema.GetDeclaredClass<NetworkedVector<CHandle<CEconWearable>>>(this.Handle, "CBaseCombatCharacter", "m_hMyWearables");
|
||||
|
||||
// m_flFieldOfView
|
||||
[SchemaMember("CBaseCombatCharacter", "m_flFieldOfView")]
|
||||
public ref float FieldOfView => ref Schema.GetRef<float>(this.Handle, "CBaseCombatCharacter", "m_flFieldOfView");
|
||||
|
||||
// m_impactEnergyScale
|
||||
[SchemaMember("CBaseCombatCharacter", "m_impactEnergyScale")]
|
||||
public ref float ImpactEnergyScale => ref Schema.GetRef<float>(this.Handle, "CBaseCombatCharacter", "m_impactEnergyScale");
|
||||
|
||||
@@ -38,9 +38,9 @@ public partial class CBaseEntity : CEntityInstance
|
||||
[SchemaMember("CBaseEntity", "m_nLastThinkTick")]
|
||||
public ref Int32 LastThinkTick => ref Schema.GetRef<Int32>(this.Handle, "CBaseEntity", "m_nLastThinkTick");
|
||||
|
||||
// m_bDisabledContextThinks
|
||||
[SchemaMember("CBaseEntity", "m_bDisabledContextThinks")]
|
||||
public ref bool DisabledContextThinks => ref Schema.GetRef<bool>(this.Handle, "CBaseEntity", "m_bDisabledContextThinks");
|
||||
// m_bDisabledContextThinks
|
||||
[SchemaMember("CBaseEntity", "m_bDisabledContextThinks")]
|
||||
public ref bool DisabledContextThinks => ref Schema.GetRef<bool>(this.Handle, "CBaseEntity", "m_bDisabledContextThinks");
|
||||
|
||||
// m_isSteadyState
|
||||
[SchemaMember("CBaseEntity", "m_isSteadyState")]
|
||||
@@ -86,9 +86,9 @@ public partial class CBaseEntity : CEntityInstance
|
||||
[SchemaMember("CBaseEntity", "m_nTakeDamageFlags")]
|
||||
public ref TakeDamageFlags_t TakeDamageFlags => ref Schema.GetRef<TakeDamageFlags_t>(this.Handle, "CBaseEntity", "m_nTakeDamageFlags");
|
||||
|
||||
// m_bIsPlatform
|
||||
[SchemaMember("CBaseEntity", "m_bIsPlatform")]
|
||||
public ref bool IsPlatform => ref Schema.GetRef<bool>(this.Handle, "CBaseEntity", "m_bIsPlatform");
|
||||
// m_nPlatformType
|
||||
[SchemaMember("CBaseEntity", "m_nPlatformType")]
|
||||
public ref EntityPlatformTypes_t PlatformType => ref Schema.GetRef<EntityPlatformTypes_t>(this.Handle, "CBaseEntity", "m_nPlatformType");
|
||||
|
||||
// m_MoveCollide
|
||||
[SchemaMember("CBaseEntity", "m_MoveCollide")]
|
||||
@@ -250,10 +250,10 @@ public partial class CBaseEntity : CEntityInstance
|
||||
[SchemaMember("CBaseEntity", "m_hGroundEntity")]
|
||||
public CHandle<CBaseEntity> GroundEntity => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CBaseEntity", "m_hGroundEntity");
|
||||
|
||||
// m_nGroundBodyIndex
|
||||
[SchemaMember("CBaseEntity", "m_nGroundBodyIndex")]
|
||||
public ref Int32 GroundBodyIndex => ref Schema.GetRef<Int32>(this.Handle, "CBaseEntity", "m_nGroundBodyIndex");
|
||||
|
||||
// m_nGroundBodyIndex
|
||||
[SchemaMember("CBaseEntity", "m_nGroundBodyIndex")]
|
||||
public ref Int32 GroundBodyIndex => ref Schema.GetRef<Int32>(this.Handle, "CBaseEntity", "m_nGroundBodyIndex");
|
||||
|
||||
// m_flFriction
|
||||
[SchemaMember("CBaseEntity", "m_flFriction")]
|
||||
public ref float Friction => ref Schema.GetRef<float>(this.Handle, "CBaseEntity", "m_flFriction");
|
||||
@@ -342,8 +342,8 @@ public partial class CBaseEntity : CEntityInstance
|
||||
[SchemaMember("CBaseEntity", "m_flVPhysicsUpdateLocalTime")]
|
||||
public ref float VPhysicsUpdateLocalTime => ref Schema.GetRef<float>(this.Handle, "CBaseEntity", "m_flVPhysicsUpdateLocalTime");
|
||||
|
||||
// m_nBloodType
|
||||
[SchemaMember("CBaseEntity", "m_nBloodType")]
|
||||
public ref BloodType BloodType => ref Schema.GetRef<BloodType>(this.Handle, "CBaseEntity", "m_nBloodType");
|
||||
|
||||
// m_nBloodType
|
||||
[SchemaMember("CBaseEntity", "m_nBloodType")]
|
||||
public ref BloodType BloodType => ref Schema.GetRef<BloodType>(this.Handle, "CBaseEntity", "m_nBloodType");
|
||||
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public partial class CBaseFlex : CBaseAnimGraph
|
||||
|
||||
// m_nNextSceneEventId
|
||||
[SchemaMember("CBaseFlex", "m_nNextSceneEventId")]
|
||||
public SceneEventId_t NextSceneEventId => Schema.GetDeclaredClass<SceneEventId_t>(this.Handle, "CBaseFlex", "m_nNextSceneEventId");
|
||||
public SceneEventId_t NextSceneEventId => Schema.GetDeclaredClass<SceneEventId_t>(this.Handle, "CBaseFlex", "m_nNextSceneEventId");
|
||||
|
||||
// m_bUpdateLayerPriorities
|
||||
[SchemaMember("CBaseFlex", "m_bUpdateLayerPriorities")]
|
||||
|
||||
@@ -62,6 +62,10 @@ public partial class CBaseModelEntity : CBaseEntity
|
||||
[SchemaMember("CBaseModelEntity", "m_bRenderToCubemaps")]
|
||||
public ref bool RenderToCubemaps => ref Schema.GetRef<bool>(this.Handle, "CBaseModelEntity", "m_bRenderToCubemaps");
|
||||
|
||||
// m_bNoInterpolate
|
||||
[SchemaMember("CBaseModelEntity", "m_bNoInterpolate")]
|
||||
public ref bool NoInterpolate => ref Schema.GetRef<bool>(this.Handle, "CBaseModelEntity", "m_bNoInterpolate");
|
||||
|
||||
// m_Collision
|
||||
[SchemaMember("CBaseModelEntity", "m_Collision")]
|
||||
public CCollisionProperty Collision => Schema.GetDeclaredClass<CCollisionProperty>(this.Handle, "CBaseModelEntity", "m_Collision");
|
||||
|
||||
@@ -30,10 +30,10 @@ public partial class CBasePlayerController : CBaseEntity
|
||||
[SchemaMember("CBasePlayerController", "m_hPawn")]
|
||||
public CHandle<CBasePlayerPawn> Pawn => Schema.GetDeclaredClass<CHandle<CBasePlayerPawn>>(this.Handle, "CBasePlayerController", "m_hPawn");
|
||||
|
||||
// m_bKnownTeamMismatch
|
||||
[SchemaMember("CBasePlayerController", "m_bKnownTeamMismatch")]
|
||||
public ref bool KnownTeamMismatch => ref Schema.GetRef<bool>(this.Handle, "CBasePlayerController", "m_bKnownTeamMismatch");
|
||||
|
||||
// m_bKnownTeamMismatch
|
||||
[SchemaMember("CBasePlayerController", "m_bKnownTeamMismatch")]
|
||||
public ref bool KnownTeamMismatch => ref Schema.GetRef<bool>(this.Handle, "CBasePlayerController", "m_bKnownTeamMismatch");
|
||||
|
||||
// m_nSplitScreenSlot
|
||||
[SchemaMember("CBasePlayerController", "m_nSplitScreenSlot")]
|
||||
public ref Int32 SplitScreenSlot => ref Schema.GetRef<Int32>(this.Handle, "CBasePlayerController", "m_nSplitScreenSlot");
|
||||
@@ -94,14 +94,6 @@ public partial class CBasePlayerController : CBaseEntity
|
||||
[SchemaMember("CBasePlayerController", "m_bGamePaused")]
|
||||
public ref bool GamePaused => ref Schema.GetRef<bool>(this.Handle, "CBasePlayerController", "m_bGamePaused");
|
||||
|
||||
// m_nLastRealCommandNumberExecuted
|
||||
[SchemaMember("CBasePlayerController", "m_nLastRealCommandNumberExecuted")]
|
||||
public ref Int32 LastRealCommandNumberExecuted => ref Schema.GetRef<Int32>(this.Handle, "CBasePlayerController", "m_nLastRealCommandNumberExecuted");
|
||||
|
||||
// m_nLastLateCommandExecuted
|
||||
[SchemaMember("CBasePlayerController", "m_nLastLateCommandExecuted")]
|
||||
public ref Int32 LastLateCommandExecuted => ref Schema.GetRef<Int32>(this.Handle, "CBasePlayerController", "m_nLastLateCommandExecuted");
|
||||
|
||||
// m_iIgnoreGlobalChat
|
||||
[SchemaMember("CBasePlayerController", "m_iIgnoreGlobalChat")]
|
||||
public ref ChatIgnoreType_t IgnoreGlobalChat => ref Schema.GetRef<ChatIgnoreType_t>(this.Handle, "CBasePlayerController", "m_iIgnoreGlobalChat");
|
||||
|
||||
@@ -26,13 +26,9 @@ public partial class CBasePlayerWeaponVData : CEntitySubclassVDataBase
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_bAllowFlipping")]
|
||||
public ref bool AllowFlipping => ref Schema.GetRef<bool>(this.Handle, "CBasePlayerWeaponVData", "m_bAllowFlipping");
|
||||
|
||||
// m_sMuzzleAttachment
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_sMuzzleAttachment")]
|
||||
public string MuzzleAttachment
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CBasePlayerWeaponVData", "m_sMuzzleAttachment"); }
|
||||
set { Schema.SetString(this.Handle, "CBasePlayerWeaponVData", "m_sMuzzleAttachment", value); }
|
||||
}
|
||||
// m_bLinkedCooldowns
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_bLinkedCooldowns")]
|
||||
public ref bool LinkedCooldowns => ref Schema.GetRef<bool>(this.Handle, "CBasePlayerWeaponVData", "m_bLinkedCooldowns");
|
||||
|
||||
// m_iFlags
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_iFlags")]
|
||||
@@ -62,6 +58,10 @@ public partial class CBasePlayerWeaponVData : CEntitySubclassVDataBase
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_iDefaultClip2")]
|
||||
public ref Int32 DefaultClip2 => ref Schema.GetRef<Int32>(this.Handle, "CBasePlayerWeaponVData", "m_iDefaultClip2");
|
||||
|
||||
// m_bReserveAmmoAsClips
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_bReserveAmmoAsClips")]
|
||||
public ref bool ReserveAmmoAsClips => ref Schema.GetRef<bool>(this.Handle, "CBasePlayerWeaponVData", "m_bReserveAmmoAsClips");
|
||||
|
||||
// m_iWeight
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_iWeight")]
|
||||
public ref Int32 Weight => ref Schema.GetRef<Int32>(this.Handle, "CBasePlayerWeaponVData", "m_iWeight");
|
||||
@@ -78,10 +78,6 @@ public partial class CBasePlayerWeaponVData : CEntitySubclassVDataBase
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_iRumbleEffect")]
|
||||
public ref RumbleEffect_t RumbleEffect => ref Schema.GetRef<RumbleEffect_t>(this.Handle, "CBasePlayerWeaponVData", "m_iRumbleEffect");
|
||||
|
||||
// m_bLinkedCooldowns
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_bLinkedCooldowns")]
|
||||
public ref bool LinkedCooldowns => ref Schema.GetRef<bool>(this.Handle, "CBasePlayerWeaponVData", "m_bLinkedCooldowns");
|
||||
|
||||
// m_iSlot
|
||||
[SchemaMember("CBasePlayerWeaponVData", "m_iSlot")]
|
||||
public ref Int32 Slot => ref Schema.GetRef<Int32>(this.Handle, "CBasePlayerWeaponVData", "m_iSlot");
|
||||
|
||||
@@ -54,10 +54,10 @@ public partial class CBaseTrigger : CBaseToggle
|
||||
[SchemaMember("CBaseTrigger", "m_OnTouching")]
|
||||
public CEntityIOOutput OnTouching => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CBaseTrigger", "m_OnTouching");
|
||||
|
||||
// m_OnTouchingEachEntity
|
||||
[SchemaMember("CBaseTrigger", "m_OnTouchingEachEntity")]
|
||||
public CEntityIOOutput OnTouchingEachEntity => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CBaseTrigger", "m_OnTouchingEachEntity");
|
||||
|
||||
// m_OnTouchingEachEntity
|
||||
[SchemaMember("CBaseTrigger", "m_OnTouchingEachEntity")]
|
||||
public CEntityIOOutput OnTouchingEachEntity => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CBaseTrigger", "m_OnTouchingEachEntity");
|
||||
|
||||
// m_OnNotTouching
|
||||
[SchemaMember("CBaseTrigger", "m_OnNotTouching")]
|
||||
public CEntityIOOutput OnNotTouching => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CBaseTrigger", "m_OnNotTouching");
|
||||
|
||||
@@ -32,6 +32,6 @@ public partial class CBlood : CPointEntity
|
||||
|
||||
// m_Color
|
||||
[SchemaMember("CBlood", "m_Color")]
|
||||
public ref BloodType Color => ref Schema.GetRef<BloodType>(this.Handle, "CBlood", "m_Color");
|
||||
public ref BloodType Color => ref Schema.GetRef<BloodType>(this.Handle, "CBlood", "m_Color");
|
||||
|
||||
}
|
||||
|
||||
@@ -18,10 +18,10 @@ public partial class CBreakable : CBaseModelEntity
|
||||
{
|
||||
public CBreakable (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_CPropDataComponent
|
||||
[SchemaMember("CBreakable", "m_CPropDataComponent")]
|
||||
public CPropDataComponent CPropDataComponent => Schema.GetDeclaredClass<CPropDataComponent>(this.Handle, "CBreakable", "m_CPropDataComponent");
|
||||
|
||||
// m_CPropDataComponent
|
||||
[SchemaMember("CBreakable", "m_CPropDataComponent")]
|
||||
public CPropDataComponent CPropDataComponent => Schema.GetDeclaredClass<CPropDataComponent>(this.Handle, "CBreakable", "m_CPropDataComponent");
|
||||
|
||||
// m_Material
|
||||
[SchemaMember("CBreakable", "m_Material")]
|
||||
public ref Materials Material => ref Schema.GetRef<Materials>(this.Handle, "CBreakable", "m_Material");
|
||||
|
||||
@@ -18,10 +18,10 @@ public partial class CBreakableProp : CBaseProp
|
||||
{
|
||||
public CBreakableProp (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_CPropDataComponent
|
||||
[SchemaMember("CBreakableProp", "m_CPropDataComponent")]
|
||||
public CPropDataComponent CPropDataComponent => Schema.GetDeclaredClass<CPropDataComponent>(this.Handle, "CBreakableProp", "m_CPropDataComponent");
|
||||
|
||||
// m_CPropDataComponent
|
||||
[SchemaMember("CBreakableProp", "m_CPropDataComponent")]
|
||||
public CPropDataComponent CPropDataComponent => Schema.GetDeclaredClass<CPropDataComponent>(this.Handle, "CBreakableProp", "m_CPropDataComponent");
|
||||
|
||||
// m_OnBreak
|
||||
[SchemaMember("CBreakableProp", "m_OnBreak")]
|
||||
public CEntityIOOutput OnBreak => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CBreakableProp", "m_OnBreak");
|
||||
@@ -46,14 +46,14 @@ public partial class CBreakableProp : CBaseProp
|
||||
[SchemaMember("CBreakableProp", "m_flPressureDelay")]
|
||||
public ref float PressureDelay => ref Schema.GetRef<float>(this.Handle, "CBreakableProp", "m_flPressureDelay");
|
||||
|
||||
// m_flDefBurstScale
|
||||
[SchemaMember("CBreakableProp", "m_flDefBurstScale")]
|
||||
public ref float DefBurstScale => ref Schema.GetRef<float>(this.Handle, "CBreakableProp", "m_flDefBurstScale");
|
||||
|
||||
// m_vDefBurstOffset
|
||||
[SchemaMember("CBreakableProp", "m_vDefBurstOffset")]
|
||||
public Vector DefBurstOffset => Schema.GetDeclaredClass<Vector>(this.Handle, "CBreakableProp", "m_vDefBurstOffset");
|
||||
|
||||
// m_flDefBurstScale
|
||||
[SchemaMember("CBreakableProp", "m_flDefBurstScale")]
|
||||
public ref float DefBurstScale => ref Schema.GetRef<float>(this.Handle, "CBreakableProp", "m_flDefBurstScale");
|
||||
|
||||
// m_vDefBurstOffset
|
||||
[SchemaMember("CBreakableProp", "m_vDefBurstOffset")]
|
||||
public Vector DefBurstOffset => Schema.GetDeclaredClass<Vector>(this.Handle, "CBreakableProp", "m_vDefBurstOffset");
|
||||
|
||||
// m_hBreaker
|
||||
[SchemaMember("CBreakableProp", "m_hBreaker")]
|
||||
public CHandle<CBaseEntity> Breaker => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CBreakableProp", "m_hBreaker");
|
||||
@@ -66,6 +66,26 @@ public partial class CBreakableProp : CBaseProp
|
||||
[SchemaMember("CBreakableProp", "m_flPreventDamageBeforeTime")]
|
||||
public ref float PreventDamageBeforeTime => ref Schema.GetRef<float>(this.Handle, "CBreakableProp", "m_flPreventDamageBeforeTime");
|
||||
|
||||
// m_BreakableContentsType
|
||||
[SchemaMember("CBreakableProp", "m_BreakableContentsType")]
|
||||
public ref BreakableContentsType_t BreakableContentsType => ref Schema.GetRef<BreakableContentsType_t>(this.Handle, "CBreakableProp", "m_BreakableContentsType");
|
||||
|
||||
// m_strBreakableContentsPropGroupOverride
|
||||
[SchemaMember("CBreakableProp", "m_strBreakableContentsPropGroupOverride")]
|
||||
public string StrBreakableContentsPropGroupOverride
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CBreakableProp", "m_strBreakableContentsPropGroupOverride"); }
|
||||
set { Schema.SetString(this.Handle, "CBreakableProp", "m_strBreakableContentsPropGroupOverride", value); }
|
||||
}
|
||||
|
||||
// m_strBreakableContentsParticleOverride
|
||||
[SchemaMember("CBreakableProp", "m_strBreakableContentsParticleOverride")]
|
||||
public string StrBreakableContentsParticleOverride
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CBreakableProp", "m_strBreakableContentsParticleOverride"); }
|
||||
set { Schema.SetString(this.Handle, "CBreakableProp", "m_strBreakableContentsParticleOverride", value); }
|
||||
}
|
||||
|
||||
// m_bHasBreakPiecesOrCommands
|
||||
[SchemaMember("CBreakableProp", "m_bHasBreakPiecesOrCommands")]
|
||||
public ref bool HasBreakPiecesOrCommands => ref Schema.GetRef<bool>(this.Handle, "CBreakableProp", "m_bHasBreakPiecesOrCommands");
|
||||
|
||||
@@ -18,8 +18,28 @@ public partial class CBuoyancyHelper : NativeObject
|
||||
{
|
||||
public CBuoyancyHelper (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_nFluidType
|
||||
[SchemaMember("CBuoyancyHelper", "m_nFluidType")]
|
||||
public CUtlStringToken FluidType => Schema.GetDeclaredClass<CUtlStringToken>(this.Handle, "CBuoyancyHelper", "m_nFluidType");
|
||||
|
||||
// m_flFluidDensity
|
||||
[SchemaMember("CBuoyancyHelper", "m_flFluidDensity")]
|
||||
public ref float FluidDensity => ref Schema.GetRef<float>(this.Handle, "CBuoyancyHelper", "m_flFluidDensity");
|
||||
|
||||
// m_vecFractionOfWheelSubmergedForWheelFriction
|
||||
[SchemaMember("CBuoyancyHelper", "m_vecFractionOfWheelSubmergedForWheelFriction")]
|
||||
public NetworkedVector<float> FractionOfWheelSubmergedForWheelFriction => Schema.GetDeclaredClass<NetworkedVector<float>>(this.Handle, "CBuoyancyHelper", "m_vecFractionOfWheelSubmergedForWheelFriction");
|
||||
|
||||
// m_vecWheelFrictionScales
|
||||
[SchemaMember("CBuoyancyHelper", "m_vecWheelFrictionScales")]
|
||||
public NetworkedVector<float> WheelFrictionScales => Schema.GetDeclaredClass<NetworkedVector<float>>(this.Handle, "CBuoyancyHelper", "m_vecWheelFrictionScales");
|
||||
|
||||
// m_vecFractionOfWheelSubmergedForWheelDrag
|
||||
[SchemaMember("CBuoyancyHelper", "m_vecFractionOfWheelSubmergedForWheelDrag")]
|
||||
public NetworkedVector<float> FractionOfWheelSubmergedForWheelDrag => Schema.GetDeclaredClass<NetworkedVector<float>>(this.Handle, "CBuoyancyHelper", "m_vecFractionOfWheelSubmergedForWheelDrag");
|
||||
|
||||
// m_vecWheelDrag
|
||||
[SchemaMember("CBuoyancyHelper", "m_vecWheelDrag")]
|
||||
public NetworkedVector<float> WheelDrag => Schema.GetDeclaredClass<NetworkedVector<float>>(this.Handle, "CBuoyancyHelper", "m_vecWheelDrag");
|
||||
|
||||
}
|
||||
|
||||
@@ -22,12 +22,4 @@ public partial class CCSGOViewModel : CPredictedViewModel
|
||||
[SchemaMember("CCSGOViewModel", "m_bShouldIgnoreOffsetAndAccuracy")]
|
||||
public ref bool ShouldIgnoreOffsetAndAccuracy => ref Schema.GetRef<bool>(this.Handle, "CCSGOViewModel", "m_bShouldIgnoreOffsetAndAccuracy");
|
||||
|
||||
// m_nWeaponParity
|
||||
[SchemaMember("CCSGOViewModel", "m_nWeaponParity")]
|
||||
public ref UInt32 WeaponParity => ref Schema.GetRef<UInt32>(this.Handle, "CCSGOViewModel", "m_nWeaponParity");
|
||||
|
||||
// m_nOldWeaponParity
|
||||
[SchemaMember("CCSGOViewModel", "m_nOldWeaponParity")]
|
||||
public ref UInt32 OldWeaponParity => ref Schema.GetRef<UInt32>(this.Handle, "CCSGOViewModel", "m_nOldWeaponParity");
|
||||
|
||||
}
|
||||
|
||||
@@ -26,12 +26,12 @@ public partial class CCSGameModeRules_Deathmatch : CCSGameModeRules
|
||||
[SchemaMember("CCSGameModeRules_Deathmatch", "m_flDMBonusTimeLength")]
|
||||
public ref float DMBonusTimeLength => ref Schema.GetRef<float>(this.Handle, "CCSGameModeRules_Deathmatch", "m_flDMBonusTimeLength");
|
||||
|
||||
// m_sDMBonusWeapon
|
||||
[SchemaMember("CCSGameModeRules_Deathmatch", "m_sDMBonusWeapon")]
|
||||
public string DMBonusWeapon
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CCSGameModeRules_Deathmatch", "m_sDMBonusWeapon"); }
|
||||
set { Schema.SetString(this.Handle, "CCSGameModeRules_Deathmatch", "m_sDMBonusWeapon", value); }
|
||||
}
|
||||
// m_sDMBonusWeapon
|
||||
[SchemaMember("CCSGameModeRules_Deathmatch", "m_sDMBonusWeapon")]
|
||||
public string DMBonusWeapon
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CCSGameModeRules_Deathmatch", "m_sDMBonusWeapon"); }
|
||||
set { Schema.SetString(this.Handle, "CCSGameModeRules_Deathmatch", "m_sDMBonusWeapon", value); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -370,10 +370,6 @@ public partial class CCSPlayerPawn : CCSPlayerPawnBase
|
||||
[SchemaMember("CCSPlayerPawn", "m_ignoreLadderJumpTime")]
|
||||
public ref float IgnoreLadderJumpTime => ref Schema.GetRef<float>(this.Handle, "CCSPlayerPawn", "m_ignoreLadderJumpTime");
|
||||
|
||||
// m_NumEnemiesKilledThisRound
|
||||
[SchemaMember("CCSPlayerPawn", "m_NumEnemiesKilledThisRound")]
|
||||
public ref Int32 NumEnemiesKilledThisRound => ref Schema.GetRef<Int32>(this.Handle, "CCSPlayerPawn", "m_NumEnemiesKilledThisRound");
|
||||
|
||||
// m_bKilledByHeadshot
|
||||
[SchemaMember("CCSPlayerPawn", "m_bKilledByHeadshot")]
|
||||
public ref bool KilledByHeadshot => ref Schema.GetRef<bool>(this.Handle, "CCSPlayerPawn", "m_bKilledByHeadshot");
|
||||
@@ -438,10 +434,6 @@ public partial class CCSPlayerPawn : CCSPlayerPawnBase
|
||||
[SchemaMember("CCSPlayerPawn", "m_iLastWeaponFireUsercmd")]
|
||||
public ref Int32 LastWeaponFireUsercmd => ref Schema.GetRef<Int32>(this.Handle, "CCSPlayerPawn", "m_iLastWeaponFireUsercmd");
|
||||
|
||||
// m_flLastFriendlyFireDamageReductionRatio
|
||||
[SchemaMember("CCSPlayerPawn", "m_flLastFriendlyFireDamageReductionRatio")]
|
||||
public ref float LastFriendlyFireDamageReductionRatio => ref Schema.GetRef<float>(this.Handle, "CCSPlayerPawn", "m_flLastFriendlyFireDamageReductionRatio");
|
||||
|
||||
// m_bIsSpawning
|
||||
[SchemaMember("CCSPlayerPawn", "m_bIsSpawning")]
|
||||
public ref bool IsSpawning => ref Schema.GetRef<bool>(this.Handle, "CCSPlayerPawn", "m_bIsSpawning");
|
||||
@@ -506,4 +498,12 @@ public partial class CCSPlayerPawn : CCSPlayerPawnBase
|
||||
[SchemaMember("CCSPlayerPawn", "m_vecVelocityHistory")]
|
||||
public Span<Vector> VelocityHistory => Schema.GetFixedArray<Vector>(this.Handle, "CCSPlayerPawn", "m_vecVelocityHistory", 2);
|
||||
|
||||
// m_PredictedDamageTags
|
||||
[SchemaMember("CCSPlayerPawn", "m_PredictedDamageTags")]
|
||||
public NetworkedVector<PredictedDamageTag_t> PredictedDamageTags => Schema.GetDeclaredClass<NetworkedVector<PredictedDamageTag_t>>(this.Handle, "CCSPlayerPawn", "m_PredictedDamageTags");
|
||||
|
||||
// m_nHighestAppliedDamageTagTick
|
||||
[SchemaMember("CCSPlayerPawn", "m_nHighestAppliedDamageTagTick")]
|
||||
public ref Int32 HighestAppliedDamageTagTick => ref Schema.GetRef<Int32>(this.Handle, "CCSPlayerPawn", "m_nHighestAppliedDamageTagTick");
|
||||
|
||||
}
|
||||
|
||||
@@ -94,10 +94,6 @@ public partial class CCSPlayerPawnBase : CBasePlayerPawn
|
||||
[SchemaMember("CCSPlayerPawnBase", "m_angEyeAngles")]
|
||||
public QAngle EyeAngles => Schema.GetDeclaredClass<QAngle>(this.Handle, "CCSPlayerPawnBase", "m_angEyeAngles");
|
||||
|
||||
// m_NumEnemiesAtRoundStart
|
||||
[SchemaMember("CCSPlayerPawnBase", "m_NumEnemiesAtRoundStart")]
|
||||
public ref Int32 NumEnemiesAtRoundStart => ref Schema.GetRef<Int32>(this.Handle, "CCSPlayerPawnBase", "m_NumEnemiesAtRoundStart");
|
||||
|
||||
// m_wasNotKilledNaturally
|
||||
[SchemaMember("CCSPlayerPawnBase", "m_wasNotKilledNaturally")]
|
||||
public ref bool WasNotKilledNaturally => ref Schema.GetRef<bool>(this.Handle, "CCSPlayerPawnBase", "m_wasNotKilledNaturally");
|
||||
|
||||
@@ -98,6 +98,10 @@ public partial class CCSPlayer_MovementServices : CPlayer_MovementServices_Human
|
||||
[SchemaMember("CCSPlayer_MovementServices", "m_bSpeedCropped")]
|
||||
public ref bool SpeedCropped => ref Schema.GetRef<bool>(this.Handle, "CCSPlayer_MovementServices", "m_bSpeedCropped");
|
||||
|
||||
// m_flGroundMoveEfficiency
|
||||
[SchemaMember("CCSPlayer_MovementServices", "m_flGroundMoveEfficiency")]
|
||||
public ref float GroundMoveEfficiency => ref Schema.GetRef<float>(this.Handle, "CCSPlayer_MovementServices", "m_flGroundMoveEfficiency");
|
||||
|
||||
// m_nOldWaterLevel
|
||||
[SchemaMember("CCSPlayer_MovementServices", "m_nOldWaterLevel")]
|
||||
public ref Int32 OldWaterLevel => ref Schema.GetRef<Int32>(this.Handle, "CCSPlayer_MovementServices", "m_nOldWaterLevel");
|
||||
@@ -174,4 +178,8 @@ public partial class CCSPlayer_MovementServices : CPlayer_MovementServices_Human
|
||||
[SchemaMember("CCSPlayer_MovementServices", "m_flMaxJumpHeightThisJump")]
|
||||
public ref float MaxJumpHeightThisJump => ref Schema.GetRef<float>(this.Handle, "CCSPlayer_MovementServices", "m_flMaxJumpHeightThisJump");
|
||||
|
||||
// m_flMaxJumpHeightLastJump
|
||||
[SchemaMember("CCSPlayer_MovementServices", "m_flMaxJumpHeightLastJump")]
|
||||
public ref float MaxJumpHeightLastJump => ref Schema.GetRef<float>(this.Handle, "CCSPlayer_MovementServices", "m_flMaxJumpHeightLastJump");
|
||||
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CCSWeaponBaseVDataAPI : NativeObject
|
||||
{
|
||||
public CCSWeaponBaseVDataAPI (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
}
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CCSPointScriptEntity : CBaseEntity
|
||||
{
|
||||
public CCSPointScriptEntity (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CCSPointScriptExtensions_CCSWeaponBaseVData : NativeObject
|
||||
{
|
||||
public CCSPointScriptExtensions_CCSWeaponBaseVData (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CCSServerPointScriptEntity : CCSPointScriptEntity
|
||||
{
|
||||
public CCSServerPointScriptEntity (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
}
|
||||
@@ -22,10 +22,6 @@ public partial class CChicken : CDynamicProp
|
||||
[SchemaMember("CChicken", "m_AttributeManager")]
|
||||
public CAttributeContainer AttributeManager => Schema.GetDeclaredClass<CAttributeContainer>(this.Handle, "CChicken", "m_AttributeManager");
|
||||
|
||||
// m_sActivityFinishedTag
|
||||
[SchemaMember("CChicken", "m_sActivityFinishedTag")]
|
||||
public CUtlStringToken ActivityFinishedTag => Schema.GetDeclaredClass<CUtlStringToken>(this.Handle, "CChicken", "m_sActivityFinishedTag");
|
||||
|
||||
// m_updateTimer
|
||||
[SchemaMember("CChicken", "m_updateTimer")]
|
||||
public CountdownTimer UpdateTimer => Schema.GetDeclaredClass<CountdownTimer>(this.Handle, "CChicken", "m_updateTimer");
|
||||
@@ -50,13 +46,13 @@ public partial class CChicken : CDynamicProp
|
||||
[SchemaMember("CChicken", "m_vFallVelocity")]
|
||||
public Vector FallVelocity => Schema.GetDeclaredClass<Vector>(this.Handle, "CChicken", "m_vFallVelocity");
|
||||
|
||||
// m_desiredActivity
|
||||
[SchemaMember("CChicken", "m_desiredActivity")]
|
||||
public ref ChickenActivity DesiredActivity => ref Schema.GetRef<ChickenActivity>(this.Handle, "CChicken", "m_desiredActivity");
|
||||
|
||||
// m_currentActivity
|
||||
[SchemaMember("CChicken", "m_currentActivity")]
|
||||
public ref ChickenActivity CurrentActivity => ref Schema.GetRef<ChickenActivity>(this.Handle, "CChicken", "m_currentActivity");
|
||||
// m_desiredActivity
|
||||
[SchemaMember("CChicken", "m_desiredActivity")]
|
||||
public ref ChickenActivity DesiredActivity => ref Schema.GetRef<ChickenActivity>(this.Handle, "CChicken", "m_desiredActivity");
|
||||
|
||||
// m_currentActivity
|
||||
[SchemaMember("CChicken", "m_currentActivity")]
|
||||
public ref ChickenActivity CurrentActivity => ref Schema.GetRef<ChickenActivity>(this.Handle, "CChicken", "m_currentActivity");
|
||||
|
||||
// m_activityTimer
|
||||
[SchemaMember("CChicken", "m_activityTimer")]
|
||||
@@ -114,22 +110,10 @@ public partial class CChicken : CDynamicProp
|
||||
[SchemaMember("CChicken", "m_bInJump")]
|
||||
public ref bool InJump => ref Schema.GetRef<bool>(this.Handle, "CChicken", "m_bInJump");
|
||||
|
||||
// m_isWaitingForLeader
|
||||
[SchemaMember("CChicken", "m_isWaitingForLeader")]
|
||||
public ref bool IsWaitingForLeader => ref Schema.GetRef<bool>(this.Handle, "CChicken", "m_isWaitingForLeader");
|
||||
|
||||
// m_repathTimer
|
||||
[SchemaMember("CChicken", "m_repathTimer")]
|
||||
public CountdownTimer RepathTimer => Schema.GetDeclaredClass<CountdownTimer>(this.Handle, "CChicken", "m_repathTimer");
|
||||
|
||||
// m_inhibitDoorTimer
|
||||
[SchemaMember("CChicken", "m_inhibitDoorTimer")]
|
||||
public CountdownTimer InhibitDoorTimer => Schema.GetDeclaredClass<CountdownTimer>(this.Handle, "CChicken", "m_inhibitDoorTimer");
|
||||
|
||||
// m_inhibitObstacleAvoidanceTimer
|
||||
[SchemaMember("CChicken", "m_inhibitObstacleAvoidanceTimer")]
|
||||
public CountdownTimer InhibitObstacleAvoidanceTimer => Schema.GetDeclaredClass<CountdownTimer>(this.Handle, "CChicken", "m_inhibitObstacleAvoidanceTimer");
|
||||
|
||||
// m_vecPathGoal
|
||||
[SchemaMember("CChicken", "m_vecPathGoal")]
|
||||
public Vector PathGoal => Schema.GetDeclaredClass<Vector>(this.Handle, "CChicken", "m_vecPathGoal");
|
||||
@@ -142,14 +126,6 @@ public partial class CChicken : CDynamicProp
|
||||
[SchemaMember("CChicken", "m_followMinuteTimer")]
|
||||
public CountdownTimer FollowMinuteTimer => Schema.GetDeclaredClass<CountdownTimer>(this.Handle, "CChicken", "m_followMinuteTimer");
|
||||
|
||||
// m_vecLastEggPoopPosition
|
||||
[SchemaMember("CChicken", "m_vecLastEggPoopPosition")]
|
||||
public Vector LastEggPoopPosition => Schema.GetDeclaredClass<Vector>(this.Handle, "CChicken", "m_vecLastEggPoopPosition");
|
||||
|
||||
// m_vecEggsPooped
|
||||
[SchemaMember("CChicken", "m_vecEggsPooped")]
|
||||
public NetworkedVector<CHandle<CBaseEntity>> EggsPooped => Schema.GetDeclaredClass<NetworkedVector<CHandle<CBaseEntity>>>(this.Handle, "CChicken", "m_vecEggsPooped");
|
||||
|
||||
// m_BlockDirectionTimer
|
||||
[SchemaMember("CChicken", "m_BlockDirectionTimer")]
|
||||
public CountdownTimer BlockDirectionTimer => Schema.GetDeclaredClass<CountdownTimer>(this.Handle, "CChicken", "m_BlockDirectionTimer");
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CCitadelSoundOpvarSetOBB : CBaseEntity
|
||||
{
|
||||
public CCitadelSoundOpvarSetOBB (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_iszStackName
|
||||
[SchemaMember("CCitadelSoundOpvarSetOBB", "m_iszStackName")]
|
||||
public string StackName
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CCitadelSoundOpvarSetOBB", "m_iszStackName"); }
|
||||
set { Schema.SetString(this.Handle, "CCitadelSoundOpvarSetOBB", "m_iszStackName", value); }
|
||||
}
|
||||
|
||||
// m_iszOperatorName
|
||||
[SchemaMember("CCitadelSoundOpvarSetOBB", "m_iszOperatorName")]
|
||||
public string OperatorName
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CCitadelSoundOpvarSetOBB", "m_iszOperatorName"); }
|
||||
set { Schema.SetString(this.Handle, "CCitadelSoundOpvarSetOBB", "m_iszOperatorName", value); }
|
||||
}
|
||||
|
||||
// m_iszOpvarName
|
||||
[SchemaMember("CCitadelSoundOpvarSetOBB", "m_iszOpvarName")]
|
||||
public string OpvarName
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CCitadelSoundOpvarSetOBB", "m_iszOpvarName"); }
|
||||
set { Schema.SetString(this.Handle, "CCitadelSoundOpvarSetOBB", "m_iszOpvarName", value); }
|
||||
}
|
||||
|
||||
// m_vDistanceInnerMins
|
||||
[SchemaMember("CCitadelSoundOpvarSetOBB", "m_vDistanceInnerMins")]
|
||||
public Vector DistanceInnerMins => Schema.GetDeclaredClass<Vector>(this.Handle, "CCitadelSoundOpvarSetOBB", "m_vDistanceInnerMins");
|
||||
|
||||
// m_vDistanceInnerMaxs
|
||||
[SchemaMember("CCitadelSoundOpvarSetOBB", "m_vDistanceInnerMaxs")]
|
||||
public Vector DistanceInnerMaxs => Schema.GetDeclaredClass<Vector>(this.Handle, "CCitadelSoundOpvarSetOBB", "m_vDistanceInnerMaxs");
|
||||
|
||||
// m_vDistanceOuterMins
|
||||
[SchemaMember("CCitadelSoundOpvarSetOBB", "m_vDistanceOuterMins")]
|
||||
public Vector DistanceOuterMins => Schema.GetDeclaredClass<Vector>(this.Handle, "CCitadelSoundOpvarSetOBB", "m_vDistanceOuterMins");
|
||||
|
||||
// m_vDistanceOuterMaxs
|
||||
[SchemaMember("CCitadelSoundOpvarSetOBB", "m_vDistanceOuterMaxs")]
|
||||
public Vector DistanceOuterMaxs => Schema.GetDeclaredClass<Vector>(this.Handle, "CCitadelSoundOpvarSetOBB", "m_vDistanceOuterMaxs");
|
||||
|
||||
// m_nAABBDirection
|
||||
[SchemaMember("CCitadelSoundOpvarSetOBB", "m_nAABBDirection")]
|
||||
public ref Int32 AABBDirection => ref Schema.GetRef<Int32>(this.Handle, "CCitadelSoundOpvarSetOBB", "m_nAABBDirection");
|
||||
|
||||
}
|
||||
@@ -22,6 +22,10 @@ public partial class CDynamicProp : CBreakableProp
|
||||
[SchemaMember("CDynamicProp", "m_bCreateNavObstacle")]
|
||||
public ref bool CreateNavObstacle => ref Schema.GetRef<bool>(this.Handle, "CDynamicProp", "m_bCreateNavObstacle");
|
||||
|
||||
// m_bNavObstacleUpdatesOverridden
|
||||
[SchemaMember("CDynamicProp", "m_bNavObstacleUpdatesOverridden")]
|
||||
public ref bool NavObstacleUpdatesOverridden => ref Schema.GetRef<bool>(this.Handle, "CDynamicProp", "m_bNavObstacleUpdatesOverridden");
|
||||
|
||||
// m_bUseHitboxesForRenderBox
|
||||
[SchemaMember("CDynamicProp", "m_bUseHitboxesForRenderBox")]
|
||||
public ref bool UseHitboxesForRenderBox => ref Schema.GetRef<bool>(this.Handle, "CDynamicProp", "m_bUseHitboxesForRenderBox");
|
||||
|
||||
@@ -18,104 +18,104 @@ public partial class CEnvCombinedLightProbeVolume : CBaseEntity
|
||||
{
|
||||
public CEnvCombinedLightProbeVolume (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_Entity_Color
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_Color")]
|
||||
public Color Entity_Color
|
||||
// m_Entity_Color
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_Color")]
|
||||
public Color Entity_Color
|
||||
{
|
||||
get { return Schema.GetCustomMarshalledType<Color>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_Color"); }
|
||||
set { Schema.SetCustomMarshalledType<Color>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_Color", value); }
|
||||
get { return Schema.GetCustomMarshalledType<Color>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_Color"); }
|
||||
set { Schema.SetCustomMarshalledType<Color>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_Color", value); }
|
||||
}
|
||||
|
||||
// m_Entity_flBrightness
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_flBrightness")]
|
||||
public ref float Entity_flBrightness => ref Schema.GetRef<float>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_flBrightness");
|
||||
// m_Entity_flBrightness
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_flBrightness")]
|
||||
public ref float Entity_flBrightness => ref Schema.GetRef<float>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_flBrightness");
|
||||
|
||||
// m_Entity_hCubemapTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hCubemapTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hCubemapTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hCubemapTexture");
|
||||
// m_Entity_hCubemapTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hCubemapTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hCubemapTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hCubemapTexture");
|
||||
|
||||
// m_Entity_bCustomCubemapTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_bCustomCubemapTexture")]
|
||||
public ref bool Entity_bCustomCubemapTexture => ref Schema.GetRef<bool>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_bCustomCubemapTexture");
|
||||
// m_Entity_bCustomCubemapTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_bCustomCubemapTexture")]
|
||||
public ref bool Entity_bCustomCubemapTexture => ref Schema.GetRef<bool>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_bCustomCubemapTexture");
|
||||
|
||||
// m_Entity_hLightProbeTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeTexture");
|
||||
// m_Entity_hLightProbeTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeTexture");
|
||||
|
||||
// m_Entity_hLightProbeDirectLightIndicesTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightIndicesTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightIndicesTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightIndicesTexture");
|
||||
// m_Entity_hLightProbeDirectLightIndicesTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightIndicesTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightIndicesTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightIndicesTexture");
|
||||
|
||||
// m_Entity_hLightProbeDirectLightScalarsTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightScalarsTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightScalarsTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightScalarsTexture");
|
||||
// m_Entity_hLightProbeDirectLightScalarsTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightScalarsTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightScalarsTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightScalarsTexture");
|
||||
|
||||
// m_Entity_hLightProbeDirectLightShadowsTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightShadowsTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightShadowsTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightShadowsTexture");
|
||||
// m_Entity_hLightProbeDirectLightShadowsTexture
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightShadowsTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightShadowsTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_hLightProbeDirectLightShadowsTexture");
|
||||
|
||||
// m_Entity_vBoxMins
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_vBoxMins")]
|
||||
public Vector Entity_vBoxMins => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_vBoxMins");
|
||||
// m_Entity_vBoxMins
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_vBoxMins")]
|
||||
public Vector Entity_vBoxMins => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_vBoxMins");
|
||||
|
||||
// m_Entity_vBoxMaxs
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_vBoxMaxs")]
|
||||
public Vector Entity_vBoxMaxs => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_vBoxMaxs");
|
||||
// m_Entity_vBoxMaxs
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_vBoxMaxs")]
|
||||
public Vector Entity_vBoxMaxs => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_vBoxMaxs");
|
||||
|
||||
// m_Entity_bMoveable
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_bMoveable")]
|
||||
public ref bool Entity_bMoveable => ref Schema.GetRef<bool>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_bMoveable");
|
||||
// m_Entity_bMoveable
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_bMoveable")]
|
||||
public ref bool Entity_bMoveable => ref Schema.GetRef<bool>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_bMoveable");
|
||||
|
||||
// m_Entity_nHandshake
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nHandshake")]
|
||||
public ref Int32 Entity_nHandshake => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nHandshake");
|
||||
// m_Entity_nHandshake
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nHandshake")]
|
||||
public ref Int32 Entity_nHandshake => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nHandshake");
|
||||
|
||||
// m_Entity_nEnvCubeMapArrayIndex
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nEnvCubeMapArrayIndex")]
|
||||
public ref Int32 Entity_nEnvCubeMapArrayIndex => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nEnvCubeMapArrayIndex");
|
||||
// m_Entity_nEnvCubeMapArrayIndex
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nEnvCubeMapArrayIndex")]
|
||||
public ref Int32 Entity_nEnvCubeMapArrayIndex => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nEnvCubeMapArrayIndex");
|
||||
|
||||
// m_Entity_nPriority
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nPriority")]
|
||||
public ref Int32 Entity_nPriority => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nPriority");
|
||||
// m_Entity_nPriority
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nPriority")]
|
||||
public ref Int32 Entity_nPriority => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nPriority");
|
||||
|
||||
// m_Entity_bStartDisabled
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_bStartDisabled")]
|
||||
public ref bool Entity_bStartDisabled => ref Schema.GetRef<bool>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_bStartDisabled");
|
||||
// m_Entity_bStartDisabled
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_bStartDisabled")]
|
||||
public ref bool Entity_bStartDisabled => ref Schema.GetRef<bool>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_bStartDisabled");
|
||||
|
||||
// m_Entity_flEdgeFadeDist
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_flEdgeFadeDist")]
|
||||
public ref float Entity_flEdgeFadeDist => ref Schema.GetRef<float>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_flEdgeFadeDist");
|
||||
// m_Entity_flEdgeFadeDist
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_flEdgeFadeDist")]
|
||||
public ref float Entity_flEdgeFadeDist => ref Schema.GetRef<float>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_flEdgeFadeDist");
|
||||
|
||||
// m_Entity_vEdgeFadeDists
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_vEdgeFadeDists")]
|
||||
public Vector Entity_vEdgeFadeDists => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_vEdgeFadeDists");
|
||||
// m_Entity_vEdgeFadeDists
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_vEdgeFadeDists")]
|
||||
public Vector Entity_vEdgeFadeDists => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_vEdgeFadeDists");
|
||||
|
||||
// m_Entity_nLightProbeSizeX
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeX")]
|
||||
public ref Int32 Entity_nLightProbeSizeX => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeX");
|
||||
// m_Entity_nLightProbeSizeX
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeX")]
|
||||
public ref Int32 Entity_nLightProbeSizeX => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeX");
|
||||
|
||||
// m_Entity_nLightProbeSizeY
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeY")]
|
||||
public ref Int32 Entity_nLightProbeSizeY => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeY");
|
||||
// m_Entity_nLightProbeSizeY
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeY")]
|
||||
public ref Int32 Entity_nLightProbeSizeY => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeY");
|
||||
|
||||
// m_Entity_nLightProbeSizeZ
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeZ")]
|
||||
public ref Int32 Entity_nLightProbeSizeZ => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeZ");
|
||||
// m_Entity_nLightProbeSizeZ
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeZ")]
|
||||
public ref Int32 Entity_nLightProbeSizeZ => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeSizeZ");
|
||||
|
||||
// m_Entity_nLightProbeAtlasX
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasX")]
|
||||
public ref Int32 Entity_nLightProbeAtlasX => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasX");
|
||||
// m_Entity_nLightProbeAtlasX
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasX")]
|
||||
public ref Int32 Entity_nLightProbeAtlasX => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasX");
|
||||
|
||||
// m_Entity_nLightProbeAtlasY
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasY")]
|
||||
public ref Int32 Entity_nLightProbeAtlasY => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasY");
|
||||
// m_Entity_nLightProbeAtlasY
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasY")]
|
||||
public ref Int32 Entity_nLightProbeAtlasY => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasY");
|
||||
|
||||
// m_Entity_nLightProbeAtlasZ
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasZ")]
|
||||
public ref Int32 Entity_nLightProbeAtlasZ => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasZ");
|
||||
// m_Entity_nLightProbeAtlasZ
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasZ")]
|
||||
public ref Int32 Entity_nLightProbeAtlasZ => ref Schema.GetRef<Int32>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_nLightProbeAtlasZ");
|
||||
|
||||
// m_Entity_bEnabled
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_bEnabled")]
|
||||
public ref bool Entity_bEnabled => ref Schema.GetRef<bool>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_bEnabled");
|
||||
// m_Entity_bEnabled
|
||||
[SchemaMember("CEnvCombinedLightProbeVolume", "m_Entity_bEnabled")]
|
||||
public ref bool Entity_bEnabled => ref Schema.GetRef<bool>(this.Handle, "CEnvCombinedLightProbeVolume", "m_Entity_bEnabled");
|
||||
|
||||
}
|
||||
|
||||
@@ -18,76 +18,76 @@ public partial class CEnvCubemap : CBaseEntity
|
||||
{
|
||||
public CEnvCubemap (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_Entity_hCubemapTexture
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_hCubemapTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hCubemapTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCubemap", "m_Entity_hCubemapTexture");
|
||||
// m_Entity_hCubemapTexture
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_hCubemapTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hCubemapTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvCubemap", "m_Entity_hCubemapTexture");
|
||||
|
||||
// m_Entity_bCustomCubemapTexture
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bCustomCubemapTexture")]
|
||||
public ref bool Entity_bCustomCubemapTexture => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bCustomCubemapTexture");
|
||||
// m_Entity_bCustomCubemapTexture
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bCustomCubemapTexture")]
|
||||
public ref bool Entity_bCustomCubemapTexture => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bCustomCubemapTexture");
|
||||
|
||||
// m_Entity_flInfluenceRadius
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_flInfluenceRadius")]
|
||||
public ref float Entity_flInfluenceRadius => ref Schema.GetRef<float>(this.Handle, "CEnvCubemap", "m_Entity_flInfluenceRadius");
|
||||
// m_Entity_flInfluenceRadius
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_flInfluenceRadius")]
|
||||
public ref float Entity_flInfluenceRadius => ref Schema.GetRef<float>(this.Handle, "CEnvCubemap", "m_Entity_flInfluenceRadius");
|
||||
|
||||
// m_Entity_vBoxProjectMins
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_vBoxProjectMins")]
|
||||
public Vector Entity_vBoxProjectMins => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCubemap", "m_Entity_vBoxProjectMins");
|
||||
// m_Entity_vBoxProjectMins
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_vBoxProjectMins")]
|
||||
public Vector Entity_vBoxProjectMins => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCubemap", "m_Entity_vBoxProjectMins");
|
||||
|
||||
// m_Entity_vBoxProjectMaxs
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_vBoxProjectMaxs")]
|
||||
public Vector Entity_vBoxProjectMaxs => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCubemap", "m_Entity_vBoxProjectMaxs");
|
||||
// m_Entity_vBoxProjectMaxs
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_vBoxProjectMaxs")]
|
||||
public Vector Entity_vBoxProjectMaxs => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCubemap", "m_Entity_vBoxProjectMaxs");
|
||||
|
||||
// m_Entity_bMoveable
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bMoveable")]
|
||||
public ref bool Entity_bMoveable => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bMoveable");
|
||||
// m_Entity_bMoveable
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bMoveable")]
|
||||
public ref bool Entity_bMoveable => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bMoveable");
|
||||
|
||||
// m_Entity_nHandshake
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_nHandshake")]
|
||||
public ref Int32 Entity_nHandshake => ref Schema.GetRef<Int32>(this.Handle, "CEnvCubemap", "m_Entity_nHandshake");
|
||||
// m_Entity_nHandshake
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_nHandshake")]
|
||||
public ref Int32 Entity_nHandshake => ref Schema.GetRef<Int32>(this.Handle, "CEnvCubemap", "m_Entity_nHandshake");
|
||||
|
||||
// m_Entity_nEnvCubeMapArrayIndex
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_nEnvCubeMapArrayIndex")]
|
||||
public ref Int32 Entity_nEnvCubeMapArrayIndex => ref Schema.GetRef<Int32>(this.Handle, "CEnvCubemap", "m_Entity_nEnvCubeMapArrayIndex");
|
||||
// m_Entity_nEnvCubeMapArrayIndex
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_nEnvCubeMapArrayIndex")]
|
||||
public ref Int32 Entity_nEnvCubeMapArrayIndex => ref Schema.GetRef<Int32>(this.Handle, "CEnvCubemap", "m_Entity_nEnvCubeMapArrayIndex");
|
||||
|
||||
// m_Entity_nPriority
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_nPriority")]
|
||||
public ref Int32 Entity_nPriority => ref Schema.GetRef<Int32>(this.Handle, "CEnvCubemap", "m_Entity_nPriority");
|
||||
// m_Entity_nPriority
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_nPriority")]
|
||||
public ref Int32 Entity_nPriority => ref Schema.GetRef<Int32>(this.Handle, "CEnvCubemap", "m_Entity_nPriority");
|
||||
|
||||
// m_Entity_flEdgeFadeDist
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_flEdgeFadeDist")]
|
||||
public ref float Entity_flEdgeFadeDist => ref Schema.GetRef<float>(this.Handle, "CEnvCubemap", "m_Entity_flEdgeFadeDist");
|
||||
// m_Entity_flEdgeFadeDist
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_flEdgeFadeDist")]
|
||||
public ref float Entity_flEdgeFadeDist => ref Schema.GetRef<float>(this.Handle, "CEnvCubemap", "m_Entity_flEdgeFadeDist");
|
||||
|
||||
// m_Entity_vEdgeFadeDists
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_vEdgeFadeDists")]
|
||||
public Vector Entity_vEdgeFadeDists => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCubemap", "m_Entity_vEdgeFadeDists");
|
||||
// m_Entity_vEdgeFadeDists
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_vEdgeFadeDists")]
|
||||
public Vector Entity_vEdgeFadeDists => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvCubemap", "m_Entity_vEdgeFadeDists");
|
||||
|
||||
// m_Entity_flDiffuseScale
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_flDiffuseScale")]
|
||||
public ref float Entity_flDiffuseScale => ref Schema.GetRef<float>(this.Handle, "CEnvCubemap", "m_Entity_flDiffuseScale");
|
||||
// m_Entity_flDiffuseScale
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_flDiffuseScale")]
|
||||
public ref float Entity_flDiffuseScale => ref Schema.GetRef<float>(this.Handle, "CEnvCubemap", "m_Entity_flDiffuseScale");
|
||||
|
||||
// m_Entity_bStartDisabled
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bStartDisabled")]
|
||||
public ref bool Entity_bStartDisabled => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bStartDisabled");
|
||||
// m_Entity_bStartDisabled
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bStartDisabled")]
|
||||
public ref bool Entity_bStartDisabled => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bStartDisabled");
|
||||
|
||||
// m_Entity_bDefaultEnvMap
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bDefaultEnvMap")]
|
||||
public ref bool Entity_bDefaultEnvMap => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bDefaultEnvMap");
|
||||
// m_Entity_bDefaultEnvMap
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bDefaultEnvMap")]
|
||||
public ref bool Entity_bDefaultEnvMap => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bDefaultEnvMap");
|
||||
|
||||
// m_Entity_bDefaultSpecEnvMap
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bDefaultSpecEnvMap")]
|
||||
public ref bool Entity_bDefaultSpecEnvMap => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bDefaultSpecEnvMap");
|
||||
// m_Entity_bDefaultSpecEnvMap
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bDefaultSpecEnvMap")]
|
||||
public ref bool Entity_bDefaultSpecEnvMap => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bDefaultSpecEnvMap");
|
||||
|
||||
// m_Entity_bIndoorCubeMap
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bIndoorCubeMap")]
|
||||
public ref bool Entity_bIndoorCubeMap => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bIndoorCubeMap");
|
||||
// m_Entity_bIndoorCubeMap
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bIndoorCubeMap")]
|
||||
public ref bool Entity_bIndoorCubeMap => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bIndoorCubeMap");
|
||||
|
||||
// m_Entity_bCopyDiffuseFromDefaultCubemap
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bCopyDiffuseFromDefaultCubemap")]
|
||||
public ref bool Entity_bCopyDiffuseFromDefaultCubemap => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bCopyDiffuseFromDefaultCubemap");
|
||||
// m_Entity_bCopyDiffuseFromDefaultCubemap
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bCopyDiffuseFromDefaultCubemap")]
|
||||
public ref bool Entity_bCopyDiffuseFromDefaultCubemap => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bCopyDiffuseFromDefaultCubemap");
|
||||
|
||||
// m_Entity_bEnabled
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bEnabled")]
|
||||
public ref bool Entity_bEnabled => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bEnabled");
|
||||
// m_Entity_bEnabled
|
||||
[SchemaMember("CEnvCubemap", "m_Entity_bEnabled")]
|
||||
public ref bool Entity_bEnabled => ref Schema.GetRef<bool>(this.Handle, "CEnvCubemap", "m_Entity_bEnabled");
|
||||
|
||||
}
|
||||
|
||||
@@ -48,7 +48,11 @@ public partial class CEnvExplosion : CModelPointEntity
|
||||
|
||||
// m_iCustomDamageType
|
||||
[SchemaMember("CEnvExplosion", "m_iCustomDamageType")]
|
||||
public ref Int32 CustomDamageType => ref Schema.GetRef<Int32>(this.Handle, "CEnvExplosion", "m_iCustomDamageType");
|
||||
public ref DamageTypes_t CustomDamageType => ref Schema.GetRef<DamageTypes_t>(this.Handle, "CEnvExplosion", "m_iCustomDamageType");
|
||||
|
||||
// m_bCreateDebris
|
||||
[SchemaMember("CEnvExplosion", "m_bCreateDebris")]
|
||||
public ref bool CreateDebris => ref Schema.GetRef<bool>(this.Handle, "CEnvExplosion", "m_bCreateDebris");
|
||||
|
||||
// m_iszExplosionType
|
||||
[SchemaMember("CEnvExplosion", "m_iszExplosionType")]
|
||||
|
||||
@@ -18,72 +18,72 @@ public partial class CEnvLightProbeVolume : CBaseEntity
|
||||
{
|
||||
public CEnvLightProbeVolume (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_Entity_hLightProbeTexture
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_hLightProbeTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvLightProbeVolume", "m_Entity_hLightProbeTexture");
|
||||
// m_Entity_hLightProbeTexture
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_hLightProbeTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvLightProbeVolume", "m_Entity_hLightProbeTexture");
|
||||
|
||||
// m_Entity_hLightProbeDirectLightIndicesTexture
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightIndicesTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightIndicesTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightIndicesTexture");
|
||||
// m_Entity_hLightProbeDirectLightIndicesTexture
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightIndicesTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightIndicesTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightIndicesTexture");
|
||||
|
||||
// m_Entity_hLightProbeDirectLightScalarsTexture
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightScalarsTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightScalarsTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightScalarsTexture");
|
||||
// m_Entity_hLightProbeDirectLightScalarsTexture
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightScalarsTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightScalarsTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightScalarsTexture");
|
||||
|
||||
// m_Entity_hLightProbeDirectLightShadowsTexture
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightShadowsTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightShadowsTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightShadowsTexture");
|
||||
// m_Entity_hLightProbeDirectLightShadowsTexture
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightShadowsTexture")]
|
||||
public CStrongHandle<InfoForResourceTypeCTextureBase> Entity_hLightProbeDirectLightShadowsTexture => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeCTextureBase>>(this.Handle, "CEnvLightProbeVolume", "m_Entity_hLightProbeDirectLightShadowsTexture");
|
||||
|
||||
// m_Entity_vBoxMins
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_vBoxMins")]
|
||||
public Vector Entity_vBoxMins => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvLightProbeVolume", "m_Entity_vBoxMins");
|
||||
// m_Entity_vBoxMins
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_vBoxMins")]
|
||||
public Vector Entity_vBoxMins => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvLightProbeVolume", "m_Entity_vBoxMins");
|
||||
|
||||
// m_Entity_vBoxMaxs
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_vBoxMaxs")]
|
||||
public Vector Entity_vBoxMaxs => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvLightProbeVolume", "m_Entity_vBoxMaxs");
|
||||
// m_Entity_vBoxMaxs
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_vBoxMaxs")]
|
||||
public Vector Entity_vBoxMaxs => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvLightProbeVolume", "m_Entity_vBoxMaxs");
|
||||
|
||||
// m_Entity_bMoveable
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_bMoveable")]
|
||||
public ref bool Entity_bMoveable => ref Schema.GetRef<bool>(this.Handle, "CEnvLightProbeVolume", "m_Entity_bMoveable");
|
||||
// m_Entity_bMoveable
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_bMoveable")]
|
||||
public ref bool Entity_bMoveable => ref Schema.GetRef<bool>(this.Handle, "CEnvLightProbeVolume", "m_Entity_bMoveable");
|
||||
|
||||
// m_Entity_nHandshake
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nHandshake")]
|
||||
public ref Int32 Entity_nHandshake => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nHandshake");
|
||||
// m_Entity_nHandshake
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nHandshake")]
|
||||
public ref Int32 Entity_nHandshake => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nHandshake");
|
||||
|
||||
// m_Entity_nPriority
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nPriority")]
|
||||
public ref Int32 Entity_nPriority => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nPriority");
|
||||
// m_Entity_nPriority
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nPriority")]
|
||||
public ref Int32 Entity_nPriority => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nPriority");
|
||||
|
||||
// m_Entity_bStartDisabled
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_bStartDisabled")]
|
||||
public ref bool Entity_bStartDisabled => ref Schema.GetRef<bool>(this.Handle, "CEnvLightProbeVolume", "m_Entity_bStartDisabled");
|
||||
// m_Entity_bStartDisabled
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_bStartDisabled")]
|
||||
public ref bool Entity_bStartDisabled => ref Schema.GetRef<bool>(this.Handle, "CEnvLightProbeVolume", "m_Entity_bStartDisabled");
|
||||
|
||||
// m_Entity_nLightProbeSizeX
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeSizeX")]
|
||||
public ref Int32 Entity_nLightProbeSizeX => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeSizeX");
|
||||
// m_Entity_nLightProbeSizeX
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeSizeX")]
|
||||
public ref Int32 Entity_nLightProbeSizeX => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeSizeX");
|
||||
|
||||
// m_Entity_nLightProbeSizeY
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeSizeY")]
|
||||
public ref Int32 Entity_nLightProbeSizeY => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeSizeY");
|
||||
// m_Entity_nLightProbeSizeY
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeSizeY")]
|
||||
public ref Int32 Entity_nLightProbeSizeY => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeSizeY");
|
||||
|
||||
// m_Entity_nLightProbeSizeZ
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeSizeZ")]
|
||||
public ref Int32 Entity_nLightProbeSizeZ => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeSizeZ");
|
||||
// m_Entity_nLightProbeSizeZ
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeSizeZ")]
|
||||
public ref Int32 Entity_nLightProbeSizeZ => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeSizeZ");
|
||||
|
||||
// m_Entity_nLightProbeAtlasX
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasX")]
|
||||
public ref Int32 Entity_nLightProbeAtlasX => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasX");
|
||||
// m_Entity_nLightProbeAtlasX
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasX")]
|
||||
public ref Int32 Entity_nLightProbeAtlasX => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasX");
|
||||
|
||||
// m_Entity_nLightProbeAtlasY
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasY")]
|
||||
public ref Int32 Entity_nLightProbeAtlasY => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasY");
|
||||
// m_Entity_nLightProbeAtlasY
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasY")]
|
||||
public ref Int32 Entity_nLightProbeAtlasY => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasY");
|
||||
|
||||
// m_Entity_nLightProbeAtlasZ
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasZ")]
|
||||
public ref Int32 Entity_nLightProbeAtlasZ => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasZ");
|
||||
// m_Entity_nLightProbeAtlasZ
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasZ")]
|
||||
public ref Int32 Entity_nLightProbeAtlasZ => ref Schema.GetRef<Int32>(this.Handle, "CEnvLightProbeVolume", "m_Entity_nLightProbeAtlasZ");
|
||||
|
||||
// m_Entity_bEnabled
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_bEnabled")]
|
||||
public ref bool Entity_bEnabled => ref Schema.GetRef<bool>(this.Handle, "CEnvLightProbeVolume", "m_Entity_bEnabled");
|
||||
// m_Entity_bEnabled
|
||||
[SchemaMember("CEnvLightProbeVolume", "m_Entity_bEnabled")]
|
||||
public ref bool Entity_bEnabled => ref Schema.GetRef<bool>(this.Handle, "CEnvLightProbeVolume", "m_Entity_bEnabled");
|
||||
|
||||
}
|
||||
|
||||
@@ -26,13 +26,13 @@ public partial class CEnvMicrophone : CPointEntity
|
||||
[SchemaMember("CEnvMicrophone", "m_hMeasureTarget")]
|
||||
public CHandle<CBaseEntity> MeasureTarget => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CEnvMicrophone", "m_hMeasureTarget");
|
||||
|
||||
// m_nSoundType
|
||||
[SchemaMember("CEnvMicrophone", "m_nSoundType")]
|
||||
public ref SoundTypes_t SoundType => ref Schema.GetRef<SoundTypes_t>(this.Handle, "CEnvMicrophone", "m_nSoundType");
|
||||
|
||||
// m_nSoundFlags
|
||||
[SchemaMember("CEnvMicrophone", "m_nSoundFlags")]
|
||||
public ref SoundFlags_t SoundFlags => ref Schema.GetRef<SoundFlags_t>(this.Handle, "CEnvMicrophone", "m_nSoundFlags");
|
||||
// m_nSoundType
|
||||
[SchemaMember("CEnvMicrophone", "m_nSoundType")]
|
||||
public ref SoundTypes_t SoundType => ref Schema.GetRef<SoundTypes_t>(this.Handle, "CEnvMicrophone", "m_nSoundType");
|
||||
|
||||
// m_nSoundFlags
|
||||
[SchemaMember("CEnvMicrophone", "m_nSoundFlags")]
|
||||
public ref SoundFlags_t SoundFlags => ref Schema.GetRef<SoundFlags_t>(this.Handle, "CEnvMicrophone", "m_nSoundFlags");
|
||||
|
||||
// m_flSensitivity
|
||||
[SchemaMember("CEnvMicrophone", "m_flSensitivity")]
|
||||
|
||||
@@ -46,6 +46,14 @@ public partial class CEnvVolumetricFogController : CBaseEntity
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_flIndirectStrength")]
|
||||
public ref float IndirectStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogController", "m_flIndirectStrength");
|
||||
|
||||
// m_nVolumeDepth
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_nVolumeDepth")]
|
||||
public ref Int32 VolumeDepth => ref Schema.GetRef<Int32>(this.Handle, "CEnvVolumetricFogController", "m_nVolumeDepth");
|
||||
|
||||
// m_fFirstVolumeSliceThickness
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_fFirstVolumeSliceThickness")]
|
||||
public ref float FirstVolumeSliceThickness => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogController", "m_fFirstVolumeSliceThickness");
|
||||
|
||||
// m_nIndirectTextureDimX
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_nIndirectTextureDimX")]
|
||||
public ref Int32 IndirectTextureDimX => ref Schema.GetRef<Int32>(this.Handle, "CEnvVolumetricFogController", "m_nIndirectTextureDimX");
|
||||
@@ -114,10 +122,10 @@ public partial class CEnvVolumetricFogController : CBaseEntity
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_bEnableIndirect")]
|
||||
public ref bool EnableIndirect => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogController", "m_bEnableIndirect");
|
||||
|
||||
// m_bIndirectUseLPVs
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_bIndirectUseLPVs")]
|
||||
public ref bool IndirectUseLPVs => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogController", "m_bIndirectUseLPVs");
|
||||
|
||||
// m_bIndirectUseLPVs
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_bIndirectUseLPVs")]
|
||||
public ref bool IndirectUseLPVs => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogController", "m_bIndirectUseLPVs");
|
||||
|
||||
// m_bIsMaster
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_bIsMaster")]
|
||||
public ref bool IsMaster => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogController", "m_bIsMaster");
|
||||
@@ -130,18 +138,18 @@ public partial class CEnvVolumetricFogController : CBaseEntity
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_nForceRefreshCount")]
|
||||
public ref Int32 ForceRefreshCount => ref Schema.GetRef<Int32>(this.Handle, "CEnvVolumetricFogController", "m_nForceRefreshCount");
|
||||
|
||||
// m_fNoiseSpeed
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_fNoiseSpeed")]
|
||||
public ref float NoiseSpeed => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogController", "m_fNoiseSpeed");
|
||||
|
||||
// m_fNoiseStrength
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_fNoiseStrength")]
|
||||
public ref float NoiseStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogController", "m_fNoiseStrength");
|
||||
|
||||
// m_vNoiseScale
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_vNoiseScale")]
|
||||
public Vector NoiseScale => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvVolumetricFogController", "m_vNoiseScale");
|
||||
|
||||
// m_fNoiseSpeed
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_fNoiseSpeed")]
|
||||
public ref float NoiseSpeed => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogController", "m_fNoiseSpeed");
|
||||
|
||||
// m_fNoiseStrength
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_fNoiseStrength")]
|
||||
public ref float NoiseStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogController", "m_fNoiseStrength");
|
||||
|
||||
// m_vNoiseScale
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_vNoiseScale")]
|
||||
public Vector NoiseScale => Schema.GetDeclaredClass<Vector>(this.Handle, "CEnvVolumetricFogController", "m_vNoiseScale");
|
||||
|
||||
// m_bFirstTime
|
||||
[SchemaMember("CEnvVolumetricFogController", "m_bFirstTime")]
|
||||
public ref bool FirstTime => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogController", "m_bFirstTime");
|
||||
|
||||
@@ -46,36 +46,40 @@ public partial class CEnvVolumetricFogVolume : CBaseEntity
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_flFalloffExponent")]
|
||||
public ref float FalloffExponent => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_flFalloffExponent");
|
||||
|
||||
// m_flHeightFogDepth
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_flHeightFogDepth")]
|
||||
public ref float HeightFogDepth => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_flHeightFogDepth");
|
||||
|
||||
// m_fHeightFogEdgeWidth
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_fHeightFogEdgeWidth")]
|
||||
public ref float HeightFogEdgeWidth => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_fHeightFogEdgeWidth");
|
||||
|
||||
// m_fIndirectLightStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_fIndirectLightStrength")]
|
||||
public ref float IndirectLightStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_fIndirectLightStrength");
|
||||
|
||||
// m_fSunLightStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_fSunLightStrength")]
|
||||
public ref float SunLightStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_fSunLightStrength");
|
||||
|
||||
// m_fNoiseStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_fNoiseStrength")]
|
||||
public ref float NoiseStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_fNoiseStrength");
|
||||
|
||||
// m_bOverrideIndirectLightStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_bOverrideIndirectLightStrength")]
|
||||
public ref bool OverrideIndirectLightStrength => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogVolume", "m_bOverrideIndirectLightStrength");
|
||||
|
||||
// m_bOverrideSunLightStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_bOverrideSunLightStrength")]
|
||||
public ref bool OverrideSunLightStrength => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogVolume", "m_bOverrideSunLightStrength");
|
||||
|
||||
// m_bOverrideNoiseStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_bOverrideNoiseStrength")]
|
||||
public ref bool OverrideNoiseStrength => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogVolume", "m_bOverrideNoiseStrength");
|
||||
|
||||
// m_flHeightFogDepth
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_flHeightFogDepth")]
|
||||
public ref float HeightFogDepth => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_flHeightFogDepth");
|
||||
|
||||
// m_fHeightFogEdgeWidth
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_fHeightFogEdgeWidth")]
|
||||
public ref float HeightFogEdgeWidth => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_fHeightFogEdgeWidth");
|
||||
|
||||
// m_fIndirectLightStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_fIndirectLightStrength")]
|
||||
public ref float IndirectLightStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_fIndirectLightStrength");
|
||||
|
||||
// m_fSunLightStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_fSunLightStrength")]
|
||||
public ref float SunLightStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_fSunLightStrength");
|
||||
|
||||
// m_fNoiseStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_fNoiseStrength")]
|
||||
public ref float NoiseStrength => ref Schema.GetRef<float>(this.Handle, "CEnvVolumetricFogVolume", "m_fNoiseStrength");
|
||||
|
||||
// m_bOverrideIndirectLightStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_bOverrideIndirectLightStrength")]
|
||||
public ref bool OverrideIndirectLightStrength => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogVolume", "m_bOverrideIndirectLightStrength");
|
||||
|
||||
// m_bOverrideSunLightStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_bOverrideSunLightStrength")]
|
||||
public ref bool OverrideSunLightStrength => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogVolume", "m_bOverrideSunLightStrength");
|
||||
|
||||
// m_bOverrideNoiseStrength
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_bOverrideNoiseStrength")]
|
||||
public ref bool OverrideNoiseStrength => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogVolume", "m_bOverrideNoiseStrength");
|
||||
|
||||
// m_bAllowLPVIndirect
|
||||
[SchemaMember("CEnvVolumetricFogVolume", "m_bAllowLPVIndirect")]
|
||||
public ref bool AllowLPVIndirect => ref Schema.GetRef<bool>(this.Handle, "CEnvVolumetricFogVolume", "m_bAllowLPVIndirect");
|
||||
|
||||
}
|
||||
|
||||
@@ -138,8 +138,8 @@ public partial class CEnvWindShared : NativeObject
|
||||
[SchemaMember("CEnvWindShared", "m_flWindSpeedVariation")]
|
||||
public ref float WindSpeedVariation => ref Schema.GetRef<float>(this.Handle, "CEnvWindShared", "m_flWindSpeedVariation");
|
||||
|
||||
// m_iEntIndex
|
||||
[SchemaMember("CEnvWindShared", "m_iEntIndex")]
|
||||
public CEntityIndex EntIndex => Schema.GetDeclaredClass<CEntityIndex>(this.Handle, "CEnvWindShared", "m_iEntIndex");
|
||||
// m_hEntOwner
|
||||
[SchemaMember("CEnvWindShared", "m_hEntOwner")]
|
||||
public CHandle<CBaseEntity> EntOwner => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CEnvWindShared", "m_hEntOwner");
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CFuncMover : CBaseModelEntity
|
||||
{
|
||||
public CFuncMover (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_bCreateMovableNavMesh
|
||||
[SchemaMember("CFuncMover", "m_bCreateMovableNavMesh")]
|
||||
public ref bool CreateMovableNavMesh => ref Schema.GetRef<bool>(this.Handle, "CFuncMover", "m_bCreateMovableNavMesh");
|
||||
|
||||
// m_iszPathName
|
||||
[SchemaMember("CFuncMover", "m_iszPathName")]
|
||||
public string PathName
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszPathName"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszPathName", value); }
|
||||
}
|
||||
|
||||
// m_hPathMover
|
||||
[SchemaMember("CFuncMover", "m_hPathMover")]
|
||||
public CHandle<CPathMover> PathMover => Schema.GetDeclaredClass<CHandle<CPathMover>>(this.Handle, "CFuncMover", "m_hPathMover");
|
||||
|
||||
// m_iszPathNodeStart
|
||||
[SchemaMember("CFuncMover", "m_iszPathNodeStart")]
|
||||
public string PathNodeStart
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszPathNodeStart"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszPathNodeStart", value); }
|
||||
}
|
||||
|
||||
// m_eMoveType
|
||||
[SchemaMember("CFuncMover", "m_eMoveType")]
|
||||
public ref CFuncMoverMove_t MoveType => ref Schema.GetRef<CFuncMoverMove_t>(this.Handle, "CFuncMover", "m_eMoveType");
|
||||
|
||||
// m_bIsReversing
|
||||
[SchemaMember("CFuncMover", "m_bIsReversing")]
|
||||
public ref bool IsReversing => ref Schema.GetRef<bool>(this.Handle, "CFuncMover", "m_bIsReversing");
|
||||
|
||||
// m_vTarget
|
||||
[SchemaMember("CFuncMover", "m_vTarget")]
|
||||
public Vector Target => Schema.GetDeclaredClass<Vector>(this.Handle, "CFuncMover", "m_vTarget");
|
||||
|
||||
// m_flStartSpeed
|
||||
[SchemaMember("CFuncMover", "m_flStartSpeed")]
|
||||
public ref float StartSpeed => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flStartSpeed");
|
||||
|
||||
// m_flPathLocation
|
||||
[SchemaMember("CFuncMover", "m_flPathLocation")]
|
||||
public ref float PathLocation => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flPathLocation");
|
||||
|
||||
// m_flT
|
||||
[SchemaMember("CFuncMover", "m_flT")]
|
||||
public ref float T => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flT");
|
||||
|
||||
// m_nCurrentNodeIndex
|
||||
[SchemaMember("CFuncMover", "m_nCurrentNodeIndex")]
|
||||
public ref Int32 CurrentNodeIndex => ref Schema.GetRef<Int32>(this.Handle, "CFuncMover", "m_nCurrentNodeIndex");
|
||||
|
||||
// m_nPreviousNodeIndex
|
||||
[SchemaMember("CFuncMover", "m_nPreviousNodeIndex")]
|
||||
public ref Int32 PreviousNodeIndex => ref Schema.GetRef<Int32>(this.Handle, "CFuncMover", "m_nPreviousNodeIndex");
|
||||
|
||||
// m_bFixedOrientation
|
||||
[SchemaMember("CFuncMover", "m_bFixedOrientation")]
|
||||
public ref bool FixedOrientation => ref Schema.GetRef<bool>(this.Handle, "CFuncMover", "m_bFixedOrientation");
|
||||
|
||||
// m_bFixedPitch
|
||||
[SchemaMember("CFuncMover", "m_bFixedPitch")]
|
||||
public ref bool FixedPitch => ref Schema.GetRef<bool>(this.Handle, "CFuncMover", "m_bFixedPitch");
|
||||
|
||||
// m_eSolidType
|
||||
[SchemaMember("CFuncMover", "m_eSolidType")]
|
||||
public ref SolidType_t SolidType => ref Schema.GetRef<SolidType_t>(this.Handle, "CFuncMover", "m_eSolidType");
|
||||
|
||||
// m_bIsMoving
|
||||
[SchemaMember("CFuncMover", "m_bIsMoving")]
|
||||
public ref bool IsMoving => ref Schema.GetRef<bool>(this.Handle, "CFuncMover", "m_bIsMoving");
|
||||
|
||||
// m_flTimeToReachMaxSpeed
|
||||
[SchemaMember("CFuncMover", "m_flTimeToReachMaxSpeed")]
|
||||
public ref float TimeToReachMaxSpeed => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flTimeToReachMaxSpeed");
|
||||
|
||||
// m_flDistanceToReachMaxSpeed
|
||||
[SchemaMember("CFuncMover", "m_flDistanceToReachMaxSpeed")]
|
||||
public ref float DistanceToReachMaxSpeed => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flDistanceToReachMaxSpeed");
|
||||
|
||||
// m_flTimeToReachZeroSpeed
|
||||
[SchemaMember("CFuncMover", "m_flTimeToReachZeroSpeed")]
|
||||
public ref float TimeToReachZeroSpeed => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flTimeToReachZeroSpeed");
|
||||
|
||||
// m_flDistanceToReachZeroSpeed
|
||||
[SchemaMember("CFuncMover", "m_flDistanceToReachZeroSpeed")]
|
||||
public ref float DistanceToReachZeroSpeed => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flDistanceToReachZeroSpeed");
|
||||
|
||||
// m_flTimeMovementStart
|
||||
[SchemaMember("CFuncMover", "m_flTimeMovementStart")]
|
||||
public ref float TimeMovementStart => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flTimeMovementStart");
|
||||
|
||||
// m_flTimeMovementStop
|
||||
[SchemaMember("CFuncMover", "m_flTimeMovementStop")]
|
||||
public ref float TimeMovementStop => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flTimeMovementStop");
|
||||
|
||||
// m_hStopAtNode
|
||||
[SchemaMember("CFuncMover", "m_hStopAtNode")]
|
||||
public CHandle<CMoverPathNode> StopAtNode => Schema.GetDeclaredClass<CHandle<CMoverPathNode>>(this.Handle, "CFuncMover", "m_hStopAtNode");
|
||||
|
||||
// m_flPathLocationToBeginStop
|
||||
[SchemaMember("CFuncMover", "m_flPathLocationToBeginStop")]
|
||||
public ref float PathLocationToBeginStop => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flPathLocationToBeginStop");
|
||||
|
||||
// m_iszStartForwardSound
|
||||
[SchemaMember("CFuncMover", "m_iszStartForwardSound")]
|
||||
public string StartForwardSound
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszStartForwardSound"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszStartForwardSound", value); }
|
||||
}
|
||||
|
||||
// m_iszLoopForwardSound
|
||||
[SchemaMember("CFuncMover", "m_iszLoopForwardSound")]
|
||||
public string LoopForwardSound
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszLoopForwardSound"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszLoopForwardSound", value); }
|
||||
}
|
||||
|
||||
// m_iszStopForwardSound
|
||||
[SchemaMember("CFuncMover", "m_iszStopForwardSound")]
|
||||
public string StopForwardSound
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszStopForwardSound"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszStopForwardSound", value); }
|
||||
}
|
||||
|
||||
// m_iszStartReverseSound
|
||||
[SchemaMember("CFuncMover", "m_iszStartReverseSound")]
|
||||
public string StartReverseSound
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszStartReverseSound"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszStartReverseSound", value); }
|
||||
}
|
||||
|
||||
// m_iszLoopReverseSound
|
||||
[SchemaMember("CFuncMover", "m_iszLoopReverseSound")]
|
||||
public string LoopReverseSound
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszLoopReverseSound"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszLoopReverseSound", value); }
|
||||
}
|
||||
|
||||
// m_iszStopReverseSound
|
||||
[SchemaMember("CFuncMover", "m_iszStopReverseSound")]
|
||||
public string StopReverseSound
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszStopReverseSound"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszStopReverseSound", value); }
|
||||
}
|
||||
|
||||
// m_iszArriveAtDestinationSound
|
||||
[SchemaMember("CFuncMover", "m_iszArriveAtDestinationSound")]
|
||||
public string ArriveAtDestinationSound
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CFuncMover", "m_iszArriveAtDestinationSound"); }
|
||||
set { Schema.SetString(this.Handle, "CFuncMover", "m_iszArriveAtDestinationSound", value); }
|
||||
}
|
||||
|
||||
// m_OnMovementEnd
|
||||
[SchemaMember("CFuncMover", "m_OnMovementEnd")]
|
||||
public CEntityIOOutput OnMovementEnd => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CFuncMover", "m_OnMovementEnd");
|
||||
|
||||
// m_bStartAtEnd
|
||||
[SchemaMember("CFuncMover", "m_bStartAtEnd")]
|
||||
public ref bool StartAtEnd => ref Schema.GetRef<bool>(this.Handle, "CFuncMover", "m_bStartAtEnd");
|
||||
|
||||
// m_eOrientationUpdate
|
||||
[SchemaMember("CFuncMover", "m_eOrientationUpdate")]
|
||||
public ref CFuncMoverOrientationUpdate_t OrientationUpdate => ref Schema.GetRef<CFuncMoverOrientationUpdate_t>(this.Handle, "CFuncMover", "m_eOrientationUpdate");
|
||||
|
||||
// m_flTimeStartOrientationChange
|
||||
[SchemaMember("CFuncMover", "m_flTimeStartOrientationChange")]
|
||||
public ref float TimeStartOrientationChange => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flTimeStartOrientationChange");
|
||||
|
||||
// m_flTimeToBlendToNewOrientation
|
||||
[SchemaMember("CFuncMover", "m_flTimeToBlendToNewOrientation")]
|
||||
public ref float TimeToBlendToNewOrientation => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flTimeToBlendToNewOrientation");
|
||||
|
||||
// m_flDurationBlendToNewOrientationRan
|
||||
[SchemaMember("CFuncMover", "m_flDurationBlendToNewOrientationRan")]
|
||||
public ref float DurationBlendToNewOrientationRan => ref Schema.GetRef<float>(this.Handle, "CFuncMover", "m_flDurationBlendToNewOrientationRan");
|
||||
|
||||
// m_qOriginalOrientation
|
||||
[SchemaMember("CFuncMover", "m_qOriginalOrientation")]
|
||||
public Quaternion OriginalOrientation => Schema.GetDeclaredClass<Quaternion>(this.Handle, "CFuncMover", "m_qOriginalOrientation");
|
||||
|
||||
}
|
||||
@@ -18,26 +18,6 @@ public partial class CFuncShatterglass : CBaseModelEntity
|
||||
{
|
||||
public CFuncShatterglass (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_hGlassMaterialDamaged
|
||||
[SchemaMember("CFuncShatterglass", "m_hGlassMaterialDamaged")]
|
||||
public CStrongHandle<InfoForResourceTypeIMaterial2> GlassMaterialDamaged => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeIMaterial2>>(this.Handle, "CFuncShatterglass", "m_hGlassMaterialDamaged");
|
||||
|
||||
// m_hGlassMaterialUndamaged
|
||||
[SchemaMember("CFuncShatterglass", "m_hGlassMaterialUndamaged")]
|
||||
public CStrongHandle<InfoForResourceTypeIMaterial2> GlassMaterialUndamaged => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeIMaterial2>>(this.Handle, "CFuncShatterglass", "m_hGlassMaterialUndamaged");
|
||||
|
||||
// m_hConcreteMaterialEdgeFace
|
||||
[SchemaMember("CFuncShatterglass", "m_hConcreteMaterialEdgeFace")]
|
||||
public CStrongHandle<InfoForResourceTypeIMaterial2> ConcreteMaterialEdgeFace => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeIMaterial2>>(this.Handle, "CFuncShatterglass", "m_hConcreteMaterialEdgeFace");
|
||||
|
||||
// m_hConcreteMaterialEdgeCaps
|
||||
[SchemaMember("CFuncShatterglass", "m_hConcreteMaterialEdgeCaps")]
|
||||
public CStrongHandle<InfoForResourceTypeIMaterial2> ConcreteMaterialEdgeCaps => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeIMaterial2>>(this.Handle, "CFuncShatterglass", "m_hConcreteMaterialEdgeCaps");
|
||||
|
||||
// m_hConcreteMaterialEdgeFins
|
||||
[SchemaMember("CFuncShatterglass", "m_hConcreteMaterialEdgeFins")]
|
||||
public CStrongHandle<InfoForResourceTypeIMaterial2> ConcreteMaterialEdgeFins => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeIMaterial2>>(this.Handle, "CFuncShatterglass", "m_hConcreteMaterialEdgeFins");
|
||||
|
||||
// m_matPanelTransform
|
||||
[SchemaMember("CFuncShatterglass", "m_matPanelTransform")]
|
||||
public matrix3x4_t MatPanelTransform => Schema.GetDeclaredClass<matrix3x4_t>(this.Handle, "CFuncShatterglass", "m_matPanelTransform");
|
||||
@@ -54,14 +34,6 @@ public partial class CFuncShatterglass : CBaseModelEntity
|
||||
[SchemaMember("CFuncShatterglass", "m_PanelSize")]
|
||||
public Vector2D PanelSize => Schema.GetDeclaredClass<Vector2D>(this.Handle, "CFuncShatterglass", "m_PanelSize");
|
||||
|
||||
// m_vecPanelNormalWs
|
||||
[SchemaMember("CFuncShatterglass", "m_vecPanelNormalWs")]
|
||||
public Vector PanelNormalWs => Schema.GetDeclaredClass<Vector>(this.Handle, "CFuncShatterglass", "m_vecPanelNormalWs");
|
||||
|
||||
// m_nNumShardsEverCreated
|
||||
[SchemaMember("CFuncShatterglass", "m_nNumShardsEverCreated")]
|
||||
public ref Int32 NumShardsEverCreated => ref Schema.GetRef<Int32>(this.Handle, "CFuncShatterglass", "m_nNumShardsEverCreated");
|
||||
|
||||
// m_flLastShatterSoundEmitTime
|
||||
[SchemaMember("CFuncShatterglass", "m_flLastShatterSoundEmitTime")]
|
||||
public ref float LastShatterSoundEmitTime => ref Schema.GetRef<float>(this.Handle, "CFuncShatterglass", "m_flLastShatterSoundEmitTime");
|
||||
@@ -94,10 +66,6 @@ public partial class CFuncShatterglass : CBaseModelEntity
|
||||
[SchemaMember("CFuncShatterglass", "m_bBroken")]
|
||||
public ref bool Broken => ref Schema.GetRef<bool>(this.Handle, "CFuncShatterglass", "m_bBroken");
|
||||
|
||||
// m_bHasRateLimitedShards
|
||||
[SchemaMember("CFuncShatterglass", "m_bHasRateLimitedShards")]
|
||||
public ref bool HasRateLimitedShards => ref Schema.GetRef<bool>(this.Handle, "CFuncShatterglass", "m_bHasRateLimitedShards");
|
||||
|
||||
// m_bGlassNavIgnore
|
||||
[SchemaMember("CFuncShatterglass", "m_bGlassNavIgnore")]
|
||||
public ref bool GlassNavIgnore => ref Schema.GetRef<bool>(this.Handle, "CFuncShatterglass", "m_bGlassNavIgnore");
|
||||
@@ -154,6 +122,10 @@ public partial class CFuncShatterglass : CBaseModelEntity
|
||||
[SchemaMember("CFuncShatterglass", "m_vExtraDamagePositions")]
|
||||
public NetworkedVector<Vector> ExtraDamagePositions => Schema.GetDeclaredClass<NetworkedVector<Vector>>(this.Handle, "CFuncShatterglass", "m_vExtraDamagePositions");
|
||||
|
||||
// m_vInitialPanelVertices
|
||||
[SchemaMember("CFuncShatterglass", "m_vInitialPanelVertices")]
|
||||
public NetworkedVector<Vector4D> InitialPanelVertices => Schema.GetDeclaredClass<NetworkedVector<Vector4D>>(this.Handle, "CFuncShatterglass", "m_vInitialPanelVertices");
|
||||
|
||||
// m_OnBroken
|
||||
[SchemaMember("CFuncShatterglass", "m_OnBroken")]
|
||||
public CEntityIOOutput OnBroken => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CFuncShatterglass", "m_OnBroken");
|
||||
@@ -162,4 +134,8 @@ public partial class CFuncShatterglass : CBaseModelEntity
|
||||
[SchemaMember("CFuncShatterglass", "m_iSurfaceType")]
|
||||
public ref byte SurfaceType => ref Schema.GetRef<byte>(this.Handle, "CFuncShatterglass", "m_iSurfaceType");
|
||||
|
||||
// m_hMaterialDamageBase
|
||||
[SchemaMember("CFuncShatterglass", "m_hMaterialDamageBase")]
|
||||
public CStrongHandle<InfoForResourceTypeIMaterial2> MaterialDamageBase => Schema.GetDeclaredClass<CStrongHandle<InfoForResourceTypeIMaterial2>>(this.Handle, "CFuncShatterglass", "m_hMaterialDamageBase");
|
||||
|
||||
}
|
||||
|
||||
@@ -18,10 +18,10 @@ public partial class CGameRules : NativeObject
|
||||
{
|
||||
public CGameRules (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// __m_pChainEntity
|
||||
[SchemaMember("CGameRules", "__m_pChainEntity")]
|
||||
public CNetworkVarChainer __m_pChainEntity => Schema.GetDeclaredClass<CNetworkVarChainer>(this.Handle, "CGameRules", "__m_pChainEntity");
|
||||
|
||||
// __m_pChainEntity
|
||||
[SchemaMember("CGameRules", "__m_pChainEntity")]
|
||||
public CNetworkVarChainer __m_pChainEntity => Schema.GetDeclaredClass<CNetworkVarChainer>(this.Handle, "CGameRules", "__m_pChainEntity");
|
||||
|
||||
// m_szQuestName
|
||||
[SchemaMember("CGameRules", "m_szQuestName")]
|
||||
public string QuestName
|
||||
@@ -34,16 +34,16 @@ public partial class CGameRules : NativeObject
|
||||
[SchemaMember("CGameRules", "m_nQuestPhase")]
|
||||
public ref Int32 QuestPhase => ref Schema.GetRef<Int32>(this.Handle, "CGameRules", "m_nQuestPhase");
|
||||
|
||||
// m_nTotalPausedTicks
|
||||
[SchemaMember("CGameRules", "m_nTotalPausedTicks")]
|
||||
public ref Int32 TotalPausedTicks => ref Schema.GetRef<Int32>(this.Handle, "CGameRules", "m_nTotalPausedTicks");
|
||||
|
||||
// m_nPauseStartTick
|
||||
[SchemaMember("CGameRules", "m_nPauseStartTick")]
|
||||
public ref Int32 PauseStartTick => ref Schema.GetRef<Int32>(this.Handle, "CGameRules", "m_nPauseStartTick");
|
||||
|
||||
// m_bGamePaused
|
||||
[SchemaMember("CGameRules", "m_bGamePaused")]
|
||||
public ref bool GamePaused => ref Schema.GetRef<bool>(this.Handle, "CGameRules", "m_bGamePaused");
|
||||
|
||||
// m_nTotalPausedTicks
|
||||
[SchemaMember("CGameRules", "m_nTotalPausedTicks")]
|
||||
public ref Int32 TotalPausedTicks => ref Schema.GetRef<Int32>(this.Handle, "CGameRules", "m_nTotalPausedTicks");
|
||||
|
||||
// m_nPauseStartTick
|
||||
[SchemaMember("CGameRules", "m_nPauseStartTick")]
|
||||
public ref Int32 PauseStartTick => ref Schema.GetRef<Int32>(this.Handle, "CGameRules", "m_nPauseStartTick");
|
||||
|
||||
// m_bGamePaused
|
||||
[SchemaMember("CGameRules", "m_bGamePaused")]
|
||||
public ref bool GamePaused => ref Schema.GetRef<bool>(this.Handle, "CGameRules", "m_bGamePaused");
|
||||
|
||||
}
|
||||
|
||||
@@ -102,10 +102,10 @@ public partial class CGameSceneNode : NativeObject
|
||||
[SchemaMember("CGameSceneNode", "m_flZOffset")]
|
||||
public ref float ZOffset => ref Schema.GetRef<float>(this.Handle, "CGameSceneNode", "m_flZOffset");
|
||||
|
||||
// m_flClientLocalScale
|
||||
[SchemaMember("CGameSceneNode", "m_flClientLocalScale")]
|
||||
public ref float ClientLocalScale => ref Schema.GetRef<float>(this.Handle, "CGameSceneNode", "m_flClientLocalScale");
|
||||
|
||||
// m_flClientLocalScale
|
||||
[SchemaMember("CGameSceneNode", "m_flClientLocalScale")]
|
||||
public ref float ClientLocalScale => ref Schema.GetRef<float>(this.Handle, "CGameSceneNode", "m_flClientLocalScale");
|
||||
|
||||
// m_vRenderOrigin
|
||||
[SchemaMember("CGameSceneNode", "m_vRenderOrigin")]
|
||||
public Vector RenderOrigin => Schema.GetDeclaredClass<Vector>(this.Handle, "CGameSceneNode", "m_vRenderOrigin");
|
||||
|
||||
@@ -22,4 +22,16 @@ public partial class CInfoPlayerStart : CPointEntity
|
||||
[SchemaMember("CInfoPlayerStart", "m_bDisabled")]
|
||||
public ref bool Disabled => ref Schema.GetRef<bool>(this.Handle, "CInfoPlayerStart", "m_bDisabled");
|
||||
|
||||
// m_bIsMaster
|
||||
[SchemaMember("CInfoPlayerStart", "m_bIsMaster")]
|
||||
public ref bool IsMaster => ref Schema.GetRef<bool>(this.Handle, "CInfoPlayerStart", "m_bIsMaster");
|
||||
|
||||
// m_pPawnSubclass
|
||||
[SchemaMember("CInfoPlayerStart", "m_pPawnSubclass")]
|
||||
public string PawnSubclass
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CInfoPlayerStart", "m_pPawnSubclass"); }
|
||||
set { Schema.SetString(this.Handle, "CInfoPlayerStart", "m_pPawnSubclass", value); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,10 +22,10 @@ public partial class CItem : CBaseAnimGraph
|
||||
[SchemaMember("CItem", "m_OnPlayerTouch")]
|
||||
public CEntityIOOutput OnPlayerTouch => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CItem", "m_OnPlayerTouch");
|
||||
|
||||
// m_OnPlayerPickup
|
||||
[SchemaMember("CItem", "m_OnPlayerPickup")]
|
||||
public CEntityIOOutput OnPlayerPickup => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CItem", "m_OnPlayerPickup");
|
||||
|
||||
// m_OnPlayerPickup
|
||||
[SchemaMember("CItem", "m_OnPlayerPickup")]
|
||||
public CEntityIOOutput OnPlayerPickup => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CItem", "m_OnPlayerPickup");
|
||||
|
||||
// m_bActivateWhenAtRest
|
||||
[SchemaMember("CItem", "m_bActivateWhenAtRest")]
|
||||
public ref bool ActivateWhenAtRest => ref Schema.GetRef<bool>(this.Handle, "CItem", "m_bActivateWhenAtRest");
|
||||
|
||||
@@ -34,10 +34,10 @@ public partial class CLogicCollisionPair : CLogicalEntity
|
||||
set { Schema.SetString(this.Handle, "CLogicCollisionPair", "m_nameAttach2", value); }
|
||||
}
|
||||
|
||||
// m_supportMultipleEntitiesWithSameName
|
||||
[SchemaMember("CLogicCollisionPair", "m_supportMultipleEntitiesWithSameName")]
|
||||
public ref bool SupportMultipleEntitiesWithSameName => ref Schema.GetRef<bool>(this.Handle, "CLogicCollisionPair", "m_supportMultipleEntitiesWithSameName");
|
||||
|
||||
// m_supportMultipleEntitiesWithSameName
|
||||
[SchemaMember("CLogicCollisionPair", "m_supportMultipleEntitiesWithSameName")]
|
||||
public ref bool SupportMultipleEntitiesWithSameName => ref Schema.GetRef<bool>(this.Handle, "CLogicCollisionPair", "m_supportMultipleEntitiesWithSameName");
|
||||
|
||||
// m_disabled
|
||||
[SchemaMember("CLogicCollisionPair", "m_disabled")]
|
||||
public ref bool Disabled => ref Schema.GetRef<bool>(this.Handle, "CLogicCollisionPair", "m_disabled");
|
||||
|
||||
@@ -18,8 +18,8 @@ public partial class CMarkupVolume : CBaseModelEntity
|
||||
{
|
||||
public CMarkupVolume (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_bDisabled
|
||||
[SchemaMember("CMarkupVolume", "m_bDisabled")]
|
||||
public ref bool Disabled => ref Schema.GetRef<bool>(this.Handle, "CMarkupVolume", "m_bDisabled");
|
||||
// m_bDisabled
|
||||
[SchemaMember("CMarkupVolume", "m_bDisabled")]
|
||||
public ref bool Disabled => ref Schema.GetRef<bool>(this.Handle, "CMarkupVolume", "m_bDisabled");
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CMoverPathNode : CPointEntity
|
||||
{
|
||||
public CMoverPathNode (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_vInTangentLocal
|
||||
[SchemaMember("CMoverPathNode", "m_vInTangentLocal")]
|
||||
public Vector InTangentLocal => Schema.GetDeclaredClass<Vector>(this.Handle, "CMoverPathNode", "m_vInTangentLocal");
|
||||
|
||||
// m_vOutTangentLocal
|
||||
[SchemaMember("CMoverPathNode", "m_vOutTangentLocal")]
|
||||
public Vector OutTangentLocal => Schema.GetDeclaredClass<Vector>(this.Handle, "CMoverPathNode", "m_vOutTangentLocal");
|
||||
|
||||
// m_szParentPathUniqueID
|
||||
[SchemaMember("CMoverPathNode", "m_szParentPathUniqueID")]
|
||||
public string ParentPathUniqueID
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CMoverPathNode", "m_szParentPathUniqueID"); }
|
||||
set { Schema.SetString(this.Handle, "CMoverPathNode", "m_szParentPathUniqueID", value); }
|
||||
}
|
||||
|
||||
// m_OnPassThrough
|
||||
[SchemaMember("CMoverPathNode", "m_OnPassThrough")]
|
||||
public CEntityIOOutput OnPassThrough => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CMoverPathNode", "m_OnPassThrough");
|
||||
|
||||
// m_OnPassThroughForward
|
||||
[SchemaMember("CMoverPathNode", "m_OnPassThroughForward")]
|
||||
public CEntityIOOutput OnPassThroughForward => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CMoverPathNode", "m_OnPassThroughForward");
|
||||
|
||||
// m_OnPassThroughReverse
|
||||
[SchemaMember("CMoverPathNode", "m_OnPassThroughReverse")]
|
||||
public CEntityIOOutput OnPassThroughReverse => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CMoverPathNode", "m_OnPassThroughReverse");
|
||||
|
||||
// m_hMover
|
||||
[SchemaMember("CMoverPathNode", "m_hMover")]
|
||||
public CHandle<CPathMover> Mover => Schema.GetDeclaredClass<CHandle<CPathMover>>(this.Handle, "CMoverPathNode", "m_hMover");
|
||||
|
||||
}
|
||||
@@ -62,4 +62,12 @@ public partial class CNavHullVData : NativeObject
|
||||
[SchemaMember("CNavHullVData", "m_agentBorderErosion")]
|
||||
public ref Int32 AgentBorderErosion => ref Schema.GetRef<Int32>(this.Handle, "CNavHullVData", "m_agentBorderErosion");
|
||||
|
||||
// m_flowMapGenerationEnabled
|
||||
[SchemaMember("CNavHullVData", "m_flowMapGenerationEnabled")]
|
||||
public ref bool FlowMapGenerationEnabled => ref Schema.GetRef<bool>(this.Handle, "CNavHullVData", "m_flowMapGenerationEnabled");
|
||||
|
||||
// m_flowMapNodeMaxRadius
|
||||
[SchemaMember("CNavHullVData", "m_flowMapNodeMaxRadius")]
|
||||
public ref float FlowMapNodeMaxRadius => ref Schema.GetRef<float>(this.Handle, "CNavHullVData", "m_flowMapNodeMaxRadius");
|
||||
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@ public partial class CNavLinkAnimgraphVar : NativeObject
|
||||
{
|
||||
public CNavLinkAnimgraphVar (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_sAnimGraphNavlinkType
|
||||
[SchemaMember("CNavLinkAnimgraphVar", "m_sAnimGraphNavlinkType")]
|
||||
public string AnimGraphNavlinkType
|
||||
// m_sAnimGraphNavlinkType
|
||||
[SchemaMember("CNavLinkAnimgraphVar", "m_sAnimGraphNavlinkType")]
|
||||
public string AnimGraphNavlinkType
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CNavLinkAnimgraphVar", "m_sAnimGraphNavlinkType"); }
|
||||
set { Schema.SetString(this.Handle, "CNavLinkAnimgraphVar", "m_sAnimGraphNavlinkType", value); }
|
||||
get { return Schema.GetUtf8String(this.Handle, "CNavLinkAnimgraphVar", "m_sAnimGraphNavlinkType"); }
|
||||
set { Schema.SetString(this.Handle, "CNavLinkAnimgraphVar", "m_sAnimGraphNavlinkType", value); }
|
||||
}
|
||||
|
||||
// m_unAlignmentDegrees
|
||||
|
||||
@@ -36,14 +36,14 @@ public partial class CNetworkOriginCellCoordQuantizedVector : NativeObject
|
||||
|
||||
// m_vecX
|
||||
[SchemaMember("CNetworkOriginCellCoordQuantizedVector", "m_vecX")]
|
||||
public float X => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkOriginCellCoordQuantizedVector", "m_vecX");
|
||||
public ref float X => ref Schema.GetRef<float>(this.Handle, "CNetworkOriginCellCoordQuantizedVector", "m_vecX");
|
||||
|
||||
// m_vecY
|
||||
[SchemaMember("CNetworkOriginCellCoordQuantizedVector", "m_vecY")]
|
||||
public float Y => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkOriginCellCoordQuantizedVector", "m_vecY");
|
||||
public ref float Y => ref Schema.GetRef<float>(this.Handle, "CNetworkOriginCellCoordQuantizedVector", "m_vecY");
|
||||
|
||||
// m_vecZ
|
||||
[SchemaMember("CNetworkOriginCellCoordQuantizedVector", "m_vecZ")]
|
||||
public float Z => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkOriginCellCoordQuantizedVector", "m_vecZ");
|
||||
public ref float Z => ref Schema.GetRef<float>(this.Handle, "CNetworkOriginCellCoordQuantizedVector", "m_vecZ");
|
||||
|
||||
}
|
||||
|
||||
@@ -20,14 +20,14 @@ public partial class CNetworkVelocityVector : NativeObject
|
||||
|
||||
// m_vecX
|
||||
[SchemaMember("CNetworkVelocityVector", "m_vecX")]
|
||||
public float X => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkVelocityVector", "m_vecX");
|
||||
public ref float X => ref Schema.GetRef<float>(this.Handle, "CNetworkVelocityVector", "m_vecX");
|
||||
|
||||
// m_vecY
|
||||
[SchemaMember("CNetworkVelocityVector", "m_vecY")]
|
||||
public float Y => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkVelocityVector", "m_vecY");
|
||||
public ref float Y => ref Schema.GetRef<float>(this.Handle, "CNetworkVelocityVector", "m_vecY");
|
||||
|
||||
// m_vecZ
|
||||
[SchemaMember("CNetworkVelocityVector", "m_vecZ")]
|
||||
public float Z => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkVelocityVector", "m_vecZ");
|
||||
public ref float Z => ref Schema.GetRef<float>(this.Handle, "CNetworkVelocityVector", "m_vecZ");
|
||||
|
||||
}
|
||||
|
||||
@@ -20,14 +20,14 @@ public partial class CNetworkViewOffsetVector : NativeObject
|
||||
|
||||
// m_vecX
|
||||
[SchemaMember("CNetworkViewOffsetVector", "m_vecX")]
|
||||
public float X => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkViewOffsetVector", "m_vecX");
|
||||
public ref float X => ref Schema.GetRef<float>(this.Handle, "CNetworkViewOffsetVector", "m_vecX");
|
||||
|
||||
// m_vecY
|
||||
[SchemaMember("CNetworkViewOffsetVector", "m_vecY")]
|
||||
public float Y => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkViewOffsetVector", "m_vecY");
|
||||
public ref float Y => ref Schema.GetRef<float>(this.Handle, "CNetworkViewOffsetVector", "m_vecY");
|
||||
|
||||
// m_vecZ
|
||||
[SchemaMember("CNetworkViewOffsetVector", "m_vecZ")]
|
||||
public float Z => Schema.GetDeclaredClass<float>(this.Handle, "CNetworkViewOffsetVector", "m_vecZ");
|
||||
public ref float Z => ref Schema.GetRef<float>(this.Handle, "CNetworkViewOffsetVector", "m_vecZ");
|
||||
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ public partial class CPathKeyFrame : CLogicalEntity
|
||||
[SchemaMember("CPathKeyFrame", "m_pPrevKey")]
|
||||
public CPathKeyFrame? PrevKey => Schema.GetPointer<CPathKeyFrame>(this.Handle, "CPathKeyFrame", "m_pPrevKey");
|
||||
|
||||
// m_flMoveSpeed
|
||||
[SchemaMember("CPathKeyFrame", "m_flMoveSpeed")]
|
||||
public ref float MoveSpeed => ref Schema.GetRef<float>(this.Handle, "CPathKeyFrame", "m_flMoveSpeed");
|
||||
// m_flMoveSpeed
|
||||
[SchemaMember("CPathKeyFrame", "m_flMoveSpeed")]
|
||||
public ref float MoveSpeed => ref Schema.GetRef<float>(this.Handle, "CPathKeyFrame", "m_flMoveSpeed");
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CPathMover : CBaseEntity
|
||||
{
|
||||
public CPathMover (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_vecPathNodes
|
||||
[SchemaMember("CPathMover", "m_vecPathNodes")]
|
||||
public NetworkedVector<CHandle<CMoverPathNode>> PathNodes => Schema.GetDeclaredClass<NetworkedVector<CHandle<CMoverPathNode>>>(this.Handle, "CPathMover", "m_vecPathNodes");
|
||||
|
||||
// m_flPathLength
|
||||
[SchemaMember("CPathMover", "m_flPathLength")]
|
||||
public ref float PathLength => ref Schema.GetRef<float>(this.Handle, "CPathMover", "m_flPathLength");
|
||||
|
||||
// m_bClosedLoop
|
||||
[SchemaMember("CPathMover", "m_bClosedLoop")]
|
||||
public ref bool ClosedLoop => ref Schema.GetRef<bool>(this.Handle, "CPathMover", "m_bClosedLoop");
|
||||
|
||||
}
|
||||
@@ -18,9 +18,9 @@ public partial class CPhysBallSocket : CPhysConstraint
|
||||
{
|
||||
public CPhysBallSocket (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_flJointFriction
|
||||
[SchemaMember("CPhysBallSocket", "m_flJointFriction")]
|
||||
public ref float JointFriction => ref Schema.GetRef<float>(this.Handle, "CPhysBallSocket", "m_flJointFriction");
|
||||
// m_flJointFriction
|
||||
[SchemaMember("CPhysBallSocket", "m_flJointFriction")]
|
||||
public ref float JointFriction => ref Schema.GetRef<float>(this.Handle, "CPhysBallSocket", "m_flJointFriction");
|
||||
|
||||
// m_bEnableSwingLimit
|
||||
[SchemaMember("CPhysBallSocket", "m_bEnableSwingLimit")]
|
||||
|
||||
@@ -22,10 +22,6 @@ public partial class CPhysBox : CBreakable
|
||||
[SchemaMember("CPhysBox", "m_damageType")]
|
||||
public ref Int32 DamageType => ref Schema.GetRef<Int32>(this.Handle, "CPhysBox", "m_damageType");
|
||||
|
||||
// m_massScale
|
||||
[SchemaMember("CPhysBox", "m_massScale")]
|
||||
public ref float MassScale => ref Schema.GetRef<float>(this.Handle, "CPhysBox", "m_massScale");
|
||||
|
||||
// m_damageToEnableMotion
|
||||
[SchemaMember("CPhysBox", "m_damageToEnableMotion")]
|
||||
public ref Int32 DamageToEnableMotion => ref Schema.GetRef<Int32>(this.Handle, "CPhysBox", "m_damageToEnableMotion");
|
||||
|
||||
@@ -34,30 +34,30 @@ public partial class CPhysConstraint : CLogicalEntity
|
||||
set { Schema.SetString(this.Handle, "CPhysConstraint", "m_nameAttach2", value); }
|
||||
}
|
||||
|
||||
// m_hAttach1
|
||||
[SchemaMember("CPhysConstraint", "m_hAttach1")]
|
||||
public CHandle<CBaseEntity> Attach1 => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CPhysConstraint", "m_hAttach1");
|
||||
|
||||
// m_hAttach2
|
||||
[SchemaMember("CPhysConstraint", "m_hAttach2")]
|
||||
public CHandle<CBaseEntity> Attach2 => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CPhysConstraint", "m_hAttach2");
|
||||
|
||||
// m_nameAttachment1
|
||||
[SchemaMember("CPhysConstraint", "m_nameAttachment1")]
|
||||
public string NameAttachment1
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CPhysConstraint", "m_nameAttachment1"); }
|
||||
set { Schema.SetString(this.Handle, "CPhysConstraint", "m_nameAttachment1", value); }
|
||||
}
|
||||
|
||||
// m_nameAttachment2
|
||||
[SchemaMember("CPhysConstraint", "m_nameAttachment2")]
|
||||
public string NameAttachment2
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CPhysConstraint", "m_nameAttachment2"); }
|
||||
set { Schema.SetString(this.Handle, "CPhysConstraint", "m_nameAttachment2", value); }
|
||||
}
|
||||
|
||||
// m_hAttach1
|
||||
[SchemaMember("CPhysConstraint", "m_hAttach1")]
|
||||
public CHandle<CBaseEntity> Attach1 => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CPhysConstraint", "m_hAttach1");
|
||||
|
||||
// m_hAttach2
|
||||
[SchemaMember("CPhysConstraint", "m_hAttach2")]
|
||||
public CHandle<CBaseEntity> Attach2 => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CPhysConstraint", "m_hAttach2");
|
||||
|
||||
// m_nameAttachment1
|
||||
[SchemaMember("CPhysConstraint", "m_nameAttachment1")]
|
||||
public string NameAttachment1
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CPhysConstraint", "m_nameAttachment1"); }
|
||||
set { Schema.SetString(this.Handle, "CPhysConstraint", "m_nameAttachment1", value); }
|
||||
}
|
||||
|
||||
// m_nameAttachment2
|
||||
[SchemaMember("CPhysConstraint", "m_nameAttachment2")]
|
||||
public string NameAttachment2
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CPhysConstraint", "m_nameAttachment2"); }
|
||||
set { Schema.SetString(this.Handle, "CPhysConstraint", "m_nameAttachment2", value); }
|
||||
}
|
||||
|
||||
// m_breakSound
|
||||
[SchemaMember("CPhysConstraint", "m_breakSound")]
|
||||
public string BreakSound
|
||||
@@ -82,10 +82,10 @@ public partial class CPhysConstraint : CLogicalEntity
|
||||
[SchemaMember("CPhysConstraint", "m_minTeleportDistance")]
|
||||
public ref float MinTeleportDistance => ref Schema.GetRef<float>(this.Handle, "CPhysConstraint", "m_minTeleportDistance");
|
||||
|
||||
// m_bSnapObjectPositions
|
||||
[SchemaMember("CPhysConstraint", "m_bSnapObjectPositions")]
|
||||
public ref bool SnapObjectPositions => ref Schema.GetRef<bool>(this.Handle, "CPhysConstraint", "m_bSnapObjectPositions");
|
||||
|
||||
// m_bSnapObjectPositions
|
||||
[SchemaMember("CPhysConstraint", "m_bSnapObjectPositions")]
|
||||
public ref bool SnapObjectPositions => ref Schema.GetRef<bool>(this.Handle, "CPhysConstraint", "m_bSnapObjectPositions");
|
||||
|
||||
// m_OnBreak
|
||||
[SchemaMember("CPhysConstraint", "m_OnBreak")]
|
||||
public CEntityIOOutput OnBreak => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CPhysConstraint", "m_OnBreak");
|
||||
|
||||
@@ -38,25 +38,25 @@ public partial class CPhysicsProp : CBreakableProp
|
||||
[SchemaMember("CPhysicsProp", "m_OnPlayerUse")]
|
||||
public CEntityIOOutput OnPlayerUse => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CPhysicsProp", "m_OnPlayerUse");
|
||||
|
||||
// m_OnOutOfWorld
|
||||
[SchemaMember("CPhysicsProp", "m_OnOutOfWorld")]
|
||||
public CEntityIOOutput OnOutOfWorld => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CPhysicsProp", "m_OnOutOfWorld");
|
||||
|
||||
// m_OnOutOfWorld
|
||||
[SchemaMember("CPhysicsProp", "m_OnOutOfWorld")]
|
||||
public CEntityIOOutput OnOutOfWorld => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CPhysicsProp", "m_OnOutOfWorld");
|
||||
|
||||
// m_OnPlayerPickup
|
||||
[SchemaMember("CPhysicsProp", "m_OnPlayerPickup")]
|
||||
public CEntityIOOutput OnPlayerPickup => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CPhysicsProp", "m_OnPlayerPickup");
|
||||
|
||||
// m_bForceNavIgnore
|
||||
[SchemaMember("CPhysicsProp", "m_bForceNavIgnore")]
|
||||
public ref bool ForceNavIgnore => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bForceNavIgnore");
|
||||
|
||||
// m_bNoNavmeshBlocker
|
||||
[SchemaMember("CPhysicsProp", "m_bNoNavmeshBlocker")]
|
||||
public ref bool NoNavmeshBlocker => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bNoNavmeshBlocker");
|
||||
|
||||
// m_bForceNpcExclude
|
||||
[SchemaMember("CPhysicsProp", "m_bForceNpcExclude")]
|
||||
public ref bool ForceNpcExclude => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bForceNpcExclude");
|
||||
// m_bForceNavIgnore
|
||||
[SchemaMember("CPhysicsProp", "m_bForceNavIgnore")]
|
||||
public ref bool ForceNavIgnore => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bForceNavIgnore");
|
||||
|
||||
// m_bNoNavmeshBlocker
|
||||
[SchemaMember("CPhysicsProp", "m_bNoNavmeshBlocker")]
|
||||
public ref bool NoNavmeshBlocker => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bNoNavmeshBlocker");
|
||||
|
||||
// m_bForceNpcExclude
|
||||
[SchemaMember("CPhysicsProp", "m_bForceNpcExclude")]
|
||||
public ref bool ForceNpcExclude => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bForceNpcExclude");
|
||||
|
||||
// m_massScale
|
||||
[SchemaMember("CPhysicsProp", "m_massScale")]
|
||||
@@ -150,6 +150,22 @@ public partial class CPhysicsProp : CBreakableProp
|
||||
[SchemaMember("CPhysicsProp", "m_bEnableUseOutput")]
|
||||
public ref bool EnableUseOutput => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bEnableUseOutput");
|
||||
|
||||
// m_CrateType
|
||||
[SchemaMember("CPhysicsProp", "m_CrateType")]
|
||||
public ref CPhysicsPropCrateType_t CrateType => ref Schema.GetRef<CPhysicsPropCrateType_t>(this.Handle, "CPhysicsProp", "m_CrateType");
|
||||
|
||||
// m_strItemClass
|
||||
[SchemaMember("CPhysicsProp", "m_strItemClass")]
|
||||
public Span<string> StrItemClass => Schema.GetFixedArray<string>(this.Handle, "CPhysicsProp", "m_strItemClass", 4);
|
||||
|
||||
// m_nItemCount
|
||||
[SchemaMember("CPhysicsProp", "m_nItemCount")]
|
||||
public Span<Int32> ItemCount => Schema.GetFixedArray<Int32>(this.Handle, "CPhysicsProp", "m_nItemCount", 4);
|
||||
|
||||
// m_bRemovableForAmmoBalancing
|
||||
[SchemaMember("CPhysicsProp", "m_bRemovableForAmmoBalancing")]
|
||||
public ref bool RemovableForAmmoBalancing => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bRemovableForAmmoBalancing");
|
||||
|
||||
// m_bAwake
|
||||
[SchemaMember("CPhysicsProp", "m_bAwake")]
|
||||
public ref bool Awake => ref Schema.GetRef<bool>(this.Handle, "CPhysicsProp", "m_bAwake");
|
||||
|
||||
@@ -34,6 +34,10 @@ public partial class CPlantedC4 : CBaseAnimGraph
|
||||
[SchemaMember("CPlantedC4", "m_nSourceSoundscapeHash")]
|
||||
public ref Int32 SourceSoundscapeHash => ref Schema.GetRef<Int32>(this.Handle, "CPlantedC4", "m_nSourceSoundscapeHash");
|
||||
|
||||
// m_AttributeManager
|
||||
[SchemaMember("CPlantedC4", "m_AttributeManager")]
|
||||
public CAttributeContainer AttributeManager => Schema.GetDeclaredClass<CAttributeContainer>(this.Handle, "CPlantedC4", "m_AttributeManager");
|
||||
|
||||
// m_OnBombDefused
|
||||
[SchemaMember("CPlantedC4", "m_OnBombDefused")]
|
||||
public CEntityIOOutput OnBombDefused => Schema.GetDeclaredClass<CEntityIOOutput>(this.Handle, "CPlantedC4", "m_OnBombDefused");
|
||||
|
||||
@@ -82,6 +82,10 @@ public partial class CPointCamera : CBaseEntity
|
||||
[SchemaMember("CPointCamera", "m_bCanHLTVUse")]
|
||||
public ref bool CanHLTVUse => ref Schema.GetRef<bool>(this.Handle, "CPointCamera", "m_bCanHLTVUse");
|
||||
|
||||
// m_bAlignWithParent
|
||||
[SchemaMember("CPointCamera", "m_bAlignWithParent")]
|
||||
public ref bool AlignWithParent => ref Schema.GetRef<bool>(this.Handle, "CPointCamera", "m_bAlignWithParent");
|
||||
|
||||
// m_bDofEnabled
|
||||
[SchemaMember("CPointCamera", "m_bDofEnabled")]
|
||||
public ref bool DofEnabled => ref Schema.GetRef<bool>(this.Handle, "CPointCamera", "m_bDofEnabled");
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using CounterStrikeSharp;
|
||||
using CounterStrikeSharp.API.Modules.Events;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
|
||||
namespace CounterStrikeSharp.API.Core;
|
||||
|
||||
public partial class CPointChildModifier : CPointEntity
|
||||
{
|
||||
public CPointChildModifier (IntPtr pointer) : base(pointer) {}
|
||||
|
||||
// m_bOrphanInsteadOfDeletingChildrenOnRemove
|
||||
[SchemaMember("CPointChildModifier", "m_bOrphanInsteadOfDeletingChildrenOnRemove")]
|
||||
public ref bool OrphanInsteadOfDeletingChildrenOnRemove => ref Schema.GetRef<bool>(this.Handle, "CPointChildModifier", "m_bOrphanInsteadOfDeletingChildrenOnRemove");
|
||||
|
||||
}
|
||||
@@ -24,7 +24,7 @@ public partial class CPointHurt : CPointEntity
|
||||
|
||||
// m_bitsDamageType
|
||||
[SchemaMember("CPointHurt", "m_bitsDamageType")]
|
||||
public ref Int32 BitsDamageType => ref Schema.GetRef<Int32>(this.Handle, "CPointHurt", "m_bitsDamageType");
|
||||
public ref DamageTypes_t BitsDamageType => ref Schema.GetRef<DamageTypes_t>(this.Handle, "CPointHurt", "m_bitsDamageType");
|
||||
|
||||
// m_flRadius
|
||||
[SchemaMember("CPointHurt", "m_flRadius")]
|
||||
|
||||
@@ -130,14 +130,14 @@ public partial class CSceneEntity : CPointEntity
|
||||
[SchemaMember("CSceneEntity", "m_hTarget8")]
|
||||
public CHandle<CBaseEntity> HTarget8 => Schema.GetDeclaredClass<CHandle<CBaseEntity>>(this.Handle, "CSceneEntity", "m_hTarget8");
|
||||
|
||||
// m_sTargetAttachment
|
||||
[SchemaMember("CSceneEntity", "m_sTargetAttachment")]
|
||||
public string TargetAttachment
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CSceneEntity", "m_sTargetAttachment"); }
|
||||
set { Schema.SetString(this.Handle, "CSceneEntity", "m_sTargetAttachment", value); }
|
||||
}
|
||||
|
||||
// m_sTargetAttachment
|
||||
[SchemaMember("CSceneEntity", "m_sTargetAttachment")]
|
||||
public string TargetAttachment
|
||||
{
|
||||
get { return Schema.GetUtf8String(this.Handle, "CSceneEntity", "m_sTargetAttachment"); }
|
||||
set { Schema.SetString(this.Handle, "CSceneEntity", "m_sTargetAttachment", value); }
|
||||
}
|
||||
|
||||
// m_bIsPlayingBack
|
||||
[SchemaMember("CSceneEntity", "m_bIsPlayingBack")]
|
||||
public ref bool IsPlayingBack => ref Schema.GetRef<bool>(this.Handle, "CSceneEntity", "m_bIsPlayingBack");
|
||||
@@ -222,10 +222,10 @@ public partial class CSceneEntity : CPointEntity
|
||||
[SchemaMember("CSceneEntity", "m_bBreakOnNonIdle")]
|
||||
public ref bool BreakOnNonIdle => ref Schema.GetRef<bool>(this.Handle, "CSceneEntity", "m_bBreakOnNonIdle");
|
||||
|
||||
// m_bSceneFinished
|
||||
[SchemaMember("CSceneEntity", "m_bSceneFinished")]
|
||||
public ref bool SceneFinished => ref Schema.GetRef<bool>(this.Handle, "CSceneEntity", "m_bSceneFinished");
|
||||
|
||||
// m_bSceneFinished
|
||||
[SchemaMember("CSceneEntity", "m_bSceneFinished")]
|
||||
public ref bool SceneFinished => ref Schema.GetRef<bool>(this.Handle, "CSceneEntity", "m_bSceneFinished");
|
||||
|
||||
// m_hActorList
|
||||
[SchemaMember("CSceneEntity", "m_hActorList")]
|
||||
public NetworkedVector<CHandle<CBaseFlex>> ActorList => Schema.GetDeclaredClass<NetworkedVector<CHandle<CBaseFlex>>>(this.Handle, "CSceneEntity", "m_hActorList");
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user