Skip to content

Commit

Permalink
Merge pull request #63 from meronmks/FixClosedWeapon
Browse files Browse the repository at this point in the history
近接武器で市民が攻撃するように修正
  • Loading branch information
TORISOUP authored Mar 30, 2019
2 parents f0b2cb2 + 1716bc8 commit 4e54c3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Inferno/ChaosMode/ChaosMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ private void PreventToFlee(Ped ped)
{
ped.SetFleeAttributes(0, 0);
ped.SetCombatAttributes(46, true);
//非武装(近接武器)で武装した市民を攻撃できるか
ped.SetCombatAttributes(5, true);
Function.Call(Hash.SET_PED_RELATIONSHIP_GROUP_HASH, ped, this.GetGTAObjectHashKey("cougar"));
}

Expand Down
2 changes: 1 addition & 1 deletion Inferno/ChaosMode/WeaponProvider/CustomWeaponProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public CustomWeaponProvider(IEnumerable<Weapon> weaponList, IEnumerable<Weapon>
CustomClosedWeapons = weaponArray.Intersect(ChaosModeWeapons.ClosedWeapons).ToArray();
CustomProjectileWeapons = weaponArray.Intersect(ChaosModeWeapons.ProjectileWeapons).ToArray();
CustomDriveByWeapons = weaponListForDriveBy.Intersect(ChaosModeWeapons.DriveByWeapons).ToArray();
CustomExcludeClosedWeapons = CustomShootWeapons.Concat(CustomProjectileWeapons).ToArray();
CustomExcludeClosedWeapons = CustomShootWeapons.Concat(CustomProjectileWeapons).Concat(CustomClosedWeapons).ToArray();
}

/// <summary>
Expand Down

0 comments on commit 4e54c3f

Please sign in to comment.