CPropVehicleDriveable::CPropVehicleDriveable
0x00b35040 · 523 bytes · __thiscall
_ZN21CPropVehicleDriveableC1Ev
Decompiled
undefined (1 param)
/* CPropVehicleDriveable::CPropVehicleDriveable() */
void __thiscall CPropVehicleDriveable::CPropVehicleDriveable(CPropVehicleDriveable *this)
{
float fVar1;
CBaseEdict *pCVar2;
int iVar3;
CPropVehicle::CPropVehicle((CPropVehicle *)this);
*(undefined ***)this = &PTR__CPropVehicleDriveable_00d497a8;
*(undefined ***)(this + 0x13f4) = &PTR_OnAttemptPhysGunPickup_00d49bdc;
*(undefined ***)(this + 0x154c) = &PTR_GetDriver_00d49c0c;
*(undefined ***)(this + 0x1550) = &PTR_NPC_CanEnterVehicle_00d49c54;
*(undefined4 *)(this + 0x1554) = 0;
*(undefined4 *)(this + 0x1558) = 0;
*(undefined4 *)(this + 0x1564) = 0xffffffff;
*(undefined4 *)(this + 0x1568) = 0;
*(undefined4 *)(this + 0x1570) = 0;
*(undefined4 *)(this + 0x157c) = 0xffffffff;
*(undefined4 *)(this + 0x1580) = 0;
*(undefined4 *)(this + 0x1588) = 0;
*(undefined4 *)(this + 0x1594) = 0xffffffff;
*(undefined4 *)(this + 0x1598) = 0;
*(undefined4 *)(this + 0x15a0) = 0;
*(undefined4 *)(this + 0x15ac) = 0xffffffff;
*(undefined4 *)(this + 0x15b0) = 0;
*(undefined4 *)(this + 0x15b8) = 0;
*(undefined4 *)(this + 0x15c4) = 0xffffffff;
*(undefined4 *)(this + 0x15c8) = 0;
*(undefined4 *)(this + 0x15d0) = 0;
*(undefined4 *)(this + 0x15dc) = 0xffffffff;
*(undefined4 *)(this + 0x15e0) = 0;
*(undefined4 *)(this + 0x15e8) = 0xffffffff;
*(undefined4 *)(this + 0x161c) = 0xffffffff;
*(undefined4 *)(this + 0x1620) = 0xffffffff;
*(undefined4 *)(this + 0x1630) = 0;
*(undefined4 *)(this + 0x1634) = 0;
if (((*(float *)(this + 0x1600) == 0.0) && (*(float *)(this + 0x1604) == 0.0)) &&
(*(float *)(this + 0x1608) == 0.0)) {
fVar1 = *(float *)(this + 0x160c);
}
else {
if (this[0x6c] == (CPropVehicleDriveable)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
/* try { // try from 00b351ca to 00b35219 has its CatchHandler @ 00b35256 */
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CPropVehicleDriveable)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x1600) = 0;
fVar1 = *(float *)(this + 0x160c);
*(undefined4 *)(this + 0x1604) = 0;
*(undefined4 *)(this + 0x1608) = 0;
}
if (((fVar1 == 0.0) && (*(float *)(this + 0x1610) == 0.0)) && (*(float *)(this + 0x1614) == 0.0))
{
return;
}
if (this[0x6c] == (CPropVehicleDriveable)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CPropVehicleDriveable)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x160c) = 0;
*(undefined4 *)(this + 0x1610) = 0;
*(undefined4 *)(this + 0x1614) = 0;
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.