PostAutomated C4 stuff

Posts 1–15 of 19 · Page 1 of 2
Automated C4 stuff
1st: a keybind:

 
Code:
if (GetAsyncKeyState(whateva)&1)
{
if(!bImAVehicle)
bDeployC4 = true;
}


2nd: some globals:

 
Code:
int C4Count=0; bool btmp,bAutoC4=false,bDeployC4 ;


3rd: a helper function

 
code:
BOOL CAres::TurnOff()
{
if(( timeGetTime() < (iStartCount + 2000))) return FALSE;
pBorderInputNode->m_inputCache->flInputBuffer[ConceptSwitchToPrimaryWeapon] = 1.0f;
bAutoC4=false;
btmp=false;
iC4Count = 0;
return TRUE;
}


4th: something for your engine loop, u need to have this inside the player iteration:

 
Code:
if(bDeployC4)
{
if(iC4Count <=17)
iC4Count += 1.0f;
pMySoldier->GetVector(&vStaticVecC4[iC4Count]);
bAutoC4 = true;
btmp=false;
bDeployC4 = false;
}
if (bAutoC4 && !GotTarget)
{
if (bIsEnemy )
pVector.vTargetEnemy = pVector.vTarget;

for (int itmp =1; itmp<=iC4Count; itmp++ )
{
if((vStaticVecC4[itmp].DistanceToVector(pVector.vTargetEnemy ) <= 6.f )
&& (vAres.vMe.DistanceToVector(vStaticVecC4[itmp]) >= 5.f)
&& IsVisibleForC4(&vStaticVecC4[itmp],&pVector.vTargetEnemy))
{
if(bSwitchable)
{
pBorderInputNode->m_inputCache->flInputBuffer[ConceptSwitchToDynamicGadget2] = 1.0f;
iStartCount = timeGetTime();
btmp=true;
}
AutoFireLogic();


4th: more stuff you initiate when ur dead:

 
Code:
if(!MyPlayer || !MyPlayer->getSoldierEnt())
{
bDead = 1;
iC4Count=0;
bDeployC4 = 0;
bAutoC4 = 0;
bIsCloseAttack= 0;
}


when u have deployed your c4 you press your key (whateva). when enemy now comes close to your explosive your player will switch to detanotor and explode the c4 automaticly. switches back to your main weapon after that and checks also that you are not within explosive blast radius. Current code saves up to 17 different locations on the map. Missing stuff is quite easy and can be added by yourself, like the visibility check.

enemy dead = profit.
girl why you still post this useless things
Quote Originally Posted by TeddyBoy95 View Post
girl why you still post this useless things
-.- ??
@the.. 2 dumb ppl who posted above
this is useful for ppl who makes the hack for the game and not for ignorants like you
Quote Originally Posted by lhikary View Post
@the.. 2 dumb ppl who posted above
this is useful for ppl who makes the hack for the game and not for ignorants like you
yup ...
Quote Originally Posted by UKnowWhatDK View Post
Me mad bro ?
''
lol, nice copypaste
yeah not urs give credit
Copied from UC.
How OP uploads hacks here:
Step 1: Go to some other websites
Step 2: Find a (detected) cheat
Step 3: COPY PASTE LOLOLOLOL
Step 4: ?????
Step 5: Profit
THIS WOMAN COPIES EVERYTHING FROM THERE stop it pls
Hey Asshole stop posting my code without my permission. Or without giving proper credits.

Wannabe ...
Hello
How i can put that working?
>TY
close thread???????????
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us