CGameMovement::GameMovementTraceHull
0x008e7360 · 508 bytes · __thiscall
_ZN13CGameMovement21GameMovementTraceHullERK6VectorS2_S2_S2_jP12ITraceFilterP10CGameTrace
Decompiled
undefined (8 params)
/* CGameMovement::GameMovementTraceHull(Vector const&, Vector const&, Vector const&, Vector const&,
unsigned int, ITraceFilter*, CGameTrace*) */
void __thiscall
CGameMovement::GameMovementTraceHull
(CGameMovement *this,Vector *param_1,Vector *param_2,Vector *param_3,Vector *param_4,
uint param_5,ITraceFilter *param_6,CGameTrace *param_7)
{
int *piVar1;
char cVar2;
float local_5c;
float local_58;
float local_54;
float local_4c;
float local_48;
float local_44;
float local_3c;
float local_38;
float local_34;
float local_2c;
float local_28;
float local_24;
undefined4 local_1c;
undefined1 local_18;
undefined1 local_17;
local_1c = 0;
*(int *)(this + 2000) = *(int *)(this + 2000) + 1;
local_4c = *(float *)param_2 - *(float *)param_1;
local_48 = *(float *)(param_2 + 4) - *(float *)(param_1 + 4);
local_44 = *(float *)(param_2 + 8) - *(float *)(param_1 + 8);
local_17 = local_48 * local_48 + local_4c * local_4c + local_44 * local_44 != 0.0;
local_2c = (*(float *)param_4 - *(float *)param_3) * 0.5;
local_28 = (*(float *)(param_4 + 4) - *(float *)(param_3 + 4)) * 0.5;
local_3c = (*(float *)param_4 + *(float *)param_3) * 0.5;
local_24 = (*(float *)(param_4 + 8) - *(float *)(param_3 + 8)) * 0.5;
piVar1 = *(int **)(this + 0x7cc);
local_38 = (*(float *)(param_4 + 4) + *(float *)(param_3 + 4)) * 0.5;
local_34 = (*(float *)(param_4 + 8) + *(float *)(param_3 + 8)) * 0.5;
local_5c = *(float *)param_1 + local_3c;
local_54 = *(float *)(param_1 + 8) + local_34;
local_58 = *(float *)(param_1 + 4) + local_38;
local_18 = local_28 * local_28 + local_2c * local_2c + local_24 * local_24 < 1e-06;
local_3c = -local_3c;
local_38 = -local_38;
local_34 = -local_34;
if (piVar1 != (int *)0x0) {
cVar2 = (**(code **)(*piVar1 + 0x10))(piVar1,&local_5c);
if (cVar2 != '\0') {
(**(code **)(*enginetrace + 0x20))
(enginetrace,&local_5c,*(undefined4 *)(this + 0x7cc),param_5,param_6,param_7);
return;
}
}
(**(code **)(*enginetrace + 0x14))(enginetrace,&local_5c,param_5,param_6,param_7);
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.