OldSchoolHack

Register / Login English

Warsow 0.5 hack Codes umwandeln

icon Thread: Warsow 0.5 hack Codes umwandeln

Join Date: Jan 2010

Posts: 4

Moin
also ich hab paar Codes gefunden fur Warsow (aktuelle) version
naja das prob ist ich kan nicht s mit den codes machen
deswegen wollte ich fragen ob
einer/eine so net wahre die codes in .exe dll. datei
umwandeln konnte evt.

so jetzt zu den Codes ^^

Engine [warsow]Simple Vector Aimbot



Code:

bool isVisible( vec3_t point )
{
trace_t t;

glob->Trace(&t,w_cg->view.origin, vec3_origin, vec3_origin,point, -1 , MASK_OPAQUE );

return ( t.fraction == 1.0f );
}

Code:

#define VectorSub(a,b,c) ((c)[0]=(a)[0]-(b)[0],(c)[1]=(a)[1]-(b)[1],(c)[2]=(a)[2]-(b)[2])
float AimbotGetDistance( vec3_t origin )
{
vec3_t vector;
VectorSub( origin,w_cg->view.refdef.vieworg, vector );
return ( sqrt( vector[0] * vector[0] + vector[1] * vector[1] + vector[2] * vector[2] ) );
}

Code:

vec3_t aimpoint;

#define HeadPoint 20

int AimAtFirstPlayer()
{
float leastDist=999;
int PlayerNum = -1;
for(int i = 0; i <MAX_CLIENTS; i ++)
{
if( w_cg_entities.current.solid && i != w_cgs->playerNum + 1  )
{
if(w_cg_entities.current.modelindex )
{
    if( w_cg_entities.current.team == TEAM_ALPHA )//TEAM_BETA  
    {
         aimpoint[0] = w_cg_entities.ent.origin[0];
                             aimpoint[1] = w_cg_entities.ent.origin[1];
                     aimpoint[2] = w_cg_entities.ent.origin[2];
         aimpoint[2] += HeadPoint;
         
         if (isVisible( aimpoint ) )
         {
     if(AimbotGetDistance( w_cg_entities.ent.origin )<leastDist)
         {
                leastDist = AimbotGetDistance( aimpoint );
            PlayerNum=i;
     
 }
}
}
}
}
if(PlayerNum!=-1)
{
return PlayerNum;
}
return PlayerNum;
}

Code:

void AimTarget(int i)
{
   if(i!=-1)
{
float aX, aY;
aimpoint[0] = w_cg_entities.ent.origin[0];
aimpoint[1] = w_cg_entities.ent.origin[1];
aimpoint[2] = w_cg_entities.ent.origin[2];

float * tagHead = aimpoint;
tagHead[2] += HeadPoint;

VectorToViewangles(tagHead, aX, aY);

               /* w_cl  is 0x86A940;*/
w_cl->viewangles[YAW]   += aX;
w_cl->viewangles[PITCH] += aY;
}
 
}

Code:

void VectorToViewangles(float *fEntTarg, float &fAngleX, float &fAngleY)
{
vec3_t vecEntity, vecAngle;
VectorSubtract(fEntTarg, w_cg->view.refdef.vieworg, vecEntity);
VectorAngles(vecEntity, vecAngle);
vecAngle[PITCH] = -vecAngle[PITCH];
if(vecAngle[YAW] > 180.0f)
vecAngle[YAW] -= 360.0f;
else if(vecAngle[YAW] < -180.0f)
vecAngle[YAW] += 360.0f;
if(vecAngle[PITCH] > 180.0f)
vecAngle[PITCH] -= 360.0f;
else if(vecAngle[PITCH] < -180.0f)
vecAngle[PITCH] += 360.0f;
AnglesToAxis(vecAngle, w_cg->view.refdef.viewaxis );
vecAngle[YAW] -= w_cg->predictedPlayerState.viewangles[YAW];
if(vecAngle[YAW] > 180.0f)
vecAngle[YAW] -= 360.0f;
else if(vecAngle[YAW] < -180.0f)
vecAngle[YAW] += 360.0f;
vecAngle[PITCH] -= w_cg->predictedPlayerState.viewangles[PITCH];
if(vecAngle[PITCH] > 180.0f)
vecAngle[PITCH] -= 360.0f;
else if(vecAngle[PITCH] < -180.0f)
vecAngle[PITCH] -= 360.0f;
fAngleX = vecAngle[YAW];
fAngleY = vecAngle[PITCH];
}


hab naturlich mehr ^^
wurde mich freuen wen einer es bzw was umwandeln konnte
ps. Knack3r ,,HACKSECTOR war mal ne geile zeit wa ? HACKSECTOR 4 LIVE!
danke in vorraus


__________________

Moinn