Post: [SOURCE] Perfect Triggerbot (All CODs)
08-28-2017, 07:36 PM #1
TheGreenPlanet
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); HI NGU! I thought id share my very simple but efficient way of creating a triggerbot:

    void pTriggerbot(void)
{
if (!isAlive(cgArray_s->clientNum))
return;

trace_t trace;
float fCheckDist = 8192.f;
Vector3 start = cgArray_s->refdef.Origin;
Vector3 end = start + (cgArray_s->refdef.ViewAxis[0] * fCheckDist);

CG_LocationalTrace(&trace, &start, &end, cgArray_s->clientNum, 0x2803001); //Mask will differ depending on the game
int hitEnt = Trace_GetEntityHitID(&trace);

if (hitEnt <= 17 && trace.fraction <= 1.0 && isEnemy(cgArray_s->clientNum, hitEnt))
{
if (centity_s[hitEnt].eType == ET_PLAYER && centity_s[hitEnt].Alive)
//Shoot
}
}


Credits goes to Activision, Treyarch and Infinity Ward for their help Smile
You must login or register to view this content.

Result: (video shows COD4 but it'll work for all CODs):
Last edited by TheGreenPlanet ; 08-28-2017 at 08:57 PM.

The following 4 users say thank you to TheGreenPlanet for this useful post:

-JM-, Bigmoneyhustlin, lucasaf01, S63
09-02-2017, 01:31 PM #2
lucasaf01
Gym leader
Nice share bud
09-03-2017, 12:56 PM #3
TheGreenPlanet
Do a barrel roll!
Originally posted by lucasaf01 View Post
Nice share bud


Thanks Smile
10-18-2017, 04:14 PM #4
S63
Space Ninja
Originally posted by TheGreenPlanet View Post
HI NGU! I thought id share my very simple but efficient way of creating a triggerbot:

    void pTriggerbot(void)
{
if (!isAlive(cgArray_s->clientNum))
return;

trace_t trace;
float fCheckDist = 8192.f;
Vector3 start = cgArray_s->refdef.Origin;
Vector3 end = start + (cgArray_s->refdef.ViewAxis[0] * fCheckDist);

CG_LocationalTrace(&trace, &start, &end, cgArray_s->clientNum, 0x2803001); //Mask will differ depending on the game
int hitEnt = Trace_GetEntityHitID(&trace);

if (hitEnt <= 17 && trace.fraction <= 1.0 && isEnemy(cgArray_s->clientNum, hitEnt))
{
if (centity_s[hitEnt].eType == ET_PLAYER && centity_s[hitEnt].Alive)
//Shoot
}
}


Credits goes to Activision, Treyarch and Infinity Ward for their help Smile
You must login or register to view this content.

Result: (video shows COD4 but it'll work for all CODs):


nice release but i doubt anyone will be able to use this as half the 'modders' are like 12 and dno wtf c++ is lmfao

The following user thanked S63 for this useful post:

TheGreenPlanet
10-29-2017, 06:39 PM #5
thank for this release Happy
12-20-2017, 12:39 PM #6
Thanks for sharing this man
05-18-2019, 01:26 AM #7
How do I get it?
07-01-2019, 02:14 AM #8
Tutorial to download and use?
07-02-2019, 01:00 PM #9
Shadow
Banned
Originally posted by fweijfn34u View Post
Tutorial to download and use?

Its a source which means youll have to compile it for your own use

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo