PDA

View Full Version : Changing autoshoot on ogc


DExPlAiNeR
2nd September 2002, 09:05
Aight im a novice coder... anyways...

I need OGC's auto to be like it used to be... like when it shoots it speeds.. Helpz0r me? Btw, I use Liquid final source. Cause I cant compile UGC with my Microsoft Visual C++ 6.0

Thats another problem 2....I added my fixed apihook.cpp and every thing and it wont compile... cause these newer hacks wont compile on Microsoft Visual C++ 6.0 without that fixed apihook.cpp... so if you know a fix or something hook me up :D...

Ok now help me *******.

Also you gonna flame me on autoshoot.... kiss my ass bro its a way of playing :D.. also i dont use it 24/7 i use it in scripts

greenball
2nd September 2002, 10:53
// handle autoaim/autoshoot
if(Aimbot_active)
{
// auto shoot
if (cvar.shoot && bAttacking)
{ if ( (cvar.burstflags & BurstInfo::BURSTFLAG_ZOOM) && !me.inZoomMode )
{
usercmd->buttons |= IN_ATTACK2;
} else{
usercmd->buttons |= IN_ATTACK;
}
}

// last use of Aimbot_viewangles, prevent further use
Aimbot_active = false;

}

--->hint:
u want to set the cvar.speed to the cvar.aspeed value if the
aimbot is active...
if not set cvar.speed to 1

DExPlAiNeR
2nd September 2002, 11:31
Of course aimbot is active.. I am a hardcore hacker ;D

DExPlAiNeR
2nd September 2002, 12:33
Will this work?

// auto-speed
if(cvar.aspeed>1)
{
cvar.speed = cvar.aspeed;
}

greenball
6th September 2002, 18:08
if you put that to the right position.....

the code i quoted is part of the aiming code in ogc
when the aimbot chooses a target and decides to aim
at it, it sets the flag Aimbot_active.

now this code checks 4 this flag, then checks if the zoom
burstflag is set, if so activates 2cond mouse button
else
usercmd->buttons |= IN_ATTACK;
taps mouse1 to fire.

what you want to do is put this:
// auto-speed
if(cvar.aspeed>1)
{
cvar.speed = cvar.aspeed;
}

in the right position so everytime the bot locks on a target
aspeed is activated.
but you also have to put this:
cvar.speed = 1;
somewhere later when the lock on aint happening anymore to
stop the speed if noone is in sight.