CCSPlayer::CCSPlayer
0x0065bb70 · 2219 bytes · __thiscall
_ZN9CCSPlayerC2Ev
Decompiled
undefined (1 param)
/* CCSPlayer::CCSPlayer() */
void __thiscall CCSPlayer::CCSPlayer(CCSPlayer *this)
{
undefined4 uVar1;
CBaseEdict *pCVar2;
int iVar3;
Vector *pVVar4;
CHintMessageQueue *this_00;
CCSPlayer *__s1;
undefined4 local_20 [4];
CBaseMultiplayerPlayer::CBaseMultiplayerPlayer((CBaseMultiplayerPlayer *)this);
*(undefined ***)this = &PTR__CCSPlayer_00c6e2a8;
*(undefined **)(this + 0x2364) = &DAT_00c6eb68;
*(undefined ***)(this + 0x23c0) = &PTR_NetworkStateChanged_00c23e10;
*(undefined4 *)(this + 0x23c4) = 0xbf800000;
*(undefined4 *)(this + 0x2834) = 0xffffffff;
*(undefined4 *)(this + 0x2894) = 0xffffffff;
*(undefined ***)(this + 0x28c4) = &PTR_NetworkStateChanged_00c23e10;
*(undefined4 *)(this + 0x28c8) = 0xbf800000;
*(undefined ***)(this + 0x28cc) = &PTR_NetworkStateChanged_00c23e10;
*(undefined4 *)(this + 0x28d0) = 0xbf800000;
/* try { // try from 0065bbed to 0065bbf1 has its CatchHandler @ 0065c53e */
CTakeDamageInfo::CTakeDamageInfo((CTakeDamageInfo *)(this + 0x2920));
*(undefined4 *)(this + 0x29b8) = 0;
*(undefined4 *)(this + 0x29bc) = 0;
*(undefined4 *)(this + 0x29c0) = 0;
*(undefined4 *)(this + 0x29d8) = 0xffffffff;
*(undefined4 *)(this + 0x29c4) = 0xffffffff;
*(undefined4 *)(this + 0x29c8) = 0xffffffff;
*(undefined4 *)(this + 0x29cc) = 0xffffffff;
*(undefined4 *)(this + 0x29d0) = 0;
*(undefined4 *)(this + 0x29d4) = 0;
*(undefined4 *)(this + 0x29dc) = 0;
*(undefined4 *)(this + 0x29e0) = 0;
*(undefined4 *)(this + 0x29e4) = 0;
*(undefined4 *)(this + 0x29e8) = 0;
*(undefined4 *)(this + 0x2a00) = 0xffffffff;
*(undefined4 *)(this + 0x29ec) = 0xffffffff;
*(undefined4 *)(this + 0x29f0) = 0xffffffff;
*(undefined4 *)(this + 0x29f4) = 0xffffffff;
*(undefined4 *)(this + 0x29f8) = 0;
*(undefined4 *)(this + 0x29fc) = 0;
*(undefined4 *)(this + 0x2a04) = 0;
*(undefined4 *)(this + 0x2a18) = 0;
*(undefined4 *)(this + 0x2a1c) = 0;
*(undefined4 *)(this + 0x2a20) = 0;
*(undefined4 *)(this + 0x2a24) = 0xffffffff;
*(undefined4 *)(this + 0x2a28) = 0;
*(undefined4 *)(this + 0x2a2c) = 0xffffffff;
*(undefined4 *)(this + 0x2a30) = 0xffffffff;
*(undefined4 *)(this + 0x2a34) = 0;
*(code **)(this + 0x2a14) = CaselessStringLessThan;
*(undefined ***)(this + 0x2a3c) = &PTR_NetworkStateChanged_00c0b6e0;
*(undefined4 *)(this + 0x2a40) = 0;
*(undefined4 *)(this + 0x2a44) = 0xbf800000;
/* try { // try from 0065bd50 to 0065bfc0 has its CatchHandler @ 0065c4c3 */
CBaseAnimating::UseClientSideAnimation((CBaseAnimating *)this);
*(undefined4 *)(this + 0x298c) = 0;
if (*(int *)(this + 0x29a0) != 0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x29a0) = 0;
}
__s1 = this + 0x29a4;
do {
local_20[0] = 0;
iVar3 = memcmp(__s1,local_20,4);
if (iVar3 != 0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)__s1 = 0;
}
__s1 = __s1 + 4;
} while (__s1 != this + 0x29b8);
this[0x23e2] = (CCSPlayer)0x0;
if (*(int *)(this + 0x23f0) != 0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x23f0) = 0;
}
this[0x23e3] = (CCSPlayer)0x0;
if (*(int *)(this + 0x290c) != 0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x290c) = 0;
}
if (((*(float *)(this + 0x2990) != 0.0) || (*(float *)(this + 0x2994) != 0.0)) ||
(*(float *)(this + 0x2998) != 0.0)) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x2990) = 0;
*(undefined4 *)(this + 0x2994) = 0;
*(undefined4 *)(this + 0x2998) = 0;
}
pVVar4 = (Vector *)(**(code **)(*g_pGameRules + 0x7c))(g_pGameRules);
CBaseEntity::SetViewOffset((CBaseEntity *)this,pVVar4);
*(undefined4 *)(this + 0x23c8) = 0;
if (*(int *)(this + 0x2890) != 0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x2890) = 0;
}
if (this[0x104] != (CCSPlayer)0x2) {
(**(code **)(*(int *)this + 0x21c))(this,this + 0x104);
this[0x104] = (CCSPlayer)0x2;
}
if (this[0x283c] != (CCSPlayer)0x0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
this[0x283c] = (CCSPlayer)0x0;
}
if (this[0x283d] != (CCSPlayer)0x0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
this[0x283d] = (CCSPlayer)0x0;
}
if (this[0x2844] != (CCSPlayer)0x0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
this[0x2844] = (CCSPlayer)0x0;
}
if (*(float *)(this + 0x1d5c) != 0.0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x1d5c) = 0;
}
*(undefined4 *)(this + 0x2858) = 0;
*(undefined4 *)(this + 0x23b4) = 0xffffffff;
this[0x23ec] = (CCSPlayer)0x0;
if (*(int *)(this + 0x2850) != 0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x2850) = 0;
}
if (*(int *)(this + 0x284c) != 0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x284c) = 0;
}
iVar3 = gpGlobals;
this[0x23cc] = (CCSPlayer)0x1;
this[0x299d] = (CCSPlayer)0x0;
this[0x2a10] = (CCSPlayer)0x0;
this[0x23f8] = (CCSPlayer)0x0;
this[0x23f9] = (CCSPlayer)0x0;
*(undefined4 *)(this + 0x23fc) = 0;
uVar1 = *(undefined4 *)(iVar3 + 0xc);
this[0x285c] = (CCSPlayer)0x0;
*(undefined4 *)(this + 0x2410) = 0;
*(undefined4 *)(this + 0x2400) = uVar1;
uVar1 = vec3_angle;
*(undefined4 *)(this + 0x2414) = 0xc4160000;
*(undefined4 *)(this + 0x2404) = uVar1;
uVar1 = DAT_01053d40;
*(undefined4 *)(this + 0x2418) = 0xc4160000;
*(undefined4 *)(this + 0x2408) = uVar1;
uVar1 = DAT_01053d44;
*(undefined4 *)(this + 0x241c) = 0xc4160000;
*(undefined4 *)(this + 0x240c) = uVar1;
*(undefined4 *)(this + 0x2420) = 0xc4160000;
*(undefined4 *)(this + 0x2424) = 0xc4160000;
*(undefined4 *)(this + 0x2368) = 0;
this[0x23b8] = (CCSPlayer)0x0;
this_00 = ::operator_new(0x1c);
/* try { // try from 0065bfca to 0065bfce has its CatchHandler @ 0065c542 */
CHintMessageQueue::CHintMessageQueue(this_00,(CBasePlayer *)this);
iVar3 = gpGlobals;
*(CHintMessageQueue **)(this + 0x238c) = this_00;
this[0x2394] = (CCSPlayer)0x1;
*(undefined4 *)(this + 0x2390) = 0;
uVar1 = *(undefined4 *)(iVar3 + 0xc);
*(undefined4 *)(this + 0x2984) = 0;
*(undefined4 *)(this + 0x2988) = 0;
*(undefined4 *)(this + 0x239c) = uVar1;
*(undefined4 *)(this + 0x291c) = 0;
*(undefined4 *)(this + 0x2a08) = 0;
if (*(int *)(this + 0x2a38) != 0) {
if (this[0x6c] == (CCSPlayer)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] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x2a38) = 0;
}
if (*(float *)(this + 0x2a44) != -1.0) {
(**(code **)(*(int *)(this + 0x2a3c) + 4))(this + 0x2a3c,this + 0x2a44);
*(undefined4 *)(this + 0x2a44) = 0xbf800000;
}
if (*(int *)(this + 0x242c) != 0xdc) {
if (this[0x6c] == (CCSPlayer)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
/* try { // try from 0065c069 to 0065c3c6 has its CatchHandler @ 0065c4c3 */
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CCSPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x242c) = 0xdc;
}
*(undefined4 *)(this + 0x23f4) = 0;
if (*(float *)(this + 0x2854) == 1.0) {
return;
}
if (this[0x6c] == (CCSPlayer)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar3 + 2) = 0;
}
*(undefined4 *)(this + 0x2854) = 0x3f800000;
}
else {
this[0x70] = (CCSPlayer)((byte)this[0x70] | 1);
*(undefined4 *)(this + 0x2854) = 0x3f800000;
}
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.