GetLongFloorZ
0x00748aa0 · 644 bytes · __cdecl
_Z13GetLongFloorZRK6Vector
Decompiled
undefined (1 param)
/* GetLongFloorZ(Vector const&) */
longdouble GetLongFloorZ(Vector *param_1)
{
CTraceFilterSimple local_13c [16];
undefined4 local_12c;
undefined4 local_128;
undefined4 local_124;
undefined4 local_11c;
undefined4 local_118;
undefined4 local_114;
undefined4 local_10c;
undefined4 local_108;
undefined4 local_104;
undefined4 local_fc;
undefined4 local_f8;
undefined4 local_f4;
undefined4 local_ec;
undefined1 local_e8;
undefined1 local_e7;
Vector local_d0 [12];
Vector local_c4 [8];
float local_bc;
float local_a4;
undefined4 local_7c;
undefined4 local_78;
undefined4 local_74;
Vector local_70 [4];
undefined4 local_6c;
float local_68;
undefined4 local_64;
undefined4 local_5c;
undefined4 local_58;
undefined4 local_54;
float local_50;
undefined4 local_4c;
undefined4 local_48;
undefined4 local_44;
undefined4 local_3c;
undefined1 local_38;
undefined1 local_37;
int local_30;
local_6c = 0;
local_68 = 0.0;
local_64 = 0xc5000000;
local_37 = 1;
local_44 = 0;
local_7c = *(undefined4 *)param_1;
local_48 = 0;
local_78 = *(undefined4 *)(param_1 + 4);
local_4c = 0;
local_74 = *(undefined4 *)(param_1 + 8);
local_3c = 0;
local_38 = 1;
local_54 = 0;
local_58 = 0;
local_5c = 0;
CTraceFilterSimple::CTraceFilterSimple
((CTraceFilterSimple *)&local_12c,(IHandleEntity *)0x0,0,
(_func_bool_IHandleEntity_ptr_int *)0x0);
(**(code **)(*enginetrace + 0x14))
(enginetrace,(Vector *)&local_7c,0x2400b,(CTraceFilterSimple *)&local_12c,local_d0);
if (*(int *)(r_visualizetraces._28_4_ + 0x30) != 0) {
DebugDrawLine(local_d0,local_c4,0xff,0,0,true,-1.0);
}
local_12c = *(undefined4 *)param_1;
local_e7 = 1;
local_128 = *(undefined4 *)(param_1 + 4);
local_11c = 0;
local_124 = *(undefined4 *)(param_1 + 8);
local_118 = 0;
local_114 = 0xc5000000;
local_f4 = 0;
local_f8 = 0;
local_fc = 0;
local_ec = 0;
local_e8 = 1;
local_104 = 0;
local_108 = 0;
local_10c = 0;
CTraceFilterSimple::CTraceFilterSimple
(local_13c,(IHandleEntity *)0x0,0,(_func_bool_IHandleEntity_ptr_int *)0x0);
(**(code **)(*enginetrace + 0x14))
(enginetrace,(CTraceFilterSimple *)&local_12c,0x202400b,local_13c,(Vector *)&local_7c);
if (*(int *)(r_visualizetraces._28_4_ + 0x30) != 0) {
DebugDrawLine((Vector *)&local_7c,local_70,0xff,0,0,true,-1.0);
}
if (((local_a4 <= local_50) || (local_30 == 0)) || ((*(byte *)(local_30 + 0x153) & 1) == 0)) {
local_68 = local_bc;
}
return (longdouble)local_68;
}
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.