mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 05:50:18 +00:00
...
This commit is contained in:
parent
adf3b7d31c
commit
45c9ca085d
2 changed files with 4 additions and 5 deletions
|
@ -265,8 +265,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
var defaultType = ped.PedDef.DefaultType;
|
||||
|
||||
if (defaultType == PedestrianType.Cop
|
||||
|| defaultType == PedestrianType.Criminal)
|
||||
if (defaultType.IsCop() || defaultType.IsCriminal())
|
||||
weapon = ped.WeaponHolder.AddWeapon(WeaponId.Pistol);
|
||||
else if (defaultType.IsGangMember())
|
||||
weapon = ped.WeaponHolder.AddWeapon(WeaponId.MicroUzi);
|
||||
|
|
|
@ -117,8 +117,8 @@ namespace SanAndreasUnity.Behaviours
|
|||
var hitPed = this.MyPed;
|
||||
|
||||
if (hitPed.PedDef != null &&
|
||||
(hitPed.PedDef.DefaultType == PedestrianType.Criminal ||
|
||||
hitPed.PedDef.DefaultType == PedestrianType.Cop ||
|
||||
(hitPed.PedDef.DefaultType.IsCriminal() ||
|
||||
hitPed.PedDef.DefaultType.IsCop() ||
|
||||
hitPed.PedDef.DefaultType.IsGangMember()))
|
||||
{
|
||||
if (attackerPed != null)
|
||||
|
@ -488,7 +488,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
}
|
||||
else if (this.Action == PedAIAction.Idle || this.Action == PedAIAction.WalkingAround)
|
||||
{
|
||||
if (!this.PedestrianType.IsGangMember() && this.PedestrianType != PedestrianType.Criminal)
|
||||
if (!this.PedestrianType.IsGangMember() && !this.PedestrianType.IsCriminal())
|
||||
return;
|
||||
|
||||
this.StartFollowing(recruiterPed);
|
||||
|
|
Loading…
Reference in a new issue