CEnvProjectedTexture::CEnvProjectedTexture
0x00694770 · 1105 bytes · __thiscall
_ZN20CEnvProjectedTextureC2Ev
Decompiled
undefined (1 param)
/* CEnvProjectedTexture::CEnvProjectedTexture() */
void __thiscall CEnvProjectedTexture::CEnvProjectedTexture(CEnvProjectedTexture *this)
{
undefined4 uVar1;
float fVar2;
CBaseEdict *pCVar3;
CEnvProjectedTexture CVar4;
int iVar5;
CBaseEntity::CBaseEntity((CBaseEntity *)this,false);
*(undefined ***)this = &PTR__CEnvProjectedTexture_00c7f4a8;
*(undefined4 *)(this + 0x440) = 0xffffffff;
if (this[0x444] == (CEnvProjectedTexture)0x1) {
CVar4 = this[0x6c];
}
else {
if (this[0x6c] == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 == (CBaseEdict *)0x0) {
CVar4 = (CEnvProjectedTexture)0x0;
}
else {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
/* try { // try from 006947c6 to 00694b58 has its CatchHandler @ 00694c4f */
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
CVar4 = this[0x6c];
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
CVar4 = (CEnvProjectedTexture)0x1;
}
this[0x444] = (CEnvProjectedTexture)0x1;
}
if (*(float *)(this + 0x448) != 45.0) {
if (CVar4 == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
CVar4 = this[0x6c];
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x448) = 0x42340000;
}
if (this[0x44c] != (CEnvProjectedTexture)0x0) {
if (CVar4 == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
CVar4 = this[0x6c];
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
this[0x44c] = (CEnvProjectedTexture)0x0;
}
if (this[0x44d] != (CEnvProjectedTexture)0x0) {
if (CVar4 == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
CVar4 = this[0x6c];
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
this[0x44d] = (CEnvProjectedTexture)0x0;
}
if (this[0x44e] != (CEnvProjectedTexture)0x1) {
if (CVar4 == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
CVar4 = this[0x6c];
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
this[0x44e] = (CEnvProjectedTexture)0x1;
}
if (this[0x44f] != (CEnvProjectedTexture)0x0) {
if (CVar4 == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
CVar4 = this[0x6c];
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
this[0x44f] = (CEnvProjectedTexture)0x0;
}
if (CVar4 == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
uVar1 = *(undefined4 *)(gpGlobals + 0xc);
*(undefined4 *)(this + 0x78) = 0;
*(undefined4 *)(this + 0x74) = uVar1;
_V_strcpy((char *)(this + 0x460),"effects/flashlight001");
if (*(int *)(this + 0x564) != 0) {
if (this[0x6c] == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x564) = 0;
}
if (((*(float *)(this + 0x450) == 1.0) && (*(float *)(this + 0x454) == 1.0)) &&
(*(float *)(this + 0x458) == 1.0)) {
fVar2 = *(float *)(this + 0x45c);
}
else {
if (this[0x6c] == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x450) = 0x3f800000;
fVar2 = *(float *)(this + 0x45c);
*(undefined4 *)(this + 0x454) = 0x3f800000;
*(undefined4 *)(this + 0x458) = 0x3f800000;
}
if (fVar2 != 0.0) {
if (this[0x6c] == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x45c) = 0;
}
if (*(float *)(this + 0x568) != 4.0) {
if (this[0x6c] == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x568) = 0x40800000;
}
if (*(float *)(this + 0x56c) != 750.0) {
if (this[0x6c] == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
}
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x56c) = 0x443b8000;
}
if (*(int *)(this + 0x570) != 0) {
if (this[0x6c] == (CEnvProjectedTexture)0x0) {
pCVar3 = *(CBaseEdict **)(this + 0x30);
if (pCVar3 != (CBaseEdict *)0x0) {
*(uint *)pCVar3 = *(uint *)pCVar3 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar3);
*(undefined2 *)(iVar5 + 2) = 0;
}
*(undefined4 *)(this + 0x570) = 0;
}
else {
this[0x70] = (CEnvProjectedTexture)((byte)this[0x70] | 1);
*(undefined4 *)(this + 0x570) = 0;
}
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.