CPropVehicleDriveable::ExitVehicle
0x00b34320 · 694 bytes · __cdecl
_ZN21CPropVehicleDriveable11ExitVehicleEi
Decompiled
undefined (1 param)
/* CPropVehicleDriveable::ExitVehicle(int) */
void CPropVehicleDriveable::ExitVehicle(int param_1)
{
uint uVar1;
CBaseEntity *pCVar2;
CBaseEdict *pCVar3;
undefined4 uVar4;
undefined4 uVar5;
int iVar6;
undefined *puVar7;
undefined4 local_38;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
uVar1 = *(uint *)(param_1 + 0x15e8);
if ((((uVar1 != 0xffffffff) &&
(puVar7 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar7 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar7 + 8) == uVar1 >> 0xc)) &&
(pCVar2 = *(CBaseEntity **)(puVar7 + 4), pCVar2 != (CBaseEntity *)0x0)) {
if (*(char *)(param_1 + 0x6c) == '\0') {
pCVar3 = *(CBaseEdict **)(param_1 + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar6 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar6 + 2) = 0;
}
}
else {
*(byte *)(param_1 + 0x70) = *(byte *)(param_1 + 0x70) | 1;
}
*(undefined4 *)(param_1 + 0x15e8) = 0xffffffff;
*(uint *)(pCVar2 + 0x1cb4) = *(uint *)(pCVar2 + 0x1cb4) & 0xffffffdf;
COutputEvent::FireOutput((COutputEvent *)(param_1 + 0x1570),pCVar2,(CBaseEntity *)param_1,0.0);
local_38 = 0;
variant_t::Set((variant_t *)(param_1 + 0x15b8),1,&local_38);
local_30 = *(undefined4 *)(param_1 + 0x15b8);
local_2c = *(undefined4 *)(param_1 + 0x15bc);
local_28 = *(undefined4 *)(param_1 + 0x15c0);
local_24 = *(undefined4 *)(param_1 + 0x15c4);
local_20 = *(undefined4 *)(param_1 + 0x15c8);
CBaseEntityOutput::FireOutput
((CBaseEntityOutput *)(param_1 + 0x15b8),&local_30,pCVar2,param_1,0);
local_34 = 0;
variant_t::Set((variant_t *)(param_1 + 0x15d0),1,&local_34);
local_30 = *(undefined4 *)(param_1 + 0x15d0);
local_2c = *(undefined4 *)(param_1 + 0x15d4);
local_28 = *(undefined4 *)(param_1 + 0x15d8);
local_24 = *(undefined4 *)(param_1 + 0x15dc);
local_20 = *(undefined4 *)(param_1 + 0x15e0);
CBaseEntityOutput::FireOutput
((CBaseEntityOutput *)(param_1 + 0x15d0),&local_30,pCVar2,param_1,0);
if (*(int *)(param_1 + 0x15ec) != 0) {
if (*(char *)(param_1 + 0x6c) == '\0') {
pCVar3 = *(CBaseEdict **)(param_1 + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar6 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar6 + 2) = 0;
}
}
else {
*(byte *)(param_1 + 0x70) = *(byte *)(param_1 + 0x70) | 1;
}
*(undefined4 *)(param_1 + 0x15ec) = 0;
}
if (*(float *)(&DAT_000015f4 + param_1) != 0.0) {
if (*(char *)(param_1 + 0x6c) == '\0') {
pCVar3 = *(CBaseEdict **)(param_1 + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar6 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar6 + 2) = 0;
}
}
else {
*(byte *)(param_1 + 0x70) = *(byte *)(param_1 + 0x70) | 1;
}
*(undefined4 *)(&DAT_000015f4 + param_1) = 0;
}
CFourWheelVehiclePhysics::TurnOff((CFourWheelVehiclePhysics *)(param_1 + 0x13f8));
(**(code **)(**(int **)(param_1 + 0x141c) + 0x34))(*(int **)(param_1 + 0x141c));
uVar4 = r_JeepFOV._28_4_;
iVar6 = *(int *)(param_1 + 0x1554);
*(undefined4 *)(iVar6 + 500) = vec3_origin;
uVar5 = DAT_01053d4c;
*(undefined1 *)(iVar6 + 0x1de) = 0;
*(undefined4 *)(iVar6 + 0x1f8) = uVar5;
*(undefined4 *)(iVar6 + 0x1fc) = DAT_01053d50;
*(undefined4 *)(iVar6 + 0x1e8) = vec3_angle;
*(undefined4 *)(iVar6 + 0x1ec) = DAT_01053d40;
*(undefined4 *)(iVar6 + 0x1f0) = DAT_01053d44;
*(undefined4 *)(iVar6 + 0x1b8) = *(undefined4 *)(uVar4 + 0x2c);
return;
}
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.