CPhysicsPushedEntities::RotateRootEntity
0x0078d040 · 732 bytes · __thiscall
_ZN22CPhysicsPushedEntities16RotateRootEntityEP11CBaseEntityfRNS_18RotatingPushMove_tE
Decompiled
undefined (4 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CPhysicsPushedEntities::RotateRootEntity(CBaseEntity*, float,
CPhysicsPushedEntities::RotatingPushMove_t&) */
void __thiscall
CPhysicsPushedEntities::RotateRootEntity
(CPhysicsPushedEntities *this,CBaseEntity *param_1,float param_2,
RotatingPushMove_t *param_3)
{
float fVar1;
float fVar2;
int iVar3;
char cVar4;
int iVar5;
undefined4 local_3c;
undefined4 local_38;
undefined4 local_34;
undefined4 local_30;
int local_2c;
float local_28;
float local_24;
float local_20;
local_3c = 0;
local_38 = 0;
if (___atan2f_finite == 0) {
local_2c = 0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_3c,0,0,0,0,"/data/src/game/server/physics_main.cpp",0x375,
&RotateRootEntity(CBaseEntity*,float,CPhysicsPushedEntities::RotatingPushMove_t&)::
tm_fmt,"(%s)%s","Unaccounted","CPhysicsPushedEntities::RotateRootEntity");
local_2c = ___atan2f_finite;
}
iVar3 = _DAT_0105db00;
local_34 = local_3c;
local_30 = local_38;
if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
/* try { // try from 0078d2b6 to 0078d304 has its CatchHandler @ 0078d356 */
iVar5 = ThreadGetCurrentId();
if (iVar3 == iVar5) {
if ((char *)*_DAT_0105d15c != "CPhysicsPushedEntities::RotateRootEntity") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xcb21e4,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
}
fVar1 = *(float *)(param_1 + 0x288);
fVar2 = *(float *)(param_1 + 0x280);
*(float *)(param_3 + 0x70) = param_2 * *(float *)(param_1 + 0x284);
*(float *)(param_3 + 0x74) = param_2 * fVar1;
*(float *)(param_3 + 0x6c) = param_2 * fVar2;
if (((byte)param_1[0x14d] & 8) != 0) {
/* try { // try from 0078d32b to 0078d32f has its CatchHandler @ 0078d335 */
CBaseEntity::CalcAbsolutePosition(param_1);
}
*(undefined4 *)param_3 = *(undefined4 *)(param_1 + 0x2e0);
*(undefined4 *)(param_3 + 4) = *(undefined4 *)(param_1 + 0x2e4);
*(undefined4 *)(param_3 + 8) = *(undefined4 *)(param_1 + 0x2e8);
if (((byte)param_1[0x14d] & 8) != 0) {
/* try { // try from 0078d172 to 0078d21a has its CatchHandler @ 0078d335 */
CBaseEntity::CalcAbsolutePosition(param_1);
}
MatrixCopy((matrix3x4_t *)(param_1 + 0x28c),(matrix3x4_t *)(param_3 + 0xc));
local_24 = param_2 * *(float *)(param_1 + 0x284) + *(float *)(param_1 + 0x3ac);
local_28 = param_2 * *(float *)(param_1 + 0x280) + *(float *)(param_1 + 0x3a8);
local_20 = param_2 * *(float *)(param_1 + 0x288) + *(float *)(param_1 + 0x3b0);
CBaseEntity::SetLocalAngles(param_1,(QAngle *)&local_28);
if (((byte)param_1[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition(param_1);
}
MatrixCopy((matrix3x4_t *)(param_1 + 0x28c),(matrix3x4_t *)(param_3 + 0x3c));
iVar3 = _DAT_0105db00;
if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
iVar5 = ThreadGetCurrentId();
if (iVar3 == iVar5) {
cVar4 = CVProfNode::ExitScope();
if (cVar4 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
}
if (local_2c != 0) {
(**(code **)(local_2c + 0x54))(local_2c,local_34,local_30,0,0,0);
}
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.