...
DWORD bBombPlanted = 0x8F1;
bool plant = mem.Read<bool>(bBombPlanted);
if (plant == true) { ...
if ( pEntity->GetClientClass().m_iClassId == ClassID::PlantedC4) {
bool isTicking = GetEntityNetvar<bool>(pEntity, "m_bBombTicking");
if( isTicking ){
//Draw timer
}

void tig() {
DWORD attack = 0x02E8F2B4;
DWORD CrossHairID = 0x00002410;
int inCross = mem.Read<int>(modClient.dwBase + CrossHairID);
DWORD Trigger_EntityBase = mem.Read<DWORD>(modClient.dwBase + offEntityList + ((inCross - 1) * 16));
int Trigger_EntityBase_TeamID = mem.Read<int>(Trigger_EntityBase + offEntityTeam);
int LocalPlayer_Team = mem.Read<int>(modClient.dwBase + offEntityTeam);
int TriggerDelay = 10;
if (inCross > 0 && inCross <= 64) {
if (Trigger_EntityBase_TeamID != LocalPlayer_Team) {
Sleep(TriggerDelay);
/* +attack */
mem.Write<int>(modClient.dwBase + attack, 1);
/* Sleep one millisecond */
Sleep(1);
/* -attack */
mem.Write<int>(modClient.dwBase + attack, 0);
}
}
}


//... in trigger
if (pLocal->Team != pEntity->Team) {
srand(g_pEngine->Timer->GetTime());
g_pEngine->gMemory()->Write<int>(gContainer->_client + gAddress()->GetOffy()->Attack, 5);
Sleep(rand() % 150);
g_pEngine->gMemory()->Write<int>(gContainer->_client + gAddress()->GetOffy()->Attack, 4);
}
//...
if ( pEntity->GetClientClass().m_iClassId == ClassID::PlantedC4) {
bool isTicking = GetEntityNetvar<bool>(pEntity, "m_bBombTicking");
if( isTicking ){
//Draw timer
}
ID - Name 001 - CAK47 009 - CBaseCSGrenadeProjectile 011 - CBaseEntity 020 - CBaseTrigger 028 - CC4 029 - CCascadeLight 031 - CColorCorrection 033 - CCSGameRulesProxy 034 - CCSPlayer 035 - CCSPlayerResource 036 - CCSRagdoll 037 - CCSTeam 038 - CDEagle 039 - CDecoyGrenade 042 - CDynamicProp 057 - CEnvTonemapController 058 - CEnvWind 064 - CFogController 066 - CFunc_Dust 069 - CFuncBrush 081 - CHEGrenade 088 - CKnife 092 - CMolotovGrenade 097 - CParticleSystem 101 - CPhysicsPropMultiplayer 103 - CPlantedC4 109 - CPostProcessController 112 - CPredictedViewModel 120 - CRopeKeyframe 123 - CShadowControl 125 - CSmokeGrenade 130 - CSprite 135 - CSun 192 - CVGuiScreen 193 - CVoteController 197 - CWeaponAWP 203 - CWeaponFamas 207 - CWeaponGalilAR 208 - CWeaponGlock 209 - CWeaponHKP2000 210 - CWeaponM249 212 - CWeaponM4A1 214 - CWeaponMag7 217 - CWeaponMP9 218 - CWeaponNegev 219 - CWeaponNOVA 221 - CWeaponP250 228 - CWeaponSG556 235 - CWeaponXM1014
Can somebody explain :?void c4glow() {
DWORD C4Glow = mem.Read<DWORD>(modClient.dwBase + offGlow);
if (C4Glow != NULL) {
int getweap = mem.Read<int>(offEntityList + 0x00001690); //iWeaponID
DWORD C4Obj = C4Glow + i * sizeof(GlowObjectDefinition_t);
GlowObjectDefinition_t glowObj = mem.Read<GlowObjectDefinition_t>(C4Obj);
if (getweap == 028) //NOTPLANTED C4
mem.Write<float>(C4Obj + 0x4, vm / 255);
mem.Write<float>(C4Obj + 0x8, vr / 255);
mem.Write<float>(C4Obj + 0xC, az / 255);
mem.Write<float>(C4Obj + 0x10, m);
mem.Write<BOOL>(C4Obj + 0x24, true);
mem.Write<BOOL>(C4Obj + 0x25, false);
}
}