forked from dimonft/Vehicle-Wagon-2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.lua
29 lines (23 loc) · 1.25 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
--[[ Copyright (c) 2020 robot256 (MIT License)
* Project: Vehicle Wagon 2 rewrite
* File: config.lua
* Description: Hold constants for data and control phases
--]]
LOADING_DISTANCE = 10 -- Allowable distance between vehicle and wagon when Loading
CAPSULE_RANGE = 12 -- Range in Winch capsule prototype
RANGE_COLOR = {r=0.08, g=0.08, b=0, a=0.01} -- Color of the loading/unloaidng range graphics
KEEPOUT_RANGE_COLOR = {r=0.12, g=0, b=0, a=0.01} -- Color of the loading/unloaidng range graphics
UNLOAD_RANGE = 6 -- Allowable distance between vehicle and wagon when Unloading
LOADING_EFFECT_TIME = 120 -- duration of sound and loading ramp beam
UNLOADING_EFFECT_TIME = 120 -- duration of sound and loading ramp beam
EXTRA_RAMP_TIME = 20
SPIDER_CHECK_TIME = 60
SPIDER_LOAD_DISTANCE = 6
BED_CENTER_OFFSET = -0.6 -- Y offset of center of flatbed used to position icons and loading ramp graphics
BED_WIDTH = 0.475 -- Half-Width of flatbed used to position loading ramp graphics
MIN_LOADING_RAMP_LENGTH = 1 -- Don't squish the belt so much when right on top of the wagon
VWSURF = "vehicle-wagon-hidden"
SIM_CARPOS = {x = -2.5234375, y = -1.91015625}
SIM_TANKPOS = {x = 4.3515625, y = -1.70703125}
SIM_LEFTPOS = {x = -2.28125, y = 3}
SIM_RIGHTPOS = {x = 4.71875, y = 3}