This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathconfig.lua
197 lines (185 loc) · 5.26 KB
/
config.lua
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
Config = Config or {}
-- server and client
Config.MaxActivePetsPetPlayer = 2
Config.DataUpdateInterval = 10
Config.Settings = {
let_players_cutomize_their_pet_after_purchase = true,
callCompanionDuration = 2, -- sec
despawnDuration = 3, -- sec
itemUsageCooldown = 1, -- sec
minHuntingAbilityLevel = 1, -- level
PetMiniMap = { showblip = true, sprite = 442, colour = 2, shortRange = false },
chaseDistance = 50.0,
chaseIndicator = true, -- huge marker on hunted target head
petMenuKeybind = 'o' -- keybind (players can change bind)
}
Config.Balance = {
maximumLevel = 50, -- xp callculation only works util level 99 don't set it to higher values
afk = {
-- 60-sec passed after the player is AFK pet will wander in area
-- 100-sec after when the player is AFK pet will start doing animation
-- after 120-sec passes timer will start over from 0
afkTimerRestAfter = 120, -- sec
wanderingInterval = 60,
animationInterval = 90
}, -- sec pet gonna go wandering around player after player is AFK for a certain time
petting_stress_relief = math.random(12, 24)
}
-- distincts are needed for animations and to know if pet can hunt or not
-- in my testing generaly small animals can't hunt.
-- so potentially you won't need to change distinct value!
-- distinct = "yes dog" ==> means this pet can hunt
-- distinct = "no dog" ==> means this dog can't hunt
Config.pets = {
[1] = {
name = 'keepcompanionwesty',
model = 'A_C_Westy',
maxHealth = 150,
distinct = 'no dog'
},
[2] = {
name = 'keepcompanionshepherd',
model = 'A_C_shepherd',
maxHealth = 250,
distinct = 'yes dog'
},
[3] = {
name = 'keepcompanionrottweiler',
model = 'A_C_Rottweiler',
maxHealth = 300,
distinct = 'yes dog'
},
[4] = {
name = 'keepcompanionretriever',
model = 'A_C_Retriever',
maxHealth = 300,
distinct = 'yes dog'
},
[5] = {
name = 'keepcompanionpug',
model = 'A_C_Pug',
maxHealth = 150,
distinct = 'no dog'
},
[6] = {
name = 'keepcompanionpoodle',
model = 'A_C_Poodle',
maxHealth = 150,
distinct = 'no dog'
},
[7] = {
name = 'keepcompanionmtlion2',
model = 'A_C_Panther',
maxHealth = 350,
distinct = 'yes cat',
price = 50000
},
[8] = {
name = 'keepcompanionmtlion',
model = 'A_C_MtLion',
maxHealth = 350,
distinct = 'yes cat'
},
[9] = {
name = 'keepcompanioncat',
model = 'A_C_Cat_01',
maxHealth = 150,
distinct = 'no cat'
},
[10] = {
name = 'keepcompanionhusky',
model = 'A_C_Husky',
maxHealth = 350,
distinct = 'yes dog'
},
[11] = {
name = 'keepcompanionhen',
model = 'A_C_Hen',
maxHealth = 350,
distinct = 'no hen'
},
[12] = {
name = 'keepcompanionrabbit',
model = 'A_C_Rabbit_01',
maxHealth = 350,
distinct = 'no rabbit'
},
[13] = {
name = 'keepcompanioncoyote',
model = 'A_C_Coyote',
maxHealth = 350,
distinct = 'no cat'
},
[14] = {
name = 'keepcompanionrat',
model = 'A_C_Rat',
maxHealth = 150,
distinct = 'no cat'
},
}
Config.core_items = {
-- don't change table keys
['food'] = {
item_name = 'petfood',
settings = {
duration = 5,
amount = 50,
-- placeholders
usage_cycle = 48, -- time to reach 100% to 0% Calories
resting_cycle = 15,
overeat = 20, --(percent) how much pets can eat more than they need (RER)
max_overeat = 200, --(percent) 200% of their need
weight_gain_by_evereat = 5, --(percent)
max_weight_gain_by_evereat = 200 --(percent) 200% of their max weight
}
},
['collar'] = {
item_name = 'collarpet',
settings = {
duration = 10
}
},
['nametag'] = {
item_name = 'petnametag',
settings = {
duration = 10
}
},
['firstaid'] = {
item_name = 'firstaidforpet',
settings = {
duration = 2,
healing_duration_multiplier = 1,
revive_duration_multiplier = 1,
heal_amount = 25, --(percent) 25% of their max health
revive_heal_bonuses = 25 --(additive) base health to stay alive is 100 it mean 100 + revive_amount
}
},
['groomingkit'] = {
item_name = 'petgroomingkit',
},
['waterbottle'] = {
item_name = 'petwaterbottleportable',
settings = {
duration = 2,
max_capacity = 10,
water_bottle_refill_value = 2, -- how much every bottle of water can fill flask
thirst_reduction_per_drinking = 25, --(additive)
thirst_value_increase_per_tick = 0.1,
}
}
}
-- K9 Settings
Config.inventory_name = 'qb-inventory'
local illegal_items = {
'weed_brick',
'coke_small_brick',
'coke_brick'
}
Config.k9 = {
illegal_items = illegal_items,
models = {
'A_C_Rottweiler',
'A_C_shepherd'
}
}