+ added color coding of backpack when selling fixes #112
+ fixed silver to gold conversion rates on bulk selling weapons and
backpacks. Fixes #114
+ add more missing weights for R3F realism. Fixes #110
+ added random direction to purchased vehicles makes it harder to get
duplicate uid not fixed 100%
This commit is contained in:
vbawol
2013-02-20 10:37:42 -06:00
parent fa5a0902f9
commit fcada965e2
12 changed files with 125 additions and 69 deletions

View File

@@ -58,40 +58,35 @@ if (_bulkqty >= 1) then {
// gold = 6 silver
//
if (_part_out == "ItemSilverBar") then {
if (_part_out == "ItemSilverBar" and _qty_out >= 30) then {
if (_qty_out >= 6) then {
// find number of gold
_gold_out = _qty_out / 6;
// find number of gold
_gold_out = _qty_out / 30;
// whole number of gold bars
_gold_qty_out = floor _gold_out;
// 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;
};
_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) * 30;
// whole number of silver 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 {