Commit Graph

400 Commits

Author SHA1 Message Date
vbawol
a0372bc88d Merge pull request #1509 from SJossy/patch-2
Update server_functions.sqf
2014-08-14 12:01:34 -05:00
Steven
29c9f979df Update server_functions.sqf
Cut & paste casualty
2014-08-09 11:26:18 +08:00
Uro1
2573bd184c Server & Traders spawning non-upgradable vehicles
Server and Traders spawning non-upgradable hilux1 & datsun1 variants
2014-08-08 21:18:48 +01:00
ebaydayz
6d1d4c998a Change count back to forEach
Can not nest count loops inside other count loops:
https://community.bistudio.com/wiki/Code_Optimisation#forEach_vs_count
2014-07-31 14:00:50 -04:00
ebaydayz
0d5d0b9b8e Change count back to forEach - fix empty safes
See Kronzky's note:
https://community.bistudio.com/wiki/count

You can only use count to iterate through an array if all elements in the array are of the same data type. In this case you have an array with strings (type), arrays (worldspace, inventory, hitpoints) and numbers (fuel, ownerID). You need to use forEach instead. 

This error explains the problem people were having with safe inventories being empty when they open them after a restart:
http://epochmod.com/forum/index.php?/topic/13423-safe-is-empty-after-restart-if-you-open-it/
https://github.com/vbawol/DayZ-Epoch/issues/1368
https://github.com/vbawol/DayZ-Epoch/issues/1422
2014-07-29 15:50:53 -04:00
ebaydayz
a8389ba2bc Fix typo _intentory > _inventory
_intentory should be _inventory
2014-07-29 14:26:48 -04:00
icomrade
33e9c7669b GetPlayerUID compile, update skin change 2014-07-17 14:29:17 -04:00
ebaydayz
87ee176d7d Fix nearestObjects position error
_pos should be _charPos. Currently it causes this error in server RPT on 1.63.112555+ because it references the player object, not the player object's position:

 6:36:48 Error in expression <ear"] call server_updateObject;
} count nearestObjects [_pos, dayz_updateObjects>
 6:36:48   Error position: <nearestObjects [_pos, dayz_updateObjects>
 6:36:48   Error 0 elements provided, 3 expected
 6:36:48 File z\addons\dayz_server\compile\server_playerSync.sqf, line 209
2014-07-15 23:54:26 -04:00
vbawol
652160a080 Merge pull request #1421 from ebaydayz/patch-2
Fix fire cleanup diag_log error
2014-07-15 21:39:34 -05:00
ebaydayz
da15f60224 Fix fire cleanup diag_log error
Looks like someone left an undefined variable in here by accident. _delQtyNull should be _delQtyFP
2014-07-13 13:34:47 -04:00
ebaydayz
0eb5f76c64 Update fnc_plyrHit.sqf
Fixed undefined variable "_weapon" error on 1.63.112555+
2014-07-13 12:18:38 -04:00
Uro1
5507513336 Fixed crash spawner & supply drop loot positioning 2014-07-10 19:13:18 +01:00
SilvDev
fdf563e378 Update mission.sqf 2014-07-04 19:26:35 +01:00
SilvDev
01cb6100ca Update mission.sqf 2014-07-04 19:26:30 +01:00
SilvDev
eb4b68fc33 Update mission.sqf 2014-07-04 19:26:27 +01:00
SilvDev
723a2ca713 Update mission.sqf 2014-07-04 19:26:26 +01:00
SilvDev
0a5e13a1d8 Update mission.sqf 2014-07-04 19:26:24 +01:00
SilvDev
ab874fe609 Update mission.sqf 2014-07-04 19:26:22 +01:00
SilvDev
0233923ba9 Update mission.sqf 2014-07-04 19:26:19 +01:00
SilvDev
35a84cd4a7 Update mission.sqf 2014-07-04 19:26:15 +01:00
SilvDev
3e47d3e3eb Update mission.sqf 2014-07-04 19:26:13 +01:00
SilvDev
4666bd9f5c Update mission.sqf 2014-07-04 19:26:11 +01:00
SilvDev
ec02c8aa2e Update mission.sqf 2014-07-04 19:26:09 +01:00
SilvDev
5776a4adee Update mission.sqf 2014-07-04 19:26:07 +01:00
SilvDev
3bbbae71bf Update mission.sqf 2014-07-04 19:26:04 +01:00
SilvDev
3716d302ce Update mission.sqf 2014-07-04 19:25:57 +01:00
SilvDev
32f18496a8 Update mission.sqf 2014-07-04 19:25:54 +01:00
SilvDev
7265978585 Update mission.sqf 2014-07-04 19:25:52 +01:00
SilvDev
800c2ebb08 Update mission.sqf 2014-07-04 19:25:49 +01:00
icomrade
3491e4462d Add variable 2014-06-30 12:46:06 -04:00
icomrade
6f8efd8428 Legacy UID 2014-06-30 11:53:14 -04:00
icomrade
a79e86ba33 Hopefully get names 100% of the time now 2014-06-13 14:13:51 -04:00
icomrade
b113c2e353 Fix group cleanup 2014-06-13 13:15:14 -04:00
[VB]AWOL
32146dd079 another little thing 2014-06-10 12:22:21 -05:00
[VB]AWOL
5ef386e5f4 fixed #1312 2014-06-10 12:18:50 -05:00
icomrade
b144c7dce6 Fix death messages 2014-06-09 13:01:56 -04:00
[VB]AWOL
726e4e0c22 push inventory global for now 2014-06-02 14:17:27 -05:00
[VB]AWOL
e7571b072d commented out more diag_logs 2014-06-02 13:40:26 -05:00
[VB]AWOL
1948965489 CH53_DZE instead of USEC_CH53_DZE... 2014-06-01 01:23:15 -05:00
[VB]AWOL
13d8023e82 fixed #1290 2014-06-01 01:17:28 -05:00
icomrade
e54b9983dd Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker
than forEach.
2014-05-27 15:37:57 -04:00
icomrade
774441ef45 Deprecated/Slow Commands
Stop using them!
2014-05-27 15:03:53 -04:00
icomrade
88ded0f3c0 Fixes 2014-05-27 13:51:35 -04:00
Sandbird
55d49c279b Update server_playerSync.sqf
With str(_currentModel) it adds quotes in the database so it becomes : "GUE_Soldier_CO_DZ"  breaking the skin. Either comment that line or set to to what i did :)
2014-05-14 16:24:30 +03:00
icomrade
2c23aa517d Better logging 2014-05-14 00:39:15 -04:00
[VB]AWOL
9b52797f84 Finish updating loot system to 1.8 with custom epoch features 2014-05-09 14:23:09 -05:00
Sandbird
30a9527d16 Update server_functions.sqf 2014-05-07 21:53:53 +03:00
[VB]AWOL
c92e43c763 fixed typo 2014-05-07 12:50:16 -05:00
[VB]AWOL
3d97f6e17d add logging method for lock/unlock 2014-05-07 10:06:12 -05:00
[VB]AWOL
e1577bc4f3 Revert to previous code for lock and unlock safes
Should fix dupe issues introduced with that newer system
2014-05-07 09:44:41 -05:00