CTerrorPlayer::Fling
0x009ab140 · 588 bytes · __thiscall
_ZN13CTerrorPlayer5FlingERK6Vector17PlayerAnimEvent_tP20CBaseCombatCharacterf
Decompiled
undefined (5 params)
/* CTerrorPlayer::Fling(Vector const&, PlayerAnimEvent_t, CBaseCombatCharacter*, float) */
void __thiscall
CTerrorPlayer::Fling
(CTerrorPlayer *this,Vector *param_1,undefined4 param_3,CBaseCombatCharacter *param_4,
float param_5)
{
CBaseEdict *this_00;
uint uVar1;
int iVar2;
undefined *puVar3;
undefined4 local_78;
undefined4 local_74;
float local_70;
undefined4 local_6c;
undefined4 local_68;
float local_64;
CGameTrace local_60 [12];
Vector local_54 [32];
float local_34;
char local_2a;
char local_29;
CBaseEntity::SetGroundEntity((CBaseEntity *)this,(CBaseEntity *)0x0);
if (((byte)this[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
}
local_78 = *(undefined4 *)(this + 0x2e0);
local_74 = *(undefined4 *)(this + 0x2e4);
local_70 = *(float *)(this + 0x2e8);
local_64 = local_70 + 18.0;
local_6c = local_78;
local_68 = local_74;
uVar1 = (**(code **)(*(int *)this + 0x7a0))(this,0);
UTIL_TraceEntity((CBaseEntity *)this,(Vector *)&local_78,(Vector *)&local_6c,uVar1,
(IHandleEntity *)this,8,local_60);
if (((local_34 == 1.0) && (local_29 == '\0')) && (local_2a == '\0')) {
CBaseEntity::SetAbsOrigin((CBaseEntity *)this,local_54);
}
CBaseEntity::ApplyAbsVelocityImpulse((CBaseEntity *)this,param_1);
SetResponsibleForAirMovement(this,param_4);
(**(code **)(*(int *)this + 0x7fc))(this,param_3,0);
CBasePlayer::ClearUseEntity((CBasePlayer *)this);
uVar1 = *(uint *)(this + 0x33c4);
if (((uVar1 != 0xffffffff) &&
(puVar3 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar3 != (undefined *)0xfffffffc)) &&
((*(uint *)(puVar3 + 8) == uVar1 >> 0xc &&
(*(CTerrorPlayer **)(puVar3 + 4) != (CTerrorPlayer *)0x0)))) {
ReleaseTongueVictim(*(CTerrorPlayer **)(puVar3 + 4),false);
}
uVar1 = *(uint *)(this + 0x3ee0);
if (((uVar1 != 0xffffffff) &&
(puVar3 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar3 != (undefined *)0xfffffffc)) &&
((*(uint *)(puVar3 + 8) == uVar1 >> 0xc &&
(*(CTerrorPlayer **)(puVar3 + 4) != (CTerrorPlayer *)0x0)))) {
OnRideEnded(*(CTerrorPlayer **)(puVar3 + 4),(CTerrorPlayer *)0x0);
}
if ((0.0 < param_5) &&
(param_5 = *(float *)(gpGlobals + 0xc) + param_5, param_5 != *(float *)(this + 0x401c))) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
this_00 = *(CBaseEdict **)(this + 0x30);
if (this_00 != (CBaseEdict *)0x0) {
*(uint *)this_00 = *(uint *)this_00 | 0x101;
iVar2 = CBaseEdict::GetChangeAccessor(this_00);
*(undefined2 *)(iVar2 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
*(float *)(this + 0x401c) = param_5;
return;
}
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.