Commit Graph
100 Commits
Author SHA1 Message Date
worldwidesorrow 48701daf31 Update CfgLoot.hpp
The overwrites have been corrected in the config files. Groups Vanilla.hpp and Tools.hpp added.
2020-01-09 17:29:31 -06:00
worldwidesorrow 32851d432d Increase max allowed loot piles around a player.
The default number for dayz_maxMaxWeaponHolders is for DayZ Mod. Since Epoch has the addition of small loot spawn points, it should have slightly higher allowed loot spawns around the player.
2020-01-09 17:19:03 -06:00
worldwidesorrow b73b2d2fa5 Separate config variables into client, server, or both. 2020-01-09 17:12:52 -06:00
worldwidesorrow 10889a1541 Update spawn.sqf
Replace switch do block with call using if and exitWith statements. Magazine class items are the most commonly spawned item so it is placed at the top. Switch to the more efficient form of createVehicle. Set more local variables at the top to make the file more readable. Prevent the generator from spawning halfway into the floor by raising the z coordinate. Lower the backpack spawns to prevent them from floating. Add replacement items if dayz_toolBreaking and dayz_knifeDulling are disabled.
2020-01-09 17:07:46 -06:00
worldwidesorrow 292ce61378 Update insertCargo.sqf
Replace switch do block with call scope with if, exitWith. Add magazine selection to spawned weapons. This functions spawns weapons into  a container. It should also spawn a random amount of matching magazines.
2020-01-09 16:54:52 -06:00
worldwidesorrow a1618e0dcf Update insert.sqf
Replace switch do block with call scope using if exitWith statements. The most common spawned item is a magazine class so it is placed at the top.
2020-01-09 16:52:06 -06:00
worldwidesorrow f9a92b2394 Delete compile.sqf
This mess of defines is inappropriate. The compiles have been added to the top of the init file.
2020-01-09 16:48:31 -06:00
worldwidesorrow f55e268606 Optimize loot init file
Optimizing the code in this file. It compiled in half the time of the original. Compiles have been added to the top because there is not very many.
2020-01-09 16:46:30 -06:00
worldwidesorrow abb4046281 Compiles have been added to the top of the init file. 2020-01-09 16:43:45 -06:00
worldwidesorrow 78f849eb2d Compiles have been added to the top of the init file. 2020-01-09 16:43:01 -06:00
worldwidesorrow 635a3e431c Add emptyBloodBag to dayz_typedBags
Add emptyBloodBag to dayz_typedBags to prevent it from spawning when dayz_classicBloodBagSystem is enabled.
2020-01-09 16:41:43 -06:00
worldwidesorrow 14838ed526 Removed sched_buildingBubble from compiles. 2020-01-09 16:38:41 -06:00
worldwidesorrow b21d02cc30 Delete sched_buildingBubble.sqf
This file is no longer needed.
2020-01-09 16:38:06 -06:00
worldwidesorrow fe861deec2 player_spawnCheck no longer needs to be spawned.
Since removing the unnecessary sleeps from zombie_generate, player_spawnCheck can now be called instead of spawned.
2020-01-09 16:37:09 -06:00
worldwidesorrow 7ec0ddd412 Spawn check no longer needs an init file. sched_buildingBubble has been removed.
sched_buildingBubble was not coded correctly and is not necessary.
2020-01-09 16:35:05 -06:00
worldwidesorrow 349b67c287 Add provisions for military buildings to spawn matching loot.
If a military building is selected then matching groups of RU,US,EU, or CZ loot are selected so that weapons, ammo, and attachments spawned in the building will match. Reintroduce loot position shuffling. This was a feature in 1.0.5.1. I'm not sure if this is necessary but it changes the order in which the loot positions are selected so the loot would in theory be in different places each time.
2020-01-09 16:29:11 -06:00
worldwidesorrow 22a04e7955 Clean up code and optimize building_spawnZombies
Checking for near zombies and players in the forEach loop is inappropriate and inefficient. Because it was checking for near zombies, the internal zombies were not spawning at all. It appeared that they were because the walking zombies were using the building position plus the radius option on createAgent. fn_selectRandomLocation using the size of the object as the minimum distance prevents the zombies from potentially spawning into objects and dying. The max distance for the crash site zombies is increased a bit so they can spawn farther away from the object since they are in an open field. The position on the internal zombies should not have the z coordinate automatically set to zero. This prevents the zombies from spawning at positions on upper floors of buildings.
2020-01-09 16:20:03 -06:00
worldwidesorrow 6bcfb68baa Compile frequently used function 2020-01-09 16:10:10 -06:00
worldwidesorrow efecce6619 Adding frequently used function to compiles. 2020-01-09 16:08:33 -06:00
worldwidesorrow fc6f576542 Clean up and optimize file
Function _cantSee should not be recompiled every time this file runs. fnc_fieldOfView is compiled in compiles.sqf and called here. Checking zombie counts in this file is redendant. It is already being done in player_spawnCheck and building_SpawnZombies. Variables "agentObject" and "BaseLocation" are unused. The createAgent command should not be used with a radius. This causes some of the zombies to be killed after being spawned into objects. Some of the walking zombies were spawning inside the building when they should not.
2020-01-09 16:06:37 -06:00
worldwidesorrow 41207ce861 Update init.sqf
Update to use KK's Array Shuffle Plus function. Shuffle the array 5 times.
2020-01-09 15:57:29 -06:00
worldwidesorrow 0f3f522e25 Replace slow array shuffle function with KK's Array Shuffle Plus
KK's code is more efficient and you can enter how many times you want to shuffle.
2020-01-09 15:55:23 -06:00
worldwidesorrow 6a1f4f49f0 Remove bad loot spawn point
Players cannot acquire a cursor target on the small loot spawn point that is on the top floor of the control tower above the lockers.
2019-12-20 15:07:44 -06:00
worldwidesorrow caa551778a Add loot and zed spawn points to Land_HouseBlock_C4.
This is one of the dayZero building overwrites with interior that never had spawn points made for it.
2019-12-20 14:59:23 -06:00
worldwidesorrow c3edadcc1f Update CHANGE LOG 1.0.7.txt 2019-12-12 05:20:53 -06:00
worldwidesorrow 44336caaaf Merge pull request #2050 from worldwidesorrow/master
Add option to give another player an antibacterial wipe.
2019-12-12 05:15:14 -06:00
worldwidesorrow 8c074be9a7 Add action for giving another player an antibacterial wipe. 2019-12-12 05:12:03 -06:00
worldwidesorrow 5d983694c8 Remove period from string. It doesn't belong there. 2019-12-12 05:07:31 -06:00
worldwidesorrow a89cd08438 Add files via upload 2019-12-12 05:03:07 -06:00
worldwidesorrow 16117b035c Add option to give another player an antibacterial wipe. 2019-12-12 05:01:47 -06:00
worldwidesorrow e57c54a2c7 Add PV for antibacterial wipe option. 2019-12-12 04:59:19 -06:00
worldwidesorrow 843269ad20 Compile antibacterial wipe file. 2019-12-12 04:57:40 -06:00
worldwidesorrow dc15929742 Update player_useMeds.sqf 2019-12-12 04:56:33 -06:00
worldwidesorrow 3adea80c34 Add Antibacterial wipe option 2019-12-12 04:54:46 -06:00
worldwidesorrow 61ff2b3c61 Add server side security to P 2019-12-12 02:40:09 -06:00
worldwidesorrow e913d1f77e Remove medForceUpdate 2019-12-12 00:20:35 -06:00
worldwidesorrow 8479d2f908 Remove medForceUpdate 2019-12-12 00:19:47 -06:00
worldwidesorrow 69ab20043d Remove medForceUpdate 2019-12-12 00:18:44 -06:00
worldwidesorrow fc0ec6a7e4 Remove medForceUpdate 2019-12-12 00:17:07 -06:00
worldwidesorrow 6652efbc70 Remove medForceUpdate 2019-12-12 00:16:24 -06:00
worldwidesorrow 8c6189de8b Remove medForceUpdate 2019-12-12 00:15:10 -06:00
worldwidesorrow 0b857d2ae2 Update CHANGE LOG 1.0.7.txt 2019-12-11 22:50:50 -06:00
worldwidesorrow b9a0d20040 Correction thanks to @RedLink-kam 2019-12-11 22:27:28 -06:00
worldwidesorrow 4cd3ccc888 Merge pull request #2049 from worldwidesorrow/master
Code auditing, optimization, archiving unused files
2019-12-11 22:03:18 -06:00
worldwidesorrow 2a145bf678 Add new strings
The strings were placed at the bottom so translators can find them easily.
2019-12-11 21:48:00 -06:00
worldwidesorrow 47f07a8c2e Remove NORRN_loadVcl, posForceUpdate, and medForceUpdate.
These variables are no longer used.
2019-12-11 21:36:33 -06:00
worldwidesorrow 2d03fb9b9b Remove variable exceptions.
The variables have been replaced by PVDZ_send.
2019-12-11 21:32:29 -06:00
worldwidesorrow 40dcf6fa99 Update server_sendToClient.sqf
Added server side security for higher risk PVDZ_send usage. Replace switch do block with inline function. Since only one option is selected for each call, a function using exitWith is the better option here. The transfuse completed option was removed. It is not used anywhere. Added options for drag, carry, load, and unconscious. There is a commented diag_log in the security check than can be used if server owners want it. However, Battleye logs all PVDZ_send usage.
2019-12-11 21:25:06 -06:00
worldwidesorrow 0d011ccb03 Remove unused variables posForceUpdate and medForceUpdate. 2019-12-11 21:05:17 -06:00
worldwidesorrow 2439364a4a Rename SQF/dayz_code/medical/morphine.sqf to Server Files/Archive/dayz_code/medical/morphine.sqf 2019-12-11 20:59:11 -06:00
worldwidesorrow de452ddac7 Rename SQF/dayz_code/medical/carry_old.sqf to Server Files/Archive/dayz_code/medical/carry_old.sqf 2019-12-11 20:58:21 -06:00
worldwidesorrow 517a227b5b Rename SQF/dayz_code/medical/init_medical.sqf to Server Files/Archive/dayz_code/medical/init_medical.sqf 2019-12-11 20:56:26 -06:00
worldwidesorrow 9d962b2dce Rename SQF/dayz_code/medical/load_wounded.sqf to Server Files/Archive/dayz_code/medical/load_wounded.sqf 2019-12-11 20:55:13 -06:00
worldwidesorrow 009469f7fa Send the PV directly instead of drilling down the list of options. 2019-12-11 20:49:16 -06:00
worldwidesorrow f5bd489273 Send the PV directly instead of drilling down the list of options. 2019-12-11 20:48:16 -06:00
worldwidesorrow 8d15eda6b4 Send the PV directly instead of drilling down the list of options. 2019-12-11 20:47:23 -06:00
worldwidesorrow bcc5b631cb Add files via upload
These files are either new or have extensive edits.
2019-12-11 20:42:24 -06:00
worldwidesorrow 07c1105dcd This action is only done on the local client.
To heal another player's sepsis, the sepsis bandage is used.
2019-12-11 20:40:50 -06:00
worldwidesorrow 3ab6dbcfd5 Replace execVM by calling existing function. Add localized messages, 2019-12-11 20:36:23 -06:00
worldwidesorrow 4968e45e2f Update epinephrine.sqf
isDead check should be done after the animation is finished. Remove redundant setVariable entries. If the animation is interrupted, return the item to the player's inventory. Add localized string.
2019-12-11 20:31:43 -06:00
worldwidesorrow b20dda348e PV was in the wrong place. Remove execVM and call existing function. Add localized strings.
This file makes morphine.sqf obsolete.
2019-12-11 20:20:57 -06:00
worldwidesorrow 24c19b0d75 Add option to heal another player's sepsis. Add another localized string. 2019-12-11 20:11:11 -06:00
worldwidesorrow 6e6919220d General code audit. 2019-12-11 20:02:18 -06:00
worldwidesorrow aaab8292e2 Update medTransfuse.sqf
Infection chance does not have to be recalculated repeatedly. There is no reason that the start message should be inside the loop. Display control 1300 does not need to be enabled here. It always runs. Remove redundant player check.
2019-12-11 19:44:42 -06:00
worldwidesorrow 0a282c1717 Remove redundant player check. Add localized message. 2019-12-11 19:25:38 -06:00
worldwidesorrow 53325a7c2a Remove redundant player check. Add localized message. 2019-12-11 19:24:19 -06:00
worldwidesorrow abf8c1731a Remove redundant isDead and player check. This has already been done.
Localized string added as well.
2019-12-11 19:22:02 -06:00
worldwidesorrow 5c7a5332cf Remove redundant player check. This is performed elsewhere. 2019-12-11 19:17:58 -06:00
worldwidesorrow f5a15bf9ab Remove redundant player check. This is performed elsewhere. 2019-12-11 19:17:07 -06:00
worldwidesorrow 207e0dff66 Update medBandaged.sqf 2019-12-11 19:15:37 -06:00
worldwidesorrow 58041723ad Update medAntibiotics.sqf 2019-12-11 19:10:50 -06:00
worldwidesorrow f7e9ecbd5b Update animDrag.sqf 2019-12-11 19:07:07 -06:00
worldwidesorrow bd7c93dd3c Rename SQF/dayz_code/medical/publicEH/set180.sqf to Server Files/Archive/dayz_code/medical/publicEH/set180.sqf 2019-12-11 19:05:47 -06:00
worldwidesorrow 47c6c33974 Rename SQF/dayz_code/medical/publicEH/rolltofront.sqf to Server Files/Archive/dayz_code/medical/publicEH/rolltofront.sqf 2019-12-11 19:05:00 -06:00
worldwidesorrow c113c5e2c1 Rename SQF/dayz_code/medical/publicEH/rolltoback.sqf to Server Files/Archive/dayz_code/medical/publicEH/rolltoback.sqf 2019-12-11 19:04:13 -06:00
worldwidesorrow 5bd85c3bca Rename SQF/dayz_code/medical/publicEH/pickUp.sqf to Server Files/Archive/dayz_code/medical/publicEH/pickUp.sqf 2019-12-11 19:03:27 -06:00
worldwidesorrow d2b77025f5 Rename SQF/dayz_code/medical/publicEH/noDamage.sqf to Server Files/Archive/dayz_code/medical/publicEH/noDamage.sqf 2019-12-11 19:02:35 -06:00
worldwidesorrow 329a7512c7 Rename SQF/dayz_code/medical/publicEH/noAnim.sqf to Server Files/Archive/dayz_code/medical/publicEH/noAnim.sqf 2019-12-11 19:01:34 -06:00
worldwidesorrow 15dabfe237 Rename SQF/dayz_code/medical/publicEH/medinject.sqf to Server Files/Archive/dayz_code/medical/publicEH/medinject.sqf 2019-12-11 19:00:19 -06:00
worldwidesorrow 7b640ba50b Rename SQF/dayz_code/medical/publicEH/load_wounded.sqf to Server Files/Archive/dayz_code/medical/publicEH/load_wounded.sqf 2019-12-11 18:59:06 -06:00
worldwidesorrow 6fded92592 Rename SQF/dayz_code/medical/publicEH/lieStill.sqf to Server Files/Archive/dayz_code/medical/publicEH/lieStill.sqf 2019-12-11 18:58:04 -06:00
worldwidesorrow 44154ef297 Rename SQF/dayz_code/medical/publicEH/deadState.sqf to Server Files/Archive/dayz_code/medical/publicEH/deadState.sqf 2019-12-11 18:57:13 -06:00
worldwidesorrow 30af3c1c31 Rename SQF/dayz_code/medical/publicEH/carriedUp.sqf to Server Files/Archive/dayz_code/medical/publicEH/carriedUp.sqf 2019-12-11 18:56:19 -06:00
worldwidesorrow 55880a67d9 Rename SQF/dayz_code/medical/publicEH/animHealed.sqf to Server Files/Archive/dayz_code/medical/publicEH/animHealed.sqf 2019-12-11 18:54:58 -06:00
worldwidesorrow 57d1243c0d Rename SQF/dayz_code/medical/publicEH/allowDamage.sqf to Server Files/Archive/dayz_code/medical/publicEH/allowDamage.sqf 2019-12-11 18:52:39 -06:00
worldwidesorrow a33a2bfcdf Remove variable medForceUpdate and replace execVM with called function. 2019-12-11 18:48:17 -06:00
worldwidesorrow bbdaf0cffe Uploading new files for load functions
The files are heavily edited.
2019-12-11 18:34:41 -06:00
worldwidesorrow 1b9679d646 Delete unload_wounded.sqf 2019-12-11 18:33:32 -06:00
worldwidesorrow a56643f466 Delete unLoad_act.sqf 2019-12-11 18:33:26 -06:00
worldwidesorrow 390aa9a0f7 Delete load_wounded.sqf 2019-12-11 18:33:20 -06:00
worldwidesorrow 269e5b1182 Delete load_act.sqf 2019-12-11 18:33:13 -06:00
worldwidesorrow cbca10ccae New files uploaded for the load functions
These files are heavily edited, so it is easier to just upload new copies.
2019-12-11 18:17:42 -06:00
worldwidesorrow fdec545635 Updates to public variables
Public variables used in the carry and drag functions are only compiled on the client. Only the server can use these PVs. They should be blacklisted in Battleye publicvariable.txt. PVDZ_sendUnconscious has been replaced by PVDZ_Send with server side security.
2019-12-11 18:13:17 -06:00
worldwidesorrow 7b11a0ef8f Move medical functions to !isDedicated
These functions are only used by the client.
2019-12-11 18:02:30 -06:00
worldwidesorrow a4c0638a36 Updates for medical and load actions
Add unconscious array to unload action. Add the carry action. Add the rest of the bloodbags to the bloodbag array. The typed bloodbags get their own actions so the player can select which bloodbag to administer. Alter the sepsis bandage option with a new localized string. NORRN_loadWoundedAction variable is no longer necessary. Remove redundant gear checks.
2019-12-11 17:59:51 -06:00
worldwidesorrow 1f60617862 Change to an inline function with exitWith
In cases like this where only one selection is required, the switch option is not the best option because it is slow. Using an inline function with exitWith, the most common options are placed at the top with the least common options placed near the bottom.
2019-12-11 17:38:51 -06:00
worldwidesorrow 65221ec477 Add server side security
This can be used to break a player's legs.
2019-12-11 17:34:23 -06:00
worldwidesorrow f1aecd9db3 Update CHANGE LOG 1.0.7.txt 2019-11-26 10:16:03 -06:00
worldwidesorrow ddca2cbec8 Remove unused line.
The operations were moved to the scheduler in the 1.0.6 update.
2019-11-26 09:37:51 -06:00
worldwidesorrow 94792b0623 Rename SQF/dayz_server/system/server_cleanup.sqf to Server Files/Archive/dayz_server/system/server_cleanup.sqf
These operations were moved to the scheduler during the 1.0.6 update. The line to compile this function is commented out in server_functions.sqf
2019-11-26 09:35:53 -06:00