How do I stop peds from running away when I insult them?
-
I usually mess around ingame with Trevor to insult people and make them fight back. At some point I managed to edit a file, and basically all peds will insult me back and have a fistfight (including peds that run away by default). Of course when I pull a gun out they will still run away like they should.
Long story short, my drive got corrupted, lost my modded update.rpf, and now I can't even figure out how to do that anymore.
I tried editing pedpersonalities.meta but I can't seem to make it work.
Any help on making peds response and fight back after the "E" key insults would be appreciated.
-
@TheMadeMan
Maybe you are looking for 'pedpersonality.ymt'? (ie, '.ymt', not '.meta'):'...\Grand Theft Auto V\mods\update\update.rpf\x64\data\metadata\pedpersonality.ymt
That's where most of the ped personalities are kept for the base game anyway.
Never edited their bravery etc myself, but these are probably the values you want to play about with in the '<PedPersonalities>' section:
<Bravery> <AgitatedPersonality> <Criminality> <AgitationTriggers>
If you look in the '<BraveryTypes>' section of that file, you can edit stuff like this for each of the bravery types ('BOLD', 'AVERAGE', 'TIMID'... etc) that go in the '<Bravery>' lines in the '<PedPersonalities>' section:
<Item> <Name>BOLD</Name> <Flags>BF_PURSUE_WHEN_HIT_BY_CAR BF_BOOST_BRAVERY_IN_GROUP BF_CAN_ACCELERATE_IN_CAR BF_AGGRESSIVE_AFTER_RUNNING_PED_OVER BF_PLAY_CAR_HORN BF_GET_PISSED_WHEN_HIT_BY_CAR BF_ALLOW_CONFRONT_FOR_TERRITORY_REACTIONS BF_REACT_ON_COMBAT BF_DONT_RUN_ON_MELEE_ATTACK BF_DONT_SAY_PANIC_ON_FLEE</Flags> <TakedownProbability value="0.75000000"/> <ThreatResponseUnarmed> <Action> <Weights> <Fight value="1.00000000"/> <Flee value="0.00000000"/> </Weights> </Action> <Fight> <Weights> <KeepWeapon value="0.00000000"/> <MatchTargetWeapon value="0.50000000"/> <EquipBestWeapon value="0.50000000"/> </Weights> <ProbabilityDrawWeaponWhenLosing value="0.50000000"/> </Fight> </ThreatResponseUnarmed> <ThreatResponseMelee> <Action> <Weights> <Fight value="0.35000000"/> <Flee value="0.65000000"/> </Weights> </Action> <Fight> <Weights> <KeepWeapon value="0.00000000"/> <MatchTargetWeapon value="0.50000000"/> <EquipBestWeapon value="0.50000000"/> </Weights> <ProbabilityDrawWeaponWhenLosing value="0.50000000"/> </Fight> </ThreatResponseMelee> <ThreatResponseArmed> <Action> <Weights> <Fight value="0.00000000"/> <Flee value="1.00000000"/> </Weights> </Action> <Fight> <Weights> <KeepWeapon value="0.00000000"/> <MatchTargetWeapon value="0.50000000"/> <EquipBestWeapon value="0.50000000"/> </Weights> <ProbabilityDrawWeaponWhenLosing value="0.50000000"/> </Fight> </ThreatResponseArmed> <FleeDuringCombat> <Enabled value="false"/> <ChancesWhenBuddyKilledWithScaryWeapon value="0.00000000"/> </FleeDuringCombat> </Item>
'<ThreatResponseUnarmed>' probably the one you want to edit for various bravery types, or set all peds to 'BOLD' bravery in the '<PedPersonalities>' section etc.
If editing bravery types in the '<BraveryTypes>' section, pay attention to the flags in the '<Flags>' line too, some of them may influence the effect you are looking for/make peds less/more aggressive etc. Flags are often named simply & have more complicated characteristics than the name implies etc. Test any likely ones out &/or remove any that seem like they might be getting in the way of what you want to do etc
-
@a63nt-5m1th Oh yeah, that was the wrong file type. I was referering to the same file.
So I went back and tried a few things you mentioned again, by assigning a few personalities to BOLD, but initially it didn't work, so I changed the <AgitatedPersonality> to Confront. But that made the ped ignore the player.
So I had to use a few flags from the GANG personality
BF_ARGUMENTATIVE BF_INTIMIDATE_PLAYER BF_CONFRONTATIONAL
Couple that with the "Comfront" thing I mentioned, I managed to get it working again. Thanks for helping!
-
@TheMadeMan
No probs, & thanks for letting us know how you fixed it