CCollisionProperty::ComputeSupportMap
0x0042a830 · 299 bytes · __thiscall
_ZNK18CCollisionProperty17ComputeSupportMapERK6Vector
Decompiled
undefined (2 params)
/* CCollisionProperty::ComputeSupportMap(Vector const&) const */
longdouble __thiscall
CCollisionProperty::ComputeSupportMap(CCollisionProperty *this,Vector *param_1)
{
float *pfVar1;
matrix3x4_t *pmVar2;
float fVar3;
float fVar4;
float fVar5;
float local_18;
float local_14;
float local_10;
if (((((byte)this[0x20] & 0x40) == 0) && (((byte)this[0x22] & 0xfd) != 0)) &&
((pfVar1 = (float *)(**(code **)(*(int *)this + 0x24))(this), vec3_angle != *pfVar1 ||
((DAT_01053d40 != pfVar1[1] || (DAT_01053d44 != pfVar1[2])))))) {
pmVar2 = (matrix3x4_t *)(**(code **)(*(int *)this + 0x28))(this);
VectorIRotate((float *)param_1,pmVar2,&local_18);
}
else {
local_18 = *(float *)param_1;
local_14 = *(float *)(param_1 + 4);
local_10 = *(float *)(param_1 + 8);
}
pfVar1 = (float *)(**(code **)(*(int *)this + 0x20))(this);
if (local_18 < 0.0) {
fVar5 = *(float *)(this + 8);
}
else {
fVar5 = *(float *)(this + 0x14);
}
if (local_14 < 0.0) {
fVar3 = *(float *)(this + 0xc);
}
else {
fVar3 = *(float *)(this + 0x18);
}
if (local_10 < 0.0) {
fVar4 = *(float *)(this + 0x10);
}
else {
fVar4 = *(float *)(this + 0x1c);
}
return (longdouble)
(local_10 * fVar4 +
fVar3 * local_14 +
fVar5 * local_18 +
*(float *)(param_1 + 4) * pfVar1[1] + *(float *)param_1 * *pfVar1 +
*(float *)(param_1 + 8) * pfVar1[2]);
}
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.