Comments (16)
Did you check this?
Also, provide a full plugin code.
from plugin-sdk.
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.
bump
from plugin-sdk.
I have no idea how to make it working.
Have any CLEO/SCM code for this?
from plugin-sdk.
No :/
from plugin-sdk.
bump
from plugin-sdk.
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.
i tried. 1.0 is same as 0.0
bump again ;(
from plugin-sdk.
No. >= 1
Also tell us what are the health values when the unwanted target is dead
from plugin-sdk.
0.0 it is. because it skips dead ped bodies and aims at other in my code.
from plugin-sdk.
#46 (comment) you said that it aims at dead bodies, now it skips them? Solved then?
from plugin-sdk.
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.
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.
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.
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.
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)
- The link for the eblip colors in CRadar.h doesn't work anymore. HOT 2
- tColLighting is wrong
- Error while compiling script (C3861 'M_PI': identifier not found) [Visual Studio 2019] HOT 3
- Error while building HOT 1
- injector::MakeInline modifies the EFLAGS register HOT 1
- Can't build plugin.sln (C2760 Error) [Visual Studio 2019 Community]
- Crash when calling CPlaceable::GetAtDirection()
- Build errors caused by C/C++ preprocessor definitions HOT 1
- Is this error caused because a d3dx9 sdk installation is missing? HOT 2
- Plugin-SDK adaptable for GTA SA mobile version. HOT 1
- VSIX installer error in Visual Studio HOT 3
- GetD3DDevice not work correct
- Compilation error. Visual Studio 2019 HOT 4
- Linux crosscompilation: error due to includes with different casing than the file HOT 2
- GPS example broken due to missing type on GetD3DDevice template function HOT 1
- WN 11 ?? HOT 2
- Error in plugin gen HOT 5
- Recent error while trying to clone HOT 1
- Modifying shadow colors.
- CRoadBlocks::aScriptRoadBlocks address collision HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-sdk.