InfectedDying::ComputeShoveForce
0x00a31d50 · 580 bytes · __thiscall
_ZN13InfectedDying17ComputeShoveForceEP8InfectedRK6Vector
Decompiled
undefined (3 params)
/* InfectedDying::ComputeShoveForce(Infected*, Vector const&) */
void __thiscall
InfectedDying::ComputeShoveForce(InfectedDying *this,Infected *param_1,Vector *param_2)
{
int *piVar1;
float *pfVar2;
CBaseEntity *pCVar3;
CBaseEntity *pCVar4;
float local_a0;
float local_9c;
float local_98;
float local_94;
float local_90;
float local_8c;
float local_88;
float local_84;
float local_80;
undefined4 local_7c;
undefined4 local_78;
undefined4 local_74;
undefined4 local_70;
undefined4 local_6c;
undefined4 local_68;
undefined4 local_64;
undefined4 local_60;
undefined4 local_5c;
undefined4 local_58;
undefined4 local_54;
undefined4 local_50;
undefined4 local_4c;
undefined4 local_48;
undefined4 local_44;
undefined4 local_40;
undefined4 local_3c;
undefined4 local_38;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
piVar1 = (int *)(**(code **)(*(int *)param_1 + 0x570))(param_1);
pfVar2 = (float *)(**(code **)(*piVar1 + 0x288))(piVar1);
local_a0 = *pfVar2;
local_9c = pfVar2[1];
local_94 = local_a0 - *(float *)param_2;
local_98 = pfVar2[2];
local_90 = local_9c - *(float *)(param_2 + 4);
local_8c = local_98 - *(float *)(param_2 + 8);
VectorNormalize((Vector *)&local_94);
local_88 = local_94 * 3.0;
local_84 = local_90 * 3.0;
local_80 = local_8c * 3.0;
pCVar3 = (CBaseEntity *)(**(code **)(*(int *)param_1 + 0x570))(param_1);
pCVar4 = (CBaseEntity *)(**(code **)(*(int *)param_1 + 0x570))(param_1);
CTakeDamageInfo::CTakeDamageInfo
((CTakeDamageInfo *)&local_7c,pCVar4,pCVar3,(Vector *)&local_88,(Vector *)&local_a0,50.0
,0x80,0,(Vector *)0x0);
CalculateMeleeDamageForce((CTakeDamageInfo *)&local_7c,(Vector *)&local_94,param_2,1.0);
*(undefined4 *)(this + 0x34) = local_7c;
*(undefined4 *)(this + 0x38) = local_78;
*(undefined4 *)(this + 100) = local_4c;
*(undefined4 *)(this + 0x3c) = local_74;
*(undefined4 *)(this + 0x40) = local_70;
*(undefined4 *)(this + 0x68) = local_48;
*(undefined4 *)(this + 0x44) = local_6c;
*(undefined4 *)(this + 0x48) = local_68;
*(undefined4 *)(this + 0x6c) = local_44;
*(undefined4 *)(this + 0x4c) = local_64;
*(undefined4 *)(this + 0x50) = local_60;
*(undefined4 *)(this + 0x54) = local_5c;
*(undefined4 *)(this + 0x58) = local_58;
*(undefined4 *)(this + 0x5c) = local_54;
*(undefined4 *)(this + 0x60) = local_50;
*(undefined4 *)(this + 0x70) = local_40;
*(undefined4 *)(this + 0x74) = local_3c;
*(undefined4 *)(this + 0x78) = local_38;
*(undefined4 *)(this + 0x7c) = local_34;
*(undefined4 *)(this + 0x8c) = local_24;
*(undefined4 *)(this + 0x80) = local_30;
*(undefined4 *)(this + 0x84) = local_2c;
*(undefined4 *)(this + 0x88) = local_28;
*(undefined4 *)(this + 0x90) = local_20;
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.