mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:10:45 -05:00
381 > 390 (!108)
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com> Co-authored-by: Dev <dev@dev.sp-tarkov.com> Reviewed-on: SPT-AKI/Modules#108
This commit is contained in:
parent
c5a0c6998d
commit
83ca08ac87
@ -8,6 +8,7 @@ using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using Aki.Custom.Airdrops.Models;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Aki.Custom.Airdrops.Utils
|
||||
{
|
||||
@ -34,7 +35,7 @@ namespace Aki.Custom.Airdrops.Utils
|
||||
}
|
||||
}
|
||||
|
||||
public async void AddLoot(LootableContainer container, AirdropLootResultModel lootToAdd)
|
||||
public async Task AddLoot(LootableContainer container, AirdropLootResultModel lootToAdd)
|
||||
{
|
||||
Item actualItem;
|
||||
foreach (var item in lootToAdd.Loot)
|
||||
|
@ -16,6 +16,7 @@ namespace Aki.Custom.CustomAI
|
||||
private static readonly string throwableItemId = "543be6564bdc2df4348b4568";
|
||||
private static readonly string ammoItemId = "5485a8684bdc2da71d8b4567";
|
||||
private static readonly string weaponId = "5422acb9af1c889c16000029";
|
||||
private static readonly string moneyId = "543be5dd4bdc2deb348b4569";
|
||||
private static readonly string armorPlate = "644120aa86ffbe10ee032b6f";
|
||||
private static readonly string builtInInserts = "65649eb40bf0ed77b8044453";
|
||||
private static readonly List<string> nonFiRItems = new List<string>() { magazineId, drugId, mediKitItem, medicalItemId, injectorItemId, throwableItemId, ammoItemId, armorPlate, builtInInserts };
|
||||
@ -32,7 +33,7 @@ namespace Aki.Custom.CustomAI
|
||||
private static readonly string knifeId = "5447e1d04bdc2dff2f8b4567";
|
||||
|
||||
private static readonly List<string> weaponTypeIds = new List<string>() { pistolId, smgId, assaultRifleId, assaultCarbineId, shotgunId, marksmanRifleId, sniperRifleId, machinegunId, grenadeLauncherId, knifeId };
|
||||
private static readonly List<string> nonFiRPocketLoot = new List<string>{ throwableItemId, ammoItemId, magazineId, medicalItemId, mediKitItem, injectorItemId, drugId };
|
||||
private static readonly List<string> nonFiRPocketLoot = new List<string>{ moneyId, throwableItemId, ammoItemId, magazineId, medicalItemId, mediKitItem, injectorItemId, drugId };
|
||||
private readonly ManualLogSource logger;
|
||||
|
||||
public PmcFoundInRaidEquipment(ManualLogSource logger)
|
||||
|
@ -16,7 +16,7 @@ namespace Aki.Custom.Patches
|
||||
[PatchPrefix]
|
||||
private static void PatchPreFix(ref Vector3 velocity)
|
||||
{
|
||||
velocity.y = Mathf.Clamp(velocity.y, -1f, 1f);
|
||||
velocity.y = Mathf.Clamp(velocity.y, -2f, 2f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user