CBasePlayer::ActivateMovementConstraint
0x007b7510 · 703 bytes · __thiscall
_ZN11CBasePlayer26ActivateMovementConstraintEP11CBaseEntityRK6Vectorfffb
Decompiled
undefined (7 params)
/* CBasePlayer::ActivateMovementConstraint(CBaseEntity*, Vector const&, float, float, float, bool)
*/
void __thiscall
CBasePlayer::ActivateMovementConstraint
(CBasePlayer *this,CBaseEntity *param_1,Vector *param_2,float param_3,float param_4,
float param_5,bool param_6)
{
uint uVar1;
CBaseEdict *pCVar2;
int iVar3;
undefined4 *puVar4;
undefined *puVar5;
CBaseEntity *pCVar6;
float fVar7;
pCVar6 = (CBaseEntity *)0x0;
uVar1 = *(uint *)(this + 0x208c);
if (((uVar1 != 0xffffffff) &&
(puVar5 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar5 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar5 + 8) == uVar1 >> 0xc)) {
pCVar6 = *(CBaseEntity **)(puVar5 + 4);
}
if (param_1 == pCVar6) {
LAB_007b75a3:
fVar7 = *(float *)param_2;
if (fVar7 == *(float *)(this + 0x2090)) {
LAB_007b75b4:
if ((*(float *)(param_2 + 4) == *(float *)(this + 0x2094)) &&
(*(float *)(param_2 + 8) == *(float *)(this + 0x2098))) {
fVar7 = *(float *)(this + 0x209c);
goto joined_r0x007b76df;
}
}
}
else {
if (this[0x6c] == (CBasePlayer)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CBasePlayer)((byte)this[0x70] | 1);
}
if (param_1 != (CBaseEntity *)0x0) {
puVar4 = (undefined4 *)(**(code **)(*(int *)param_1 + 0xc))(param_1);
*(undefined4 *)(this + 0x208c) = *puVar4;
goto LAB_007b75a3;
}
*(undefined4 *)(this + 0x208c) = 0xffffffff;
fVar7 = *(float *)param_2;
if (fVar7 == *(float *)(this + 0x2090)) goto LAB_007b75b4;
}
if (this[0x6c] == (CBasePlayer)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
fVar7 = *(float *)param_2;
}
}
else {
this[0x70] = (CBasePlayer)((byte)this[0x70] | 1);
fVar7 = *(float *)param_2;
}
*(float *)(this + 0x2090) = fVar7;
fVar7 = *(float *)(this + 0x209c);
*(undefined4 *)(this + 0x2094) = *(undefined4 *)(param_2 + 4);
*(undefined4 *)(this + 0x2098) = *(undefined4 *)(param_2 + 8);
joined_r0x007b76df:
if (param_3 == fVar7) {
fVar7 = *(float *)(this + 0x20a0);
}
else {
if (this[0x6c] == (CBasePlayer)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CBasePlayer)((byte)this[0x70] | 1);
}
fVar7 = *(float *)(this + 0x20a0);
*(float *)(this + 0x209c) = param_3;
}
if (param_4 == fVar7) {
fVar7 = *(float *)(this + 0x20a4);
}
else {
if (this[0x6c] == (CBasePlayer)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CBasePlayer)((byte)this[0x70] | 1);
}
fVar7 = *(float *)(this + 0x20a4);
*(float *)(this + 0x20a0) = param_4;
}
if (param_5 != fVar7) {
if (this[0x6c] == (CBasePlayer)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CBasePlayer)((byte)this[0x70] | 1);
}
*(float *)(this + 0x20a4) = param_5;
}
if (this[0x20a8] != (CBasePlayer)param_6) {
if (this[0x6c] == (CBasePlayer)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CBasePlayer)((byte)this[0x70] | 1);
}
this[0x20a8] = (CBasePlayer)param_6;
}
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.