Jump to content

[V|REL] Spawn Random Bodyguard


Recommended Posts

jedijosh920

aWTMc5r.jpg



Download Links:



https://www.gta5-mods.com/scripts/spawn-random-bodyguard



http://www.mediafire.com/download/jwd9wlm8ocrh179/SpawnBodyguardsV1.1.asi




To install, place .asi file in root folder of your game with the ScriptHookV.dll



Press "End" Key in-game to spawn a random bodyguard with a pistol.



You can only have about 7 bodyguards, the other peds spawned after that will still protect you but won't follow.



Peds spawned are related to where you are at. (Ex: Fort Zancudo = Army Bodyguards)



Thanks to funmw2 for helping me with the relationship group problem.




Updates:


v1.1

-----------------------------------------


- Fixed Relationship Groups.

- Added protective combat hatred task.

- Fixed aggressive peds after spawning more than 7.

Edited by jedijosh920
Link to comment
https://gtaforums.com/topic/789155-vrel-spawn-random-bodyguard/
Share on other sites

Hello,

 

Great work on this mod -- I've been wanting bodyguards in GTA V for PC since release.

 

I would really appreciate it if you could add the ability to spawn SWAT (Tactical Police) bodyguards, instead of random bodyguards.

 

I'm sure it's possible through a simple line edit, and once done, could you reply with the link?

 

I would do this myself, however, I don't have permission from you to decompile it considering it's your work.

 

Thanks in advance.


Do they get in your vehicle as well?

 

 

 

 

 

 

Edit: Do a scan report on Virus total please and post results.

 

My scanner reported something fishy about this file.

VirusTotal Scan Result (0 / 57):

 

https://www.virustotal.com/en/file/24985c3a65caf704f5e322d4b3dc0dfd944fdeae6234ffd0a2e3c40287f361bc/analysis/1429985995/

Download Link:

http://www.mediafire.com/download/lvocbl1xad5jzq9/SpawnBodyguard.asi

To install, place .asi file in root folder of your game with the ScriptHookV.dll

Press "End" Key in-game to spawn a random bodyguard with a pistol.

I believe you can only have about 8 bodyguards, after that they will just spawn as regular peds who are somewhat aggressive.

If anyone could make a good video for me on YouTube to post on here, that would be great!

 

Very nice indeed i wanna try lol...

Something weird happened to me after installing this mod, which may or may not have something to do with the mod: upon pressing "end", around five bodyguards spawned at once, which shouldn't be the case according to the description. I tried to shoot them dead to try again, but the mod won't let you (jedijosh, I think you should change that). So I threw a grenade at the floor, which did the trick. Seconds later, the game froze up. Ctrl + Alt + Esc didn't help. All of a sudden, this screen shows up (not my photo, it's someone else's). First time it ever did. It accused a problem with some file that I can't remember except for its name prominently containing the word "watchdog".

 

Again, this never happened to me before, and the script seemed to malfunction in-game upon pressing "end", so... yeah.

 

Some info: I'm on Windows 8.1. The Social Club window says it's updated to version 335.2 but the in-game splash screen says build 335.1, which has me a bit confused (I do know the game has been updated with a 170mb patch the last time). I get some crashes to desktop rarely, but nothing that freezes up the entire computer (that only happened once, in the launch day version, without the above screen showing up -- I just had to hard reboot). I can use Ctrl + Alt + Esc fine, and sometimes the computer itself will swiftly say it's not working and let me easily close the process. This mod came right before a hard, unprecedented crash.

 

If any more info is required, let me know.

Edited by a_tavenner

I'm so happy with this mod that i registered just to say thanks and to give some feedback

It would be nice if you could select god mode for your bodyguards, another thing that would be great is that if they could use the guns of the valkyrie for example, i tried to go with them in the insurgent, and they can use its turret although with a really slow rate of fire, but not the valkyrie's or savage's, in the valkyrie, they aim with the guns, but they never seem to shoot

Edited by Atharos
  • Like 2

Works very well.

 

Hopefully in the next release its not random peds.

 

