-
-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy pathconfig.cpp
More file actions
143 lines (137 loc) · 3.34 KB
/
config.cpp
File metadata and controls
143 lines (137 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// <copyright file="config.cpp" author="Terje Bruoygard">
// This repository does not provide full code of our mods need to be fully functional.
// That's just interfaces and simple logic that may be helpful to other developers while using our mods as dependencies.
// Modification, repackaging, distribution or any other use of the code from this file except as specified in the LICENSE.md is strictly prohibited.
// Copyright (c) TerjeMods. All rights reserved.
// </copyright>
class CfgPatches
{
class TerjeRadiation_Protection
{
units[]={};
weapons[]={};
requiredVersion=0.1;
requiredAddons[]=
{
"TerjeRadiation", "DZ_Data", "DZ_Gear_Crafting", "DZ_Gear_Consumables",
"DZ_Characters_Tops", "DZ_Characters_Shoes", "DZ_Characters_Pants",
"DZ_Characters_Masks", "DZ_Characters_Headgear", "DZ_Characters_Gloves"
};
};
};
// This class determines the extent to which scriptable areas affect different parts of the player's body and determines their defense and exposure.
class CfgTerjeScriptableProtection
{
class radiation
{
/*class SLOT_NAME
{
weight=1; // Determines the effect of the protection of a given body part on the body as a whole.
protectionBodyValues={}; // Sets radiation protection for a specific body part without the use of a protection suit up to a certain radiation threshold.
protectionBodyThresholds={}; // Protection thresholds are used to apply different levels of protection for different levels of impact on the player.
};*/
class Feet
{
weight=0.5;
protectionBodyValues[]={1.0,0.75,0.5,0.25,0.0};
protectionBodyThresholds[]={0.8,0.85,0.9,0.95,1.0};
};
class Legs
{
weight=1.0;
protectionBodyValues[]={1.0,0.75,0.5,0.25,0.0};
protectionBodyThresholds[]={0.6,0.7,0.8,0.9,1.0};
};
class Body
{
weight=1.0;
protectionBodyValues[]={1.0,0.75,0.5,0.25,0.0};
protectionBodyThresholds[]={0.6,0.7,0.8,0.9,1.0};
};
class Gloves
{
weight=0.5;
protectionBodyValues[]={1.0,0.75,0.5,0.25,0.0};
protectionBodyThresholds[]={0.8,0.85,0.9,0.95,1.0};
};
class Headgear
{
weight=0.5;
protectionBodyValues[]={1.0,0.75,0.5,0.25,0.0};
protectionBodyThresholds[]={0.6,0.7,0.8,0.9,1.0};
};
class Mask
{
weight=2.5;
protectionBodyValues[]={};
protectionBodyThresholds[]={};
};
};
};
class CfgVehicles
{
class Clothing;
class Inventory_Base;
class GasMask_Filter_Improvised: Inventory_Base
{
class Protection
{
radiation=0.7;
/*
Used for more fine-tuning similar to the parameters from CfgTerjeScriptableProtection but for a specific cloting,
allowing you to specify protection levels based on the strength of the environment radiation.
radiationValues[]={1.0,0.75,0.5,0.25,0.0};
radiationThresholds[]={0.6,0.7,0.8,0.9,1.0};
*/
};
};
class GasMask_Filter: Inventory_Base
{
class Protection
{
radiation=0.9;
};
};
class NBCJacketBase: Clothing
{
class Protection
{
radiation=0.95;
};
};
class NBCBootsBase: Clothing
{
class Protection
{
radiation=0.95;
};
};
class NBCPantsBase: Clothing
{
class Protection
{
radiation=0.95;
};
};
class GasMask: Clothing
{
class Protection
{
radiation=0.95;
};
};
class NBCHoodBase: Clothing
{
class Protection
{
radiation=0.95;
};
};
class NBCGloves_ColorBase: Clothing
{
class Protection
{
radiation=0.95;
};
};
};