|
VoltMod
C++23 framework for CS2 server plugins
|
#include <Bindings.hpp>
Public Member Functions | |
| Status | Bind (const GameDataLookup &lookup) |
Every engine function, slot and offset the framework calls, typed and bound from gamedata.
Definition at line 15 of file Bindings.hpp.
| Status VoltMod::Bindings::Bind | ( | const GameDataLookup & | lookup | ) |
Take every member from lookup in one pass, clearing the last result. What did not bind is listed in Failures.
Definition at line 60 of file Bindings.cpp.
References AcceptInput, AddEntityIOEvent, BuildDamageInfo, ChangeTeam, ClientMessageFilter, ClientSlot, ClientSteamId, CommitSuicide, CreateEntityByName, CustomHudSetDialogVariable, CustomHudSetDialogVariableForPlayer, CustomHudSetHasClass, CustomHudSetHasClassForPlayer, CustomHudSetInputCapture, DispatchSpawn, DropWeapon, EmitSoundFilter, VoltMod::Error::Engine(), Failures, FilterMessage, GameEntitySystem, GameEventManager, GiveNamedItem, VoltMod::Strings::Join(), LegacyGameEventListener, NavTraceLine, NavTraceShape, ProcessRespondCvarValue, VoltMod::ReadFile(), RemoveAllItems, ReplyConnection, Respawn, RunCommand, SelectItem, SendNetMessage, ServerAddons, SetModel, StopSound, TakeDamage, TerminateRound, UserCmdNumber, UserCmdProto, and VisibilityRecipientSlot.
Referenced by VoltMod::Host::Start().
| Fn<void(CEntityInstance*, const char*, CEntityInstance*, CEntityInstance*, void*)> VoltMod::Bindings::AcceptInput |
(entity, input, activator, caller, variant_t* value).
Definition at line 29 of file Bindings.hpp.
Referenced by Bind().
| Fn<void(void*, CEntityInstance*, const char*, CEntityInstance*, CEntityInstance*, const void*, float, const void*, const void*)> VoltMod::Bindings::AddEntityIOEvent |
(entity system, target, input, activator, caller, value, delay, nullptr, nullptr). The queue copies the input and value.
Definition at line 34 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Entity::RemoveAfter().
| Fn<void(void*, CEntityInstance*, CEntityInstance*, CEntityInstance*, const Vector*, const Vector*, float, int, int, void*)> VoltMod::Bindings::BuildDamageInfo |
CTakeDamageInfo(info, inflictor, attacker, ability, force, position, damage, type, custom, nullptr).
Definition at line 49 of file Bindings.hpp.
Referenced by VoltMod::Damage::Apply(), VoltMod::Damage::Available(), and Bind().
Definition at line 74 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Controller::ChangeTeam().
From CServerSideClient to the base FilterMessage runs on.
Definition at line 101 of file Bindings.hpp.
Referenced by VoltMod::ScreenManager::Available(), and Bind().
Definition at line 97 of file Bindings.hpp.
Referenced by VoltMod::ScreenManager::Available(), and Bind().
Unaligned inside CServerSideClient.
Definition at line 99 of file Bindings.hpp.
Referenced by Bind().
The (bool explode, bool force) overload, counted in CCSPlayerPawn.
Definition at line 73 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Pawn::Slay().
(className, forceEdictIndex).
Definition at line 25 of file Bindings.hpp.
Referenced by VoltMod::EntitySystem::Available(), Bind(), and VoltMod::EntitySystem::Create().
| Fn<void(void*, const CUtlString*, const CUtlString*, const CUtlString*)> VoltMod::Bindings::CustomHudSetDialogVariable |
Definition at line 58 of file Bindings.hpp.
Referenced by VoltMod::ScreenManager::Available(), and Bind().
| Fn<void(void*, int32_t, const CUtlString*, const CUtlString*, const CUtlString*)> VoltMod::Bindings::CustomHudSetDialogVariableForPlayer |
Definition at line 60 of file Bindings.hpp.
Referenced by VoltMod::ScreenManager::Available(), and Bind().
| Fn<void(void*, const CUtlString*, const CUtlString*, int32_t)> VoltMod::Bindings::CustomHudSetHasClass |
Definition at line 56 of file Bindings.hpp.
Referenced by VoltMod::ScreenManager::Available(), and Bind().
| Fn<void(void*, int32_t, const CUtlString*, const CUtlString*, int32_t)> VoltMod::Bindings::CustomHudSetHasClassForPlayer |
Definition at line 57 of file Bindings.hpp.
Referenced by VoltMod::ScreenManager::Available(), and Bind().
Definition at line 61 of file Bindings.hpp.
Referenced by VoltMod::ScreenManager::Available(), and Bind().
| Fn<void(CEntityInstance*, CEntityKeyValues*)> VoltMod::Bindings::DispatchSpawn |
keyvalues may be null.
Definition at line 27 of file Bindings.hpp.
Referenced by VoltMod::EntitySystem::Available(), Bind(), and VoltMod::Entity::Spawn().
| Fn<bool(EngineWeaponServices*, CEntityInstance*, bool)> VoltMod::Bindings::DropWeapon |
(weapon, swapping); a player's own drop. The drop key passes a null weapon: the one in hand.
Definition at line 53 of file Bindings.hpp.
Referenced by Bind().
| Address VoltMod::Bindings::EmitSoundFilter |
Returns its result through a hidden pointer, so Entity.cpp declares the prototype.
Definition at line 41 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Entity::EmitSound().
(entity, soundEvent, pitch, volume, delay).
Definition at line 37 of file Bindings.hpp.
Referenced by VoltMod::Entity::EmitSound().
| std::vector<std::string> VoltMod::Bindings::Failures |
key: reason for each member the last Bind left unbound.
Definition at line 22 of file Bindings.hpp.
Referenced by Bind().
| VirtualFn<bool(INetworkMessageProcessingPreFilter*, const CNetMessage*, INetChannel*)> VoltMod::Bindings::FilterMessage |
Counted in CServerSideClient's message-filter base, which the hook receives.
Definition at line 65 of file Bindings.hpp.
Referenced by VoltMod::ScreenManager::Available(), and Bind().
| Offset<CGameEntitySystem*> VoltMod::Bindings::GameEntitySystem |
Inside IGameResourceService.
Definition at line 94 of file Bindings.hpp.
Referenced by VoltMod::EntitySystem::Available(), Bind(), and VoltMod::EntitySystem::EntitySystem().
| Address VoltMod::Bindings::GameEventManager |
IGameEventManager2** inside CSource2Server.
Definition at line 70 of file Bindings.hpp.
Referenced by VoltMod::GameEvents::Available(), Bind(), and VoltMod::GameEvents::GameEvents().
Definition at line 85 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Pawn::GiveItem().
| Address VoltMod::Bindings::LegacyGameEventListener |
IGameEventListener2* (CPlayerSlot); GameEvents.cpp declares the prototype.
Definition at line 43 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::GameEvents::GameEvents().
| VirtualFn<bool(EngineNavPhysics*, const Vector*, const Vector*, CTraceFilter*, CGameTrace*)> VoltMod::Bindings::NavTraceLine |
The overloads taking a filter, called on the stateless class table.
Definition at line 80 of file Bindings.hpp.
Referenced by VoltMod::Trace::Available(), Bind(), and VoltMod::Trace::Line().
| VirtualFn<void(EngineNavPhysics*, const Ray_t*, const Vector*, const Vector*, CTraceFilter*, CGameTrace*)> VoltMod::Bindings::NavTraceShape |
Definition at line 82 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Trace::Box().
| VirtualFn<bool(EngineClient*, const CNetMessage*)> VoltMod::Bindings::ProcessRespondCvarValue |
Definition at line 90 of file Bindings.hpp.
Referenced by Bind().
(bool removeSuit).
Definition at line 87 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Pawn::StripWeapons().
| Fn<void(CNetworkGameServerBase*, EngineClient*)> VoltMod::Bindings::ReplyConnection |
CNetworkGameServer::ReplyConnection, which names the addons a connecting client mounts.
Definition at line 67 of file Bindings.hpp.
Referenced by Bind().
Definition at line 75 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Controller::Respawn().
| VirtualFn<void*(EngineMovementServices*, void*)> VoltMod::Bindings::RunCommand |
(CUserCmd*), counted in CCSPlayer_MovementServices.
Definition at line 84 of file Bindings.hpp.
Referenced by VoltMod::Movement::Available(), and Bind().
| VirtualFn<bool(EngineWeaponServices*, CEntityInstance*, int)> VoltMod::Bindings::SelectItem |
(weapon, 0), counted in CCSPlayer_WeaponServices.
Definition at line 89 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Pawn::SelectWeapon().
| VirtualFn<bool(EngineClient*, const CNetMessage*, NetChannelBufType_t)> VoltMod::Bindings::SendNetMessage |
Definition at line 91 of file Bindings.hpp.
Referenced by Bind().
CNetworkGameServer::m_szAddons, a CUtlString.
Definition at line 103 of file Bindings.hpp.
Referenced by Bind().
Definition at line 35 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Entity::SetModel().
(entity, soundEvent).
Definition at line 39 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::Entity::StopSound().
CBaseEntity::TakeDamageOld(CTakeDamageInfo*, CTakeDamageResult*); see src/Hooks/DamageLayout.hpp.
Definition at line 45 of file Bindings.hpp.
Referenced by VoltMod::Damage::Apply(), VoltMod::Damage::Available(), and Bind().
| VirtualFn<void(CEntityInstance*, const Vector*, const QAngle*, const Vector*)> VoltMod::Bindings::Teleport |
(origin, angles, velocity), each nullable; counted in CCSPlayerPawn.
Definition at line 77 of file Bindings.hpp.
Referenced by VoltMod::Teleport::Available(), and VoltMod::Entity::Teleport().
(CCSGameRules*, delay, CSRoundEndReason, int* team).
Definition at line 51 of file Bindings.hpp.
Referenced by VoltMod::Rounds::Available(), Bind(), and VoltMod::Rounds::End().
CUserCmd's own counter; live clients leave the protobuf one at zero.
Definition at line 107 of file Bindings.hpp.
Referenced by Bind(), and VoltMod::PlayerCommands::PlayerCommands().
The CSGOUserCmdPB inside CUserCmd.
Definition at line 105 of file Bindings.hpp.
Referenced by VoltMod::Movement::Available(), and Bind().
The recipient's slot inside CCheckTransmitInfo.
Definition at line 96 of file Bindings.hpp.
Referenced by VoltMod::Visibility::Available(), Bind(), and VoltMod::Visibility::OnCheckTransmit().