Triggerbot Cube 2: Sauerbraten

morkovka

New member
Cube 2: Sauerbraten Triggerbot

1) download sources
2) unpack
3) src/fpsgame/fps.cpp

Code:
int selectcrosshair(float &r, float &g, float &b)
    {
        fpsent *d = hudplayer();
        if(d->state==CS_SPECTATOR || d->state==CS_DEAD) return -1;

        if(d->state!=CS_ALIVE) return 0;

        int crosshair = 0;
        if(lasthit && lastmillis - lasthit < hitcrosshair) crosshair = 2;
        else if(teamcrosshair)
        {
            dynent *o = intersectclosest(d->o, worldpos, d);
            if(o && o->type==ENT_PLAYER && isteam(((fpsent *)o)->team, d->team))
            {
                crosshair = 1;
                r = g = 0;
            }
            // MY CODE BEGIN
            else if(o && o->type==ENT_PLAYER && !isteam(((fpsent *)o)->team, d->team))
            {
                d->attacking = true;
            }
            else
          d->attacking = false;
            // END
        }
        ........................

4) cd src
5) sudo apt-get install libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev
6) make
7) make install
8) cd ..
9) ./sauerbraten_unix
 

d.ma40

New member
You must upload Datas as Attachment.
Outside Links aren't allowed.
He didn't provide source, he showed what he added to the original source. He most likely never intended to upload anything except for the text you saw

And anyway, good hack, nice code, but what does a triggerbot do? or does it just only attack for you?
 

snickii

Super Moderator
There was a Outside Link before.

Look: Last edited by morkovka; 2 Weeks Ago at 19:16. Reason: Code tags
 
Top