Str33tD4wg Posted April 6, 2018 Share Posted April 6, 2018 The title says it all!!!I just want to do that so the game is more challenging when fighting the cops or gangs! Link to comment Share on other sites More sharing options...
Jack Posted April 6, 2018 Share Posted April 6, 2018 The title says it all!!!I just want to do that so the game is more challenging when fighting the cops or gangs! plugin sdk solution (c++): #include "plugin.h"#include "CPed.h"#include "common.h"using namespace plugin;class Uniterupt {public: Uniterupt() { Events::gameProcessEvent += [] { CPed *playa = FindPlayerPed(); if (playa) { for (int i = 0; i < CPools::ms_pPedPool->m_nSize; i++) { CPed *ped = CPools::ms_pPedPool->GetAt(i); if (ped && ped->m_nPedType >= PED_TYPE_COP && PED_TYPE_GANG10 >= ped->m_nPedType) { ped->m_nPedFlags.bUpperBodyDamageAnimsOnly = true; } } } }; }} uniterupt; Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Str33tD4wg Posted April 6, 2018 Author Share Posted April 6, 2018 The title says it all!!!I just want to do that so the game is more challenging when fighting the cops or gangs! plugin sdk solution (c++): #include "plugin.h"#include "CPed.h"#include "common.h"using namespace plugin;class Uniterupt {public: Uniterupt() { Events::gameProcessEvent += [] { CPed *playa = FindPlayerPed(); if (playa) { for (int i = 0; i < CPools::ms_pPedPool->m_nSize; i++) { CPed *ped = CPools::ms_pPedPool->GetAt(i); if (ped && ped->m_nPedType >= PED_TYPE_COP && PED_TYPE_GANG10 >= ped->m_nPedType) { ped->m_nPedFlags.bUpperBodyDamageAnimsOnly = true; } } } }; }} uniterupt; thanks! Link to comment Share on other sites More sharing options...
Str33tD4wg Posted April 6, 2018 Author Share Posted April 6, 2018 By the way, is it possible to make NPC's (Cops,gangs and enemies) Shoot while moving like the players, per example move right left right left constantly in order to avoid shots? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now