RandSIMD
0x0027bb90 · 97 bytes · unknown
_Z8RandSIMDv
Decompiled
undefined (0 params)
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* RandSIMD() */
void RandSIMD(void)
{
float fVar1;
float fVar2;
float fVar3;
float fVar4;
float fVar5;
float *pfVar6;
float *pfVar7;
pfVar6 = DAT_00402914;
pfVar7 = DAT_00402914 + 1;
fVar1 = DAT_00402914[2];
fVar2 = DAT_00402914[3];
fVar3 = DAT_00402910[1];
fVar4 = DAT_00402910[2];
fVar5 = DAT_00402910[3];
*DAT_00402914 =
(*DAT_00402914 + *DAT_00402910) -
(float)(-(uint)((float)0x3f800000 <= *DAT_00402914 + *DAT_00402910) & 0x3f800000);
pfVar6[1] = (*pfVar7 + fVar3) -
(float)(-(uint)((float)0x3f800000 <= *pfVar7 + fVar3) & 0x3f800000);
pfVar6[2] = (fVar1 + fVar4) - (float)(-(uint)((float)0x3f800000 <= fVar1 + fVar4) & 0x3f800000);
pfVar6[3] = (fVar2 + fVar5) - (float)(-(uint)((float)0x3f800000 <= fVar2 + fVar5) & 0x3f800000);
DAT_00402910 = DAT_00402910 + -4;
if (DAT_00402910 < &s_SIMDRandContexts) {
DAT_00402910 = (float *)&DAT_00402900;
}
pfVar7 = (float *)&DAT_00402900;
if ((float *)0x40259f < DAT_00402914 + -4) {
pfVar7 = DAT_00402914 + -4;
}
DAT_00402914 = pfVar7;
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.