add airmakes faction changes (wt)
This commit is contained in:
@@ -361,6 +361,8 @@ namespace ReallifeGamemode.Server.Events
|
||||
int Pumpshotgun_Amount = 0;
|
||||
int Schutzweste_Amount = 0;
|
||||
int Stungun_Amount = 0;
|
||||
int CombatPDW_Amount = 0;
|
||||
int Assaultrifle_Amount = 0;
|
||||
string dealTime = "Starten";
|
||||
primarys.Add("Keine");
|
||||
secondarys.Add("Keine");
|
||||
@@ -489,10 +491,18 @@ namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
Stungun_Amount = weapon.Ammount;
|
||||
}
|
||||
else if (weapon.WeaponModel == "assaultrifle")
|
||||
{
|
||||
Assaultrifle_Amount = weapon.Ammount;
|
||||
}
|
||||
else if (weapon.WeaponModel == "CombatPDW")
|
||||
{
|
||||
CombatPDW_Amount = weapon.Ammount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
player.TriggerEvent("showWeaponMenu", primarys.ToArray(), secondarys.ToArray(), melees.ToArray(), specials.ToArray(), armor.ToArray(), JsonConvert.SerializeObject(timer.ToArray()), pistol_Amount.ToString(), pistol50_Amount.ToString(), Pistol_mk2_Amount.ToString(), Combatpistol_Amount.ToString(), SMG_Amount.ToString(), Carbinerifle_Amount.ToString(), Compactrifle_Amount.ToString(), sniperrifle_Amount.ToString(), Pumpshotgun_Amount.ToString(), Schutzweste_Amount.ToString(), Stungun_Amount.ToString()); ;
|
||||
player.TriggerEvent("showWeaponMenu", primarys.ToArray(), secondarys.ToArray(), melees.ToArray(), specials.ToArray(), armor.ToArray(), JsonConvert.SerializeObject(timer.ToArray()), pistol_Amount.ToString(), pistol50_Amount.ToString(), Pistol_mk2_Amount.ToString(), Combatpistol_Amount.ToString(), SMG_Amount.ToString(), Carbinerifle_Amount.ToString(), Compactrifle_Amount.ToString(), sniperrifle_Amount.ToString(), Pumpshotgun_Amount.ToString(), Schutzweste_Amount.ToString(), Stungun_Amount.ToString(), CombatPDW_Amount.ToString(), Assaultrifle_Amount.ToString()); ;
|
||||
}
|
||||
if (nearestJailReleasePoint != null)
|
||||
{
|
||||
|
||||
18
ReallifeGamemode.Server/Inventory/Items/AssaultRifle.cs
Normal file
18
ReallifeGamemode.Server/Inventory/Items/AssaultRifle.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
class AssaultRifle : WeaponDealItem
|
||||
{
|
||||
public override int Id => 13;
|
||||
public override string Name => "AssaultRifle";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 500;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
public override int Price => 0;
|
||||
}
|
||||
}
|
||||
|
||||
18
ReallifeGamemode.Server/Inventory/Items/CombatPDW.cs
Normal file
18
ReallifeGamemode.Server/Inventory/Items/CombatPDW.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
class CombatPDW : WeaponDealItem
|
||||
{
|
||||
public override int Id => 12;
|
||||
public override string Name => "CombatPDW";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 500;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
public override int Price => 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
||||
public override int Id => 7;
|
||||
public override string Name => "CompactRifle";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 3080;
|
||||
public override int Gewicht => 500;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
public override int Price => 0;
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
||||
public class WeaponDealManager : Script
|
||||
{
|
||||
private const int WEAPON_AMOUNT_GANG = 2;
|
||||
private const int WEAPON_AMOUNT_COP = 8;
|
||||
private const int WEAPON_AMOUNT_COP_STUNGUN = 12;
|
||||
private const int WEAPON_AMOUNT_COP = 4;
|
||||
private const int WEAPON_AMOUNT_COP_STUNGUN = 4;
|
||||
public static bool checkWeaponDbyVehicle(Vehicle vehicle)
|
||||
{
|
||||
if (!vehicle.HasData("WeaponDealLoad") || vehicle.GetData<bool>("WeaponDealLoad") == false)
|
||||
@@ -201,6 +201,8 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
||||
InventoryManager.AddItemToVehicleInventory(fVeh, item2.ItemId, item2.Amount);
|
||||
VehicleItem item4 = new VehicleItem() { ItemId = 7, VehicleId = factionVehicle.Id, Amount = WEAPON_AMOUNT_GANG * oMembers }; //CompactRifle
|
||||
InventoryManager.AddItemToVehicleInventory(fVeh, item4.ItemId, item4.Amount);
|
||||
VehicleItem item5 = new VehicleItem() { ItemId = 13, VehicleId = factionVehicle.Id, Amount = WEAPON_AMOUNT_GANG * oMembers }; //AssaultRifle
|
||||
InventoryManager.AddItemToVehicleInventory(fVeh, item5.ItemId, item5.Amount);
|
||||
}
|
||||
else if (factionVehicle.GetOwners().Contains(1))
|
||||
{
|
||||
@@ -231,6 +233,8 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
||||
InventoryManager.AddItemToVehicleInventory(fVeh, item5.ItemId, item5.Amount);
|
||||
VehicleItem item6 = new VehicleItem() { ItemId = 11, VehicleId = factionVehicle.Id, Amount = WEAPON_AMOUNT_COP_STUNGUN * oMembers }; //Stungun
|
||||
InventoryManager.AddItemToVehicleInventory(fVeh, item6.ItemId, item6.Amount);
|
||||
VehicleItem item7 = new VehicleItem() { ItemId = 12, VehicleId = factionVehicle.Id, Amount = WEAPON_AMOUNT_COP * oMembers }; //CombatPDW
|
||||
InventoryManager.AddItemToVehicleInventory(fVeh, item7.ItemId, item7.Amount);
|
||||
}
|
||||
|
||||
ChatService.BroadcastFaction("~y~[WAFFENDEAL] ~w~Der Transporter wurde erfolgreich beladen.", new List<int>() { client.GetUser().Faction.Id });
|
||||
|
||||
Reference in New Issue
Block a user