Git Product home page Git Product logo

Comments (16)

DK22Pac avatar DK22Pac commented on June 12, 2024

Did you check this?
Also, provide a full plugin code.

from plugin-sdk.

 avatar commented on June 12, 2024

Yeah. I checked. But it aims at dead bodies, needs m_fHealth check or seomthing.
Anyway, the full code:https://pastebin.com/izEkrG3x

from plugin-sdk.

 avatar commented on June 12, 2024

bump

from plugin-sdk.

DK22Pac avatar DK22Pac commented on June 12, 2024

I have no idea how to make it working.
Have any CLEO/SCM code for this?

from plugin-sdk.

 avatar commented on June 12, 2024

No :/

from plugin-sdk.

 avatar commented on June 12, 2024

bump

from plugin-sdk.

etheaven avatar etheaven commented on June 12, 2024

gracz->m_apNearPeds[1]->m_fHealth != 0.0
I am not really using the sdk, but from other gamehacking experiences, fHealth usually is >= 1 even if the entity is dead, have you considered debugging the health value before/after death?

from plugin-sdk.

 avatar commented on June 12, 2024

i tried. 1.0 is same as 0.0
bump again ;(

from plugin-sdk.

etheaven avatar etheaven commented on June 12, 2024

No. >= 1
Also tell us what are the health values when the unwanted target is dead

from plugin-sdk.

 avatar commented on June 12, 2024

0.0 it is. because it skips dead ped bodies and aims at other in my code.

from plugin-sdk.

etheaven avatar etheaven commented on June 12, 2024

#46 (comment) you said that it aims at dead bodies, now it skips them? Solved then?

from plugin-sdk.

 avatar commented on June 12, 2024

No. The game sometimes crashes and the aimassist is buggy. Sometimes it doesnt even aim and shoot as you see in video. Something like "aim bot"

from plugin-sdk.

quiret avatar quiret commented on June 12, 2024

No idea how you got this code working in the first place. This is the best I could fix it up to.

#include "plugin_vc.h"
#include "game_vc/CPlayerPed.h"
#include "game_vc/CPlayerInfo.h"
#include "game_vc/common.h"

using namespace plugin;

static bool do_aim_assist = false;
static bool release_aim_assist = true;

class MyPlugin {
public:
    MyPlugin() {
        Events::gameProcessEvent += []() {
            CPed * gracz = FindPlayerPed();

            if ( release_aim_assist )
            {
                do_aim_assist = false;
                release_aim_assist = false;
            }

            if (KeyPressed('K'))
            {
                do_aim_assist = true;
                release_aim_assist = true;
            }
            else if (KeyPressed('I'))
            {
                do_aim_assist = !do_aim_assist;
            }

            if (do_aim_assist)
            {
                for ( size_t n = 0; n < _countof(gracz->m_apNearPeds) && n < gracz->m_nNumNearPeds; n++ )
                {
                    CPed *target = gracz->m_apNearPeds[n];

                    if ( target == NULL )
                        continue;

                    // Needs to pass security checks.
                    if ( target->m_fHealth > 1.0 && target->IsPedShootable() && target->IsVisible() )
                    {
                        gracz->m_pPointGunAt = target;
                        gracz->AimGun();
                        gracz->Attack();
                        gracz->ClearAttackByRemovingAnim();
                        return;
                    }
                }

                gracz->ClearAimFlag();
                gracz->ClearAttack();
                gracz->SetCurrentWeapon(0);
            }
        };
    }
} myPlugin;

I would highly appreciate it if someone could help Kew out with the shooting while aim assisting.

from plugin-sdk.

EightyVice avatar EightyVice commented on June 12, 2024

I tried to do something like that before i know about plugin-sdk i made something that make the nearest ped health = 0 and that make the nearest ped die, i made that through Cheat engine and another injectors then i relized something Nearest Ped Function gets the nearest peds in SPECIFIC range, idk if that right buut i saw that happen alot i mean if there are 5 peds : 3 in the RANGE, and the others are out you will get in the array of bytes of length [5] that: (as example)
0D 1E 2C 00 00 and others people out of the range are 00, also i dont know if that happens in the sdk too
another thing that you have to put in mind, 1) Time 2)Movment
in time i mean that ASI take time to inject the function , i mean that
when you press the button that do the function, it shots behind the RUNNING ped because the variable took the value of the ped when you shot him the ped move more than the target value.
another thing is movement and that is based on time you can see in the last part that u shot the police because he was standing. also you will see another thing that is aim is not accurate or move like crazy becuase of changing of order of peds because maybe one be the first one then be the next then the first again
and i think that proves that crashing is that because of first array is 00 so you cant do the function to it because its NULL. so you have to make some conditions that avoid the NULL and i will try to write it soon :D

from plugin-sdk.

 avatar commented on June 12, 2024

@quiret

This code improves the aimbot alot, just needed to remove the clearimflag & clearattack & setcurrwep on the end
heres effects:
https://www.youtube.com/watch?v=HWwdNzAa-N0

however my problem is solved, thank you all. I will try to improve it even more and collaborate here

from plugin-sdk.

quiret avatar quiret commented on June 12, 2024

Glad to have helped you, Kewun0! Feel free to share improvements on this issue and/or on our official Discord server. We love hearing about ASI mods. :-)

from plugin-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.