Here's the video you requested.

 

 

  • Like 3

 

Awesome release! Can you release source code?

 

 

Im new here and new to modding in general. I've looked through the native DB and I've stripped this from a forums post.

 

ped = clone_ped(player_ped_id());

int group = get_player_group(player_id());

set_ped_as_group_member(ped, group);

task_combat_hated_targets_arou­nd_ped(0, 1000.0f, 0);

give_delayed_weapon_to_ped(ped­, Hash("weapon_pistol"));

set_ped_keep_task(ped, true);

 

How would I go about turning this into a .asi file and binding a key to execute it?

 

LOL I posted that on a YouTube video. You cant UNTIL he releases the SDK which is probably never, the way i got partially this to work is thru cheat engine

 

The SDK was released, by the way.

Edited by Skyprone

Awesome mod! However, after a certain amount of "spawns" the game won't allow any more. Was this intentional?

 

maybe he didn't add remove dead bodys native, should help with freeing up ped pool.

 

SET_PED_GENERATES_DEAD_BODY_EVENTS(ped, true);

 

or

 

MARK_CHAR_AS_NO_LONGER_NEEDED(ped);

Edited by AgentWD40
Deuce Deuce

 

Awesome mod! However, after a certain amount of "spawns" the game won't allow any more. Was this intentional?

 

maybe he didn't add remove dead bodys native, should help with freeing up ped pool.

 

SET_PED_GENERATES_DEAD_BODY_EVENTS(ped, true);

 

or

 

MARK_CHAR_AS_NO_LONGER_NEEDED(ped);

 

 

Thanks. Is there any way to reduce crashes using this script as well? I gather it's probably a CPU overload issue; but my thinking is that perhaps freeing up "dead" peds will put less pressure on the CPU / GPU and minimize crashing (I haven't actually tried adding this in yet though).

 

Also, would there be any reason why the bodyguards don't fill up the max capacity in some vehicles? For example, I can fit a full crew in the Insurgent, but in planes / jets with max capacities of 8+ only 2 will actually enter.

Acekiller.45

 

Does it spawn different models of npcs depending on where your character is at?

 

Yea, that's how it seems.

 

Yes It will spawn the most common ped where you are like soldiers at the base ect GX4Bdmt.jpg?1db4djTt.jpg?1

Edited by Acekiler

Download Links:

http://www.modmy5.com/en/mods/009db644

https://www.gta5-mods.com/scripts/spawn-random-bodyguard

http://www.mediafire.com/download/lvocbl1xad5jzq9/SpawnBodyguard.asi

To install, place .asi file in root folder of your game with the ScriptHookV.dll

Press "End" Key in-game to spawn a random bodyguard with a pistol.

I believe you can only have about 8 bodyguards, after that they will just spawn as regular peds who are somewhat aggressive.

If anyone could make a good video for me on YouTube to post on here, that would be great!

 

Ha! Good work though, never thought you was gonna release it.

You should help me with my mods soon, finishing a mod menu.

Edited by TJGM

jedijosh920, could you make the extra bodyguards follow you on another vehicle when your vehicle is already full? Could you also make the option to adjust the spacing of your team formation? so they won't look like sticking to you like a glue?

Hmm I assume one of the natives you use is limited to 8.

We will have to check which one so we can make the extra bodyguards follow you.

 

 

Does it spawn different models of npcs depending on where your character is at?

 

Yea, that's how it seems.

 

Yes It will spawn the most common ped where you are like soldiers at the base ect GX4Bdmt.jpg?1db4djTt.jpg?1

 

Hey

 

How did you manage to spawn this is the game (the heist vehicle) could you let me know what mod please?

 

 

 

Does it spawn different models of npcs depending on where your character is at?

 

Yea, that's how it seems.

 

Yes It will spawn the most common ped where you are like soldiers at the base ect GX4Bdmt.jpg?1db4djTt.jpg?1

 

Hey

 

How did you manage to spawn this is the game (the heist vehicle) could you let me know what mod please?

 

Pretty sure I saw it in Native Trainer, could be wrong.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.