Additional Recipe Settings
Add custom animation
If you do not want to use the normal animation for a recipe in a recipe, you can also easily change this via the Config
Get your animation
A good resource to find animation is:
Add the animation to the Config
Add the following code to the recipe you want to change the animation for:
animation = {
dict = 'you animation dict', -- Animation dict
anim = 'your animation name', -- Animation name
}
Example:
animation = {
dict = 'anim@gangops@facility@servers@bodysearch@', -- Animation dict
anim = 'player_search', -- Animation name
}
['lockpick'] = {
label = 'Lockpick',
ingrediants = {
['scrapmetal'] = {amount = 3, remove = true},
['WEAPON_HAMMER'] = {amount = 1, remove = false}
},
outputs = {
['lockpick'] = 2
},
processTime = 15,
failChance = 15,
showIngrediants = false,
animation = {
dict = 'anim@amb@drug_processors@coke@female_a@idles',
anim = 'idle_a',
},
skillCheck = {
enabled = true,
difficulty = {'easy', 'easy', 'medium', 'easy'},
keys = {'w', 'a', 's', 'd'}
}
},
Add particles
This feature is not fully implemented and tested yet and may not work as expected.
This features allows you to add particles to your recipes. This can be used to make the recipe more interactive.
Get your particle
A good resource to find particles is:
Add the particle to the Config
Add the following code to the recipe you want to add the particle to:
particlefx = {
dict = 'your dict name',
particle = 'your particle name',
color = {r = 255, g = 255, b = 255},
offset = {x = 0.0, y = 0, z = 0},
scale = 0.5,
},
color = {r = 255, g = 255, b = 255},
The color of the particle, each value can be between 0 and 255 and represents the RGB color space.
offset = {x = 0.0, y = 0, z = 0},
The offset of the particle, this can be used to move the particle to a different position. Due to the fact that some particles are not centered, it is recommended to play around with the values. If you are using the default table props provided by the script, you can use the following values:
offset = {x = 0.0, y = -1.5, z = 1.0},
scale = 0.5,
The scale of the particle, this can be used to make the particle bigger or smaller.
['lockpick'] = {
label = 'Lockpick',
ingrediants = {
['scrapmetal'] = {amount = 3, remove = true},
['WEAPON_HAMMER'] = {amount = 1, remove = false}
},
outputs = {
['lockpick'] = 2
},
processTime = 15,
failChance = 15,
showIngrediants = false,
particlefx = {
dict = 'core',
particle = 'ent_amb_torch_fire',
color = {r = 255, g = 255, b = 255},
offset = {x = 0.0, y = -1.5, z = 1.0},
scale = 0.5,
},
skillCheck = {
enabled = true,
difficulty = {'easy', 'easy', 'medium', 'easy'},
keys = {'w', 'a', 's', 'd'}
}
},