fixes for boats, vault texture, bad zombie loot, bulk trade crate.
This commit is contained in:
vbawol
2013-01-31 11:17:26 -06:00
parent f5af6512fd
commit c387676545
9 changed files with 144 additions and 16 deletions

BIN
Addons/len_backpacks.pbo Normal file

Binary file not shown.

View File

@@ -17,22 +17,26 @@ _bulkqty = 0;
if(_buy_o_sell == "sell") then {
// SELL ONLY check if item if bulk
_bulkItem = call compile format["bulk_%1;",_part_in];
// SELL ONLY check if item is bulk
_bulkItem = "bulk_" + _part_in;
_bulkqty = {_x == _bulkItem} count magazines player;
diag_log format["DEBUG bulk: %1", _bulkItem];
_bos = 1;
};
if (_bulkqty >= 1) then {
// TODO: optimize for one db call only
// Find qty of box and
_bulkqty = getNumber (configFile >> "CfgMagazines" >> _bulkItem >> "count");
_part_in = "bulk_" + _part_in;
player removeMagazine _part_in;
diag_log format["DEBUG remove magazine %1", _part_in];
// increment trader for each
for "_x" from 1 to _bulkqty do {
for "_x" from 1 to 12 do {
["dayzTradeObject",[_activatingPlayer,_traderID,_bos]] call callRpcProcedure;
waitUntil {!isNil "dayzTradeResult"};
@@ -42,9 +46,59 @@ if (_bulkqty >= 1) then {
};
};
_qty_out = _qty_out * 12;
// gold = 36 copper
// gold = 6 silver
//
if (_part_out == "ItemSilverBar") then {
if (_qty_out >= 6) then {
// find number of gold
_gold_out = _qty_out / 6;
// whole number of gold bars
_gold_qty_out = floor _gold_out;
_part_out = "ItemGoldBar";
for "_x" from 1 to _gold_qty_out do {
player addMagazine _part_out;
};
// Find remainder
_partial_qty_out = (_gold_out - _gold_qty_out) * 6;
// whole number of gold bars
_silver_qty_out = floor _partial_qty_out;
_part_out = "ItemSilverBar";
for "_x" from 1 to _silver_qty_out do {
player addMagazine _part_out;
};
} else {
for "_x" from 1 to _qty_out do {
player addMagazine _part_out;
};
};
} else {
for "_x" from 1 to _qty_out do {
player addMagazine _part_out;
};
};
cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];

View File

@@ -302,8 +302,8 @@ class CfgLoot {
"FoodCanPasta",
"ItemBandage",
"ItemPainkiller",
"ItemToolbox",
"ItemEtool"
"ItemWire",
"ItemTankTrap",
},
{
0.09,

View File

@@ -678,6 +678,80 @@ class Citizen1; // External class reference
nameSound = "fuelstation";
};
class Ship: AllVehicles
{
displayName = "Ship";
transportMaxMagazines = 2000;
transportMaxWeapons = 200;
transportMaxBackpacks = 40;
};
class SmallShip: Ship
{
displayName = "Small Ship";
transportMaxMagazines = 100;
transportMaxWeapons = 20;
};
class BigShip: Ship
{
displayName = "Big Ship";
transportMaxMagazines = 500;
transportMaxWeapons = 200;
};
class Fishing_Boat: Ship
{
displayName = "Fishing boat";
maxSpeed = 40;
transportMaxMagazines = 400;
transportMaxWeapons = 40;
transportMaxBackpacks = 8;
};
class Smallboat_1: Ship
{
displayName = "Small boat";
maxSpeed = 30;
transportMaxMagazines = 200;
transportMaxWeapons = 20;
transportMaxBackpacks = 4;
};
class smallboat_2: Smallboat_1
{
displayName = "Small boat II";
};
class Boat: Ship
{
transportMaxMagazines = 100;
transportMaxWeapons = 10;
transportMaxBackpacks = 2;
};
class RHIB: Boat
{
displayName = "RHIB";
};
class RHIB2Turret: RHIB
{
displayName = "RHIB (Mk19)";
};
class RubberBoat: Boat
{
transportMaxMagazines = 50;
transportMaxWeapons = 5;
transportMaxBackpacks = 1;
};
class Zodiac: RubberBoat
{
displayName = "CRRC";
};
class PBX: RubberBoat
{
displayName = "PBX";
};
class PBX_ACR: Ship
{
displayName = "PBX";
transportMaxMagazines = 50;
transportMaxWeapons = 5;
transportMaxBackpacks = 1;
};
// Lingor hangars
//class land_ibr_hangar: land_ibr_hangar

View File

@@ -28,12 +28,12 @@ class CfgMods
class DayZ
{
dir = "DayZ";
name = "DayZ";
name = "DayZ Epoch";
picture = "z\addons\dayz_code\gui\dayz_logo_ca.paa";
hidePicture = 0;
hideName = 0;
action = "http://www.dayepoch.com";
version = "0.82";
version = "0.84";
hiveVersion = 0.96; //0.93
};
};

View File

@@ -87,7 +87,7 @@ class RscDisplayMain : RscStandardDisplay
class DAYZ_Version : CA_Version
{
idc = -1;
text = "DayZ Epoch 0.82 (1.7.5.M1D25)";
text = "DayZ Epoch 0.84 (1.7.5.M1D25)";
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
};
class CA_TitleMainMenu;

Binary file not shown.

View File

@@ -8,7 +8,7 @@ PixelShaderID="Normal";
VertexShaderID="Basic";
class Stage1
{
texture="D:\GitHub Personal\DayZ-Epoch\dayz_equip\textures\safe1_NOHQ.paa";
texture="dayz_equip\textures\safe1_NOHQ.paa";
uvSource="tex";
class uvTransform
{
@@ -44,7 +44,7 @@ class Stage3
};
class Stage4
{
texture="D:\GitHub Personal\DayZ-Epoch\dayz_equip\textures\safe1_SMDI.paa";
texture="dayz_equip\textures\safe1_SMDI.paa";
uvSource="tex";
class uvTransform
{

View File

@@ -258,7 +258,7 @@ spawn_vehicles = {
spawn_roadblocks = {
private["_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray","_isRoad","_roadlist","_istoomany"];
_WreckList = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1"];
_WreckList = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1","Rubbish2"];
_WreckLoot = ["DynamicDebris"];
waitUntil{!isNil "BIS_fnc_selectRandom"};
if (isDedicated) then {