Commit Graph

5803 Commits

Author SHA1 Message Date
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