Commit Graph

7363 Commits

Author SHA1 Message Date
A Man f3c80934b4 Small loot tweaks for balance (#1719)
* Small loot tweak

Lowered the spawn chance of duct tape a bit.

* Small loot tweaks

Smaller spawn chance of binoculars, Knife and maps
2016-08-01 18:13:05 -04:00
ebaydayz ee3eb845a3 Remove selling backpacks from vehicles
I don't think we should allow selling backpacks from vehicles because we
can not get backpack contents.

We can only remove all backpacks with clearBackpackCargo and then add
back new empty backpacks for ones that weren't sold.

This means players may unintentionally wipe all contents of all other
backpacks in their vehicle when they only want to sell one.

Thanks @AirwavesMan for catching this.

Also made changes discussed in #1718 @oiad
2016-08-01 17:14:42 -04:00
ebaydayz 3bf9c4452e Update test build
Since some mission file paths changed
2016-08-01 10:10:00 -04:00
ebaydayz d2bf8b30eb Update config trader from 34f9f97
Forgot to update m16a2_dz (supports GL now).

https://github.com/EpochModTeam/DayZ-Epoch/commit/34f9f97aa31c5f368379dc7856ea6610f3d8f3cc
2016-07-31 20:32:53 -04:00
ebaydayz 287a80c417 Add extra note about changed item classnames
Since a lot of people are missing this.
2016-07-31 20:17:08 -04:00
ebaydayz a5be49c546 Add handling of magazine overflow in AdvTrade and free slot icons
- Added proper handling of pistol mags and regular mags in gear to
prevent magazine overflow
- Added pre-check if return change will overflow gear + backpack free
space. If change will not fit in gear + backpack free space then buy is
prevented with a message notifying the player. In the case of a sale it
proceeds anyway, but notifies player if overflow occurs (see comments in
returnChange)
- Consolidated duplicate code for calculating free space and returning
cargo of an object into new calcFreeSpace
- Old calculateFreeSpace renamed to displayFreeSpace
- Added Weps/Mags/Bags icons to free slot numbers display
2016-07-31 18:38:53 -04:00
ebaydayz d7cb2b446e Merge pull request #1717 from oiad/master
Backpack sound fix
2016-07-30 18:42:29 -04:00
oiad 6a5d03f143 Backpack sound fix
Fix backpack sound error, re: @ndavalos
2016-07-31 10:26:31 +12:00
icomrade 24f6a0ab9a Correct build text 2016-07-30 17:06:46 -04:00
ebaydayz cc129cf403 Fix buyItems error from #1716 @oiad 2016-07-30 12:28:33 -04:00
ebaydayz fbffd8e9cb Fix hit_glass setVariable filter
@icomrade - In regex character classes only match each single character.
So a range with more than one character on one end (20) won't work:
http://www.regular-expressions.info/charclass.html

You can see that by running this code in-game with your old filter and
it will kick you:
player setVariable ["hit_glass3",1,true];

Adding the + on the end makes it match the character class one or more
times, so now it will match any integer >= 0.
2016-07-30 12:07:26 -04:00
ebaydayz 8589b9d46d Fix fn_collisions in wrong folder
My mistake from
https://github.com/EpochModTeam/DayZ-Epoch/commit/657830291b893028a285767039736a482f2378e4
2016-07-30 11:07:04 -04:00
ebaydayz 1700224124 New Var added for antiWallHacks.
Vanilla development commit:

https://github.com/DayZMod/DayZ/commit/224be145334775ccadaa721b62189941ef944dc0
2016-07-30 10:51:42 -04:00
icomrade 60c37e8b76 Fix duplicate action fix when crafting 2016-07-30 10:37:19 -04:00
ebaydayz 657830291b Updated vanilla Collision system
Vanilla development commit:

https://github.com/DayZMod/DayZ/commit/0a1db17343f0eb828c60f08c28c06e571ee366cf
2016-07-30 10:34:25 -04:00
ebaydayz 811327de58 Fix typo
Shows "Only 0 backpacks fit in your backpack" until the translation is
updated.
2016-07-30 10:11:40 -04:00
ebaydayz 6b5fbe433c Fix errors from #1716
Careful @oiad
2016-07-30 10:08:02 -04:00
oiad 7c4d25ef1a Advanced trading tidying, spelling fixes, private fixes and string fixes (#1716)
* Advanced trading tidying, spelling fixes, private fixes and string fixes.

Fixes snap building issue with metal floors
Fixed spelling mistakes in various scripts
Fixed formatting uglyness in various scripts
Fixed invalid private lines in various scripts
Changed Advanced trading so buying worked more like selling, You can't
select backpack if you don't have a pack nor can you select a vehicle if
you don't have a vehicle.
Removed some redundant strings from Advanced trading and changed a few
of the strings to be more englishy
Removed the ability to buy a backpack into your backpack (You cant do
this anyway)
Fixed a bug where if you had nothing in your backpack it would break the
checkArrayInConfig script so the titlebar would not refresh correctly
Removed slot counts on no backpack and no vehicle (No need for it, just
clutter)
Moved backpack/vehicle checking to z_at_getContainer.sqf

* Last part of tidyness fixes

Last part of tidyness fixes

* Actual backpack fix

Lets actually fix the buying backpack into backpack or backpack when you
already have one.

* Missing from commit

Missing from commit
2016-07-30 10:03:00 -04:00
ebaydayz 1d2fc3b266 Fix item count being overwritten in AdvTrade right list title
When switching back to category view the item count was overwritten
from:

https://github.com/EpochModTeam/DayZ-Epoch/commit/12a9e9f83edc78c4ec147d86e6b1d77f91323250

It is no longer needed to set it in changeBuySell since calcPrice runs
every time changeBuySell does. The one exception is when switching back
to category view, but in that case it stays in buy mode anyway.

You forgot to add it for single currency as well @oiad
2016-07-29 16:36:36 -04:00
ebaydayz fd2eb14c5e Give inTraderCity a default value
There is no point in setting inTraderCity = "Any"; since you can use the
isInTraderCity variable to check if a player is in any trader city. Also
"Any" will return false for isNil, so the only time "Unknown Trader
City" was being used was when the player had not entered any city yet.
If they left a known trader and went to an unknown one the RPT message
would say "bought x at Any". Now it will correctly say "Unknown Trader"
anytime a purchase is made without inTraderCity being set.
2016-07-29 15:48:51 -04:00
icomrade ac63a7d903 Merge branch 'master' of https://github.com/EpochModTeam/DayZ-Epoch 2016-07-29 15:20:36 -04:00
icomrade c628ad8873 Fix hit_glass kick for some vehicles 2016-07-29 15:20:32 -04:00
ebaydayz b1ae6c4a60 Fix unknown entity RPT error for Padlock and Frank&Beans
Vanilla development commit:

https://github.com/DayZMod/DayZ/commit/955c7a263ca4d1069c340c074c76181aade24ce4
2016-07-29 14:34:45 -04:00
icomrade d0c09e7bac Copy paste typo 2016-07-29 12:06:14 -04:00
icomrade c694545bce Update server for playerGroup column in HiveExt
Requires DLL Published in this commit as well as a database update.
Execute the added SQL in the 1.0.6_Updates.sql on your database.

Use Hive child 204 to update the new column
_key = format["CHILD:204:%1:%2:%3:", (getPlayerUID player),
dayZ_instance,  [Array of playerUIDs of group members]];
_key call server_hiveWrite;
2016-07-29 12:05:01 -04:00
ebaydayz c9efb9e9df Fix some undefined variables in Adv Trade systemChat messages
Fixes "Cannot sell any, tires are too damaged." and empty string in
success message.
2016-07-29 11:41:44 -04:00
ebaydayz b408e76c55 Fix extra spaces in Advanced Trading RPT log
Also fixed missing space in systemChat message.
2016-07-29 11:09:42 -04:00
ebaydayz ba3677f13d Remove redundant "Gear" text next to portrait in Adv Trade
The menu already says "Buying in" or "Selling from" Gear in the top left
so having it again in the top right is redundant. It was my mistake
adding it there originally.
2016-07-29 10:22:13 -04:00
icomrade bdf0870f3e Fix keys not deleting
Should work fine, but more validation is always good, I tested selling
from all inventories with DZE_SaleRequiresKey true and false.
2016-07-29 00:55:20 -04:00
icomrade d31df4f1fc Typos 2016-07-28 21:12:51 -04:00
ebaydayz f9ca43c795 Don't diag_log player name as array
Forgot to update this diag_log. My mistake from:

https://github.com/EpochModTeam/DayZ-Epoch/commit/28a522ba6442e0d6af54cd0794e6e25df6029673
2016-07-28 16:38:55 -04:00
ebaydayz 1bfc6b3c31 Fix combat status_bg not matching other icons' status_bg sizes
See
https://github.com/EpochModTeam/DayZ-Epoch/commit/fbc77547507dcc063ab56c9620e95d7e1e5a5151
for discussion
2016-07-28 15:37:26 -04:00
icomrade 2cdf9b5806 Small fix, revert 1 frame uisleep to regular sleep
I wasn't getting errors without if (gear_done) then {}; surrounding the
uiSleeps, so I don't quite trust the engine was executing them, I also
question the ability of uisleep to handle single frame precision (but I
haven't tested anything regarding this yet).
2016-07-28 14:54:50 -04:00
icomrade 82e2500cac Re-add magazine refill fix when changing clothes
This is the code from 1.0.5.2 before it became 1.0.6, it contains the
fix for backpack wipes in 1.0.5.1. I lightly tested it with 1.0.6 but it
will need more testing before release.
2016-07-28 13:27:30 -04:00
icomrade 21019056c3 Merge branch 'master' of https://github.com/EpochModTeam/DayZ-Epoch 2016-07-28 12:54:33 -04:00
icomrade 9552ceea9e Require part to be damaged to be removed
see comments @ 3292d84b85
2016-07-28 12:54:30 -04:00
ebaydayz 0fbf55da06 Move server_traders to dayz_code
This reduces the mission size for servers using default traders. Admins
can easily copy paste over the include to customize.
2016-07-28 12:05:31 -04:00
ebaydayz 82cf8e76f0 Updated Breaking to support Metal Gates.
Vanilla development commit:

https://github.com/DayZMod/DayZ/commit/bf16f402f68feeb6c530c00f151741f5707c1e04
2016-07-28 11:17:11 -04:00
ebaydayz e399556af2 Fix wrong handler for PVDZ_Server_processCode
Vanilla development commit:

https://github.com/DayZMod/DayZ/commit/afbedde9fa595bc6de38d850752d140ade7ef71a
2016-07-28 11:02:28 -04:00
ebaydayz cbbbe1bd8f Randomized tree directions
Vanilla development commit:

https://github.com/DayZMod/DayZ/commit/beac505eb4ec3706550230d70c2fee10e056e1a8
2016-07-28 10:49:28 -04:00
ebaydayz e8cbfdffb3 Merge pull request #1713 from oiad/master
Advanced trading tidyness
2016-07-28 09:49:32 -04:00
oiad 12a9e9f83e Advanced trading tidyness
Optimizes the code for the buyitems item listing (What was I thinking!)
Adds item count to buy/sell list (Useful for checking against
backpack/vehicle storage space constraints when buying multiple items)
Small logging fix.
2016-07-28 23:08:11 +12:00
ebaydayz f84140c555 Don't clear buying list on category switch + AdvTrade fixes
The buying list now acts like a shopping cart. It is no longer cleared
when switching between categories or containers. Closing the dialog or
switching to sell mode still clears it.

Also fixed:
- Filter button in sell mode
- Bug where filtering sellable list readded items already moved to
selling list
- Visual price display not clearing when remove all button is used on
buying list
- Gear container picture showing rank instead of portrait in buy mode
- Dialog is no longer closed when trying to sell zero items
- LbCurSel is now reset when the buyable list is cleared
- Category is no longer opened onLbSelChanged. Instead you need to
double click or use the "View" button, so the arrow keys can be used for
selecting too.
2016-07-27 18:40:03 -04:00
icomrade bd91044e7b Fix duplicate action check with vanilla objects
+ typo fix
2016-07-27 11:08:50 -04:00
icomrade 49222ac415 Part 2 of salvage change 2016-07-27 11:05:26 -04:00
icomrade 3292d84b85 Allow salvage any part < 100% damage
thanks for pointing this out @LunaCB
2016-07-27 11:02:06 -04:00
icomrade fd2db4f07d Fix kick when crashing planes 2016-07-27 01:23:38 -04:00
icomrade b704d6d081 Update CreateVehicle.txt
fixes kick when using Gyro/Mozzie grenades
2016-07-27 01:21:23 -04:00
icomrade b88cdf217a Repack RC1
Incorrectly packed the updated pbos
2016-07-26 22:32:06 -04:00
icomrade d8a85753da Update HiveExt.DLL to offset ObjectUID by 1
An ObjectID/UID of 1 is used by some special objects spawned by the
server, this should prevent any issues.
2016-07-26 22:21:32 -04:00