Commit Graph

762 Commits

Author SHA1 Message Date
ebayShopper dd2ba5cf6a Fix mission check typo
My mistake in 410ef64
2017-12-11 17:59:27 -05:00
ebayShopper 410ef644ae Add better handling of very large files in mission check
Thanks to Dihan for pointing this out.
2017-12-10 17:12:33 -05:00
ebayShopper 894dafe4f5 Update change log 2017-12-10 16:47:24 -05:00
ebayShopper 5ca381e95a Remove some glitched map objects
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/f1b7ffe3274dfda9e0bcf94babfb84e039061335

https://github.com/DayZMod/DayZ/commit/08a883c2884920e424fc03f1a30deac2a17d9686

https://github.com/DayZMod/DayZ/commit/368dd0e8d57f9e3b130501c17fbd00a7d34a4e9f

https://github.com/DayZMod/Battleye-Filters/commit/b0f60765d9cb03bbaeb8313f2125bccd4a1d98db

https://github.com/DayZMod/Battleye-Filters/commit/4ae5006f8b99f74895f766e624bbf860be504eeb
2017-12-04 12:47:15 -05:00
ebayShopper 973247950e Fix fresh spawns running on login
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/cbb1b7ab90cb6d1c7c30a28892066380bb525ca9
2017-12-02 17:27:41 -05:00
ebayShopper 1e65d5d324 Move server_getDiff to missionNameSpace
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/dc984fd21994c137b757a3ad4e7ff0dce7e4019a

https://github.com/DayZMod/DayZ/commit/d82f430c28f69c89c091bd18121578d293ba6400
2017-11-25 12:47:25 -05:00
ebayShopper c671cf9661 Update player_death.sqf
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/0e0ffa1d6eb04b94c90b0ef0551920b523d367d7
2017-11-21 16:30:19 -05:00
ebayShopper 4ea3f36830 Update PVDZ_sec_atp logs
This reverts commit 7b287a2

Vanilla commit:

https://github.com/DayZMod/DayZ/commit/a81dd8164c2029221fc4924817615191032b1fa8
2017-11-21 15:05:07 -05:00
ebayShopper 633ea92c18 Update vanilla town generator
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/bf47e028ee60c79b1d3b8ae4c20e6bd8014e3e52
2017-11-20 11:51:16 -05:00
ebayShopper 137f448793 Update vanilla fence damage
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/b56d85eb99ddb2e419864608b9098a5e96c0f7f6

https://github.com/DayZMod/DayZ/commit/2eb963dc3f381ece6496c129fa42b4b0b1baa90c

https://github.com/DayZMod/DayZ/commit/8b4a985cf632d0b0d14ca3e558c89729abeec5b0
2017-11-18 17:43:06 -05:00
oiad 2f178d8978 Consolidate weapon/magazine/backpack adding to function
This moves a lot of duplicated code from a server side only function
(server_addCargo) to a client/server function called fn_addCargo.
2017-11-19 11:06:00 +13:00
ebayShopper 9d64d318f6 Revert 83dd363, c4816c8
This reverts commits c4816c8 and 83dd363.

These were not errors, oiad did not properly update his dayz_server
before testing.

Renamed variables and added comments to clarify object or position can
be used
2017-11-18 11:39:41 -05:00
ebayShopper 14a6252911 Fix DZE_BuildHeightLimit behavior
Corrections for #1988
@BigEgg17 abs(_objHDiff) only tells you how much you have raised the
ghost from where it was when you started building. To test the actual
height above ground or sea level you need to use _position select 2.

Say DZE_BuildHeightLimit was 60m and DZE_buildMaxMoveDistance was 20m.
If the player started building at 55m and then raised the object 20m,
they would be allowed to build at 75m with your check.

Also getPosATL should not be used here. For example, I am swimming on
the surface of the water on Napf and getPosATL returns a height of 29m.

@oiad you missed zombie_wildGenerate.sqf in #1987
2017-11-14 13:09:15 -05:00
ebayShopper eefcdf2610 Add basic security checks to object_killed
PVDZ_veh_Save = [_obj,"killed"]; could be abused in the same way as
server_deleteObj (42e0047)
2017-11-13 16:14:22 -05:00
ebayShopper 9fd8293246 Update server_publishVehicle3.sqf
This partially reverts f2360a9

Moved cargo fill after setPos because holding vehicle at [0,0,0] (water
location) too long may cause it to explode.
2017-11-12 11:49:59 -05:00
ebayShopper 9574aca91e Change publishVeh2 and 3 to call instead of spawn
Following 95b3174 it is now possible to use call to avoid suspension mid
execution as described in:

https://epochmod.com/forum/topic/43805-epoch-shed_safetyvehiclesqf-issue/?tab=comments#comment-292696
2017-11-11 15:59:23 -05:00
ebayShopper f2360a9cd8 Do not use localize on server machine
These were resulting in sloppy mixed language sentences.

The server language never changes, so localize should not be used server
side, unless complete translations are added for all logs, which is not
worth the effort. Only admins see them, unlike client side strings which
are seen by everyone.
2017-11-05 15:05:59 -05:00
ebayShopper 5a5323bdd7 Move large format strings to str formatText
These may exceed 2048 in some cases, so best to be safe and use str
formatText.

Partial revert of fbfb124 to more readable form
2017-11-05 12:12:26 -05:00
ebayShopper 4570c96f7f Update change log 2017-11-03 18:34:14 -04:00
ebayShopper 42e00475d6 Add sender verification to publish and swap object
Continuation of 8035df0

This is important to have on publish to identify cheaters who spam
create objects in the database or create objects with bad inventory.

- Renamed variables to backport to vanilla
- Removed % and & due to code filtering in publicvariableval.txt

Changes in modular_build.sqf were the same as player_build.sqf.

Tested with building, upgrading buildable/vehicle/tent, downgrading,
buying a vehicle, destroying tent and removing an object.
2017-11-03 16:09:14 -04:00
ebayShopper 6e48434001 Lower destroyed vehicle cleanup time to 5 minutes
Update to 78460ce
2017-10-31 14:06:43 -04:00
icomrade e079381931 move deleteVehicle to server 2017-09-26 16:18:47 -04:00
icomrade 02ff9be46d init vars earlier in updgrade veh
also move vehicle later so the player can't get in until after vehicle is fully initialized
2017-09-25 12:36:37 -04:00
icomrade 95b3174e04 move SQF wait/loop to get OID to SQL Procedure
for some reason you cannot directly get the OID using SELECT LAST_INSERT_ID(); and you cannot return it within the same hive call as the insert call (????).

Requires new procedure for 1.0.6.2
2017-09-25 12:14:41 -04:00
ebayShopper 6ab4faba39 Update AI hit log
Correction for 6239959

@oiad isPlayer is not reliable on dead units which may be passed to
fa_plr2Str. Also, the other scripts which call fa_plr2Str always provide
a player, so we only want to check for AI on the hit log source.
2017-09-19 12:11:27 -04:00
icomrade d750f576ed Prevent Zed + loot spawn in safezones
thanks BaroN for the idea
2017-09-13 12:45:00 -04:00
oiad e8a64c3757 Move more diag_log to debug lines 2017-09-09 12:16:58 +12:00
oiad ea38067cc1 Move more diag_log to debug lines 2017-09-09 12:11:38 +12:00
icomrade fc23bc73b2 remove hotfix from check 2017-09-08 11:42:03 -04:00
icomrade 7ad57d999f Merge pull request #1968 from oiad/patch-6
Switch forgotten "time" to "diag_tickTime"
2017-09-08 10:03:44 -04:00
icomrade ec78f61918 Merge pull request #1966 from oiad/patch-4
Dont show incomplete lockbox code
2017-09-08 10:03:01 -04:00
icomrade 58171acda2 Merge pull request #1964 from oiad/patch-2
Remove comment for engine starting/stopping
2017-09-08 10:02:31 -04:00
icomrade 23597db275 Merge pull request #1963 from oiad/patch-1
Fix vehicles bouncing when upgrading.
2017-09-08 10:01:49 -04:00
oiad 08796c65de Update server_swapObject.sqf 2017-08-31 00:07:16 +12:00
oiad 5eba1edf4b Update server_publishVehicle.sqf 2017-08-31 00:06:44 +12:00
oiad 9b79dde3aa Update server_publishVehicle3.sqf 2017-08-31 00:05:35 +12:00
oiad 7decf4dd9e Switch forgotten "time" to "diag_tickTime"
Seems like these were forgotten at some point, the rest are diag_tickTime
2017-08-21 20:50:23 +12:00
oiad 403e40063f Update server_handleSafeGear.sqf 2017-08-19 20:28:46 +12:00
oiad 367d74f3f4 Update server_handleSafeGear.sqf 2017-08-19 11:53:11 +12:00
oiad ecf013839e Dont show incomplete lockbox code
If the player enters a wrong code the algorithm can make the entered code seem completely bogus, let's just exit out of the routine if that's the case.

Sample bad code (Just hit red key):
```11:45:54 "salival (playerUID) FAILED unlocking LockBox with code: Red0-9900 (actual: Red34) @038117 [3899.36,3580.24,1.632]"```
2017-08-19 11:46:35 +12:00
oiad e21e0e217f Remove comment for engine starting/stopping
Actually makes this functional without editing it, this is quite useful for custom scripts.
2017-08-17 23:33:51 +12:00
oiad bdfbcb1e32 Fix vehicles bouncing when upgrading.
This helps stop vehicles bouncing when being upgraded.
The Vehicle Key Changer script I rewrote uses the epoch vehicle upgrade system to claim/change the vehicle key, we noticed that it was causing the vehicles to bounce, but VKC uses all the position functions from the epoch script so it's not something that VKC has introduced.
2017-08-17 23:28:16 +12:00
oiad 4355824aad Revert commit 2017-08-17 23:25:08 +12:00
oiad d04a99aa04 Fix vehicles bouncing when upgrading.
This helps stop vehicles bouncing when being upgraded.
The Vehicle Key Changer script I rewrote uses the epoch vehicle upgrade system to claim/change the vehicle key, we noticed that it was causing the vehicles to bounce, but VKC uses all the position functions from the epoch script so it's not something that VKC has introduced.
2017-08-17 23:19:48 +12:00
oiad 7428f3fd1f AI hit messages and continuity
This changes the hit messages to only show AI instead of the AI's names.
Changes this:
20:08:37 "P1ayer PID#7(salival) hit by PID#1(Qadeer Hakimi) with
vil_G36VA4Eot/B_556x45_Ball <ammo left:25> from 356 meters in head_hit
for 0 damage"
To this:
20:08:37 "P1ayer PID#7(salival) hit by AI with
vil_G36VA4Eot/B_556x45_Ball <ammo left:25> from 356 meters in head_hit
for 0 damage"

Sanity fix for hit and kill for vehicles so they match:
Before:
22:44:03 "P1ayer PID#3(salival) hit by AI in Pickup (PK) DZ from 15
meters in head_hit for 0.88666 damage"
After:
22:44:03 "P1ayer PID#3(salival) hit by AI with a Pickup (PK) DZ from 15
meters in head_hit for 0.88666 damage"
Kill message:
22:44:04 "salival (76561197999617086) salival was killed
by AI with a Pickup_PK_INS_DZ from 15m"
2017-08-17 23:09:10 +12:00
icomrade e326678504 Don't str str 2017-08-02 18:57:26 -04:00
icomrade fbfb124296 use str instead of format 2017-08-01 17:39:53 -04:00
icomrade 6c7b884958 restrict again 2017-07-30 18:39:38 -04:00
ebayShopper 7a68f9f70b Add some basic compatibility for Ruegen map 2017-07-30 16:28:37 -04:00
icomrade de92ae22be reduce charset 2017-07-29 21:12:23 -04:00