CBreakableSurface::CreateShards
0x006b88e0 · 475 bytes · __cdecl
_ZN17CBreakableSurface12CreateShardsERK6VectorRK6QAngleS2_S2_ffi
Decompiled
undefined (7 params)
/* CBreakableSurface::CreateShards(Vector const&, QAngle const&, Vector const&, Vector const&,
float, float, int) */
void CBreakableSurface::CreateShards
(Vector *param_1,QAngle *param_2,Vector *param_3,Vector *param_4,float param_5,
float param_6,int param_7)
{
undefined4 local_74;
undefined4 local_70;
undefined4 local_6c;
undefined4 local_68;
undefined4 local_64;
undefined4 local_60;
float local_54;
float local_50;
float local_4c;
float local_48;
float local_44;
float local_40;
undefined **local_3c [11];
local_54 = *(float *)param_2;
local_50 = *(float *)(param_2 + 4);
local_4c = *(float *)(param_2 + 8);
local_48 = *(float *)param_4;
local_44 = *(float *)(param_4 + 4);
local_40 = *(float *)(param_4 + 8);
if (*(int *)(param_1 + 0x528) == 1) {
local_74 = 0x15;
local_70 = 0x4c;
local_6c = 99;
local_68 = 0x53;
local_64 = 0x78;
local_60 = 0x59;
local_54 = local_54 - *(float *)(param_1 + 0x50c) * 8.0;
local_50 = local_50 - *(float *)(param_1 + 0x510) * 8.0;
local_4c = local_4c - *(float *)(param_1 + 0x514) * 8.0;
local_44 = *(float *)(param_4 + 4) * -0.75;
local_40 = *(float *)(param_4 + 8) * -0.75;
local_48 = *(float *)param_4 * -0.75;
}
else {
local_74 = 0xff;
local_70 = 0xff;
local_6c = 0xff;
local_68 = 0xff;
local_64 = 0xff;
local_60 = 0xff;
}
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CPASFilter_00bfaf28;
/* try { // try from 006b896a to 006b896e has its CatchHandler @ 006b8ad7 */
CRecipientFilter::AddRecipientsByPAS((CRecipientFilter *)local_3c,(Vector *)&local_54);
/* try { // try from 006b89f0 to 006b89f2 has its CatchHandler @ 006b8abe */
(**(code **)(*(int *)te + 0x58))
(te,(CRecipientFilter *)local_3c,0,(Vector *)&local_54,param_3,&local_48,param_5,param_6
,param_7,0x40800000,*(undefined4 *)(param_1 + 0x528),local_60,local_64,local_68,
local_6c,local_70,local_74);
local_3c[0] = &PTR__CPASFilter_00bfaf28;
CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_3c);
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.