autowall coding.

社区服务
高级搜索
猴岛论坛CSGO反恐精英CS作弊器交流讨论autowall coding.
发帖 回复
倒序阅读 最近浏览的帖子最近浏览的版块
0个回复

autowall coding.

楼层直达
作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看楼主 使用道具 楼主   发表于: 2007-07-03 0

1. omfgeh some noobs just dont seem to figure out the easiest shit god
****ign christ this is a perfect WORKING (yea last one didnt work ;x)
tutorial wich is basically just copy + paste so god ****3n damneh here
u r nubz.

P.S this is way i use its easy

* ok n00bs go DL snipity source on cheat-network copy + paste
defs.h/trace.cpp/and trace.h
since those are basically all the autowall coding.

* go to client.cpp and type at the top

#include "trace.cpp"
#include "trace.h"
#include "defs.h"

* ok now keep client.cpp open and search for "see attack"

* you should see somethin like

//see attack.h
int currentWeaponID=0;

* delete all of that as its going to be defined where the a-wall codin is..

* now go back up to the top of client.cpp and newhere really u can paste
this..

// autowall

int penetrate;
int currentWeaponID=0;

bool CorrectGunX()
{
 if(currentWeaponID==WEAPON_DEAGLE)
    {
        penetrate = WALL_PEN1;
        return true;
    }
 else if(currentWeaponID==WEAPON_SCOUT)
    {
        penetrate = WALL_PEN2;
        return true;
    }
 else if(currentWeaponID==WEAPON_AWP)
    {
        penetrate = WALL_PEN2;
        return true;
    }
 else if(currentWeaponID==WEAPON_SIG)
    {
        penetrate = WALL_PEN1;
        return true;
    }
 else if(currentWeaponID==WEAPON_COLT)
    {
        penetrate = WALL_PEN1;
        return true;
    }
 else if(currentWeaponID==WEAPON_PARA)
    {
        penetrate = WALL_PEN1;
        return true;
    }
 else if(currentWeaponID==WEAPON_AUG)
    {
        penetrate = WALL_PEN1;
        return true;
    }
 else if(currentWeaponID==WEAPON_AK)
    {
        penetrate = WALL_PEN1;
        return true;
    }
 else if(currentWeaponID==WEAPON_SG550)
    {
        penetrate = WALL_PEN1;
        return true;
    }
 else if(currentWeaponID==WEAPON_G3SG1)
    {
        penetrate = WALL_PEN1;
        return true;
    }
    else
    {
        penetrate = WALL_PEN0;
        return true;
    }
}

int GetCurPenetration(void)
{
 if (CorrectGunX())
  return penetrate;
 return WALL_PEN0;
}

bool CanPenetrate(float *start, float *end)
{
    int maxhits = 10, count = 0;
    float damage = 120;
    strace_t tr;
    pmtrace_t beam_tr, beam_tr1, *tmptr;
    float srcorigin[3];
    float diff[3], length, viewvec[3], unityview[3], position[3];

    viewvec[0] = end[0] - start[0];
    viewvec[1] = end[1] - start[1];
    viewvec[2] = end[2] - start[2];

    length = VectorLength(viewvec);

    unityview[0] = viewvec[0] / length;
    unityview[1] = viewvec[1] / length;
    unityview[2] = viewvec[2] / length;

    srcorigin[0] = start[0];
    srcorigin[1] = start[1];
    srcorigin[2] = start[2];

    while (damage > 10 && maxhits > 0)
    {
        maxhits--;

        TraceThickness(srcorigin, end, 0, &tr);

        if (tr.finished)
            break;

        if (srcorigin[0] != tr.endpos[0] || srcorigin[1] != tr.endpos[1] ||
srcorigin[2] != tr.endpos[2])
            count++;

        if (count >= 2 && !tr.finished)
        {
            damage = 0;

            break;
        }

        position[0] = tr.endpos[0] + unityview[0] * 8.0;
        position[1] = tr.endpos[1] + unityview[1] * 8.0;
        position[2] = tr.endpos[2] + unityview[2] * 8.0;

        tmptr = gEngfuncs.PM_TraceLine(position, end,
PM_TRACELINE_PHYSENTSONLY, 2, -1);

        memcpy(&beam_tr, tmptr, sizeof(pmtrace_t));

        if (!beam_tr.allsolid)
        {
            tmptr = gEngfuncs.PM_TraceLine(beam_tr.endpos, tr.endpos,
PM_TRACELINE_PHYSENTSONLY, 2, -1);

            memcpy(&beam_tr1, tmptr, sizeof(pmtrace_t));

            diff[0] = beam_tr1.endpos[0] - tr.endpos[0];
            diff[1] = beam_tr1.endpos[1] - tr.endpos[1];
            diff[2] = beam_tr1.endpos[2] - tr.endpos[2];

            length = VectorLength(diff);

            if (length < damage)
            {
                damage -= length;

                srcorigin[0] = beam_tr1.endpos[0] + unityview[0];
                srcorigin[1] = beam_tr1.endpos[1] + unityview[1];
                srcorigin[2] = beam_tr1.endpos[2] + unityview[2];
            }
        }
        else
            damage = 0;
    }

    if (maxhits == 0 && damage)
    {
        tr.finished = false;

        while (!tr.finished)
        {
            TraceThickness(srcorigin, end, 0, &tr);

            if (tr.allsolid)
                return false;

            if (!tr.startsolid)
            {
                if (tr.finished)
                    return damage > 0.0;

                return false;
            }

            srcorigin[0] = tr.endpos[0] + unityview[0];
            srcorigin[1] = tr.endpos[1] + unityview[1];
            srcorigin[2] = tr.endpos[2] + unityview[2];
        }
    }

    return damage > 0.0;
}

bool pathFree(float *start, float *end)
{
    bool pathtest;
    strace_t tr;

    if (cvar.autowall && GetCurPenetration())
    {
        pathtest = CanPenetrate(start, end);
    }
    else
    {
        TraceThickness(start, end, 0, &tr);

        if (tr.finished)
            pathtest = true;
        else
            pathtest = false;
    }

    return pathtest;
}


* ok now open up "trace.h" and add these definitions newhere again

#define WALL_PEN0 0
#define WALL_PEN1 1
#define WALL_PEN2 2

* open up both cvar.cpp and cvar.h now register the cvar "autowall" if u
dont
know how to do that then u shouldnt continue to read on r0fl

* go to ur "common" folder and open up com_model.h

* search for "MinMaxS" and then u should see a "short" next to it..

* change the "short" to a "float" and theres 2 so do it to them both

* now open up your aimbot.cpp and search for "pathfree"

* delete all of that pathfree info as its already in client.cpp

P.S u can just take the autowall pathfree coding and replace it with the one
in aimbot.cpp but
u'd have to do the #includes in autowall too..

* ok now compile if u get NE WARNINGS where the Canpenetrate coding is then
change the "bool CanPenetrate" to "static bool CanPenetrate"

** THIS METHOD WORKS WITH ALL SRCES (i tested em)

** This Tutorial was made by -]OsH[-DaRrYL* ( ya no more L337-H@X :$)

*** If you have NE errors then u either forgot the #includes or some
definitions
and u can AIM me as DaRrYL11cs for me to fix erras as there prolly nub
newayz kthnx

~ Signin Out
~ -]OsH[-DaRrYL*

//===================================================================================

密码被盗,请联系cscheat取回
« 返回列表
发帖 回复