-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProperties.lua
More file actions
164 lines (138 loc) · 3.91 KB
/
Properties.lua
File metadata and controls
164 lines (138 loc) · 3.91 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
local WASD = {
pause = "return",
jump = "w",
left = "a",
right = "d",
drop = "s",
aimup = "up",
aimdown = "down",
grapple = "space",
sail = "x",
power = "lshift",
powerlock = "capslock",
nexttool = "pageup",
prevtool = "pagedown",
usetool = "kp0",
triggertool = "kp,",
discardtool = "delete",
inventoryview = "1",
newtool = "kp0",
canceltool ="delete",
setpart = "space"
}
local WASD2 = {
pause = "return",
jump = "space",
left = "a",
right = "d",
drop = "s",
aimup = "up",
aimdown = "down",
grapple = "w",
sail = "x",
power = "lshift",
powerlock = "capslock",
nexttool = "e",
prevtool = "q",
usetool = "rshift",
triggertool = "rctrl",
discardtool = "delete",
inventoryview = "1",
newtool = "kp0",
setpart = "space"
}
local ARROWS = {
pause = "return",
jump = "up",
left = "left",
right = "right",
drop = "down",
aimup = "w",
aimdown = "s",
grapple = "space",
sail = "lalt",
power = "lshift",
powerlock = "capslock",
nexttool = "d",
prevtool = "a",
usetool = "e",
triggertool = "r",
discardtool = "x",
inventoryview = "1",
newtool = "e",
setpart = "space"
}
Properties = {}
Properties.Identity = "HyperMind"
Properties.Keybindings = ARROWS
Properties.WindowWidth = 1200
Properties.WindowHeight = 800
Properties.ChunkSize = {x=400,y=400}
Properties.NrChunkWide = math.ceil(Properties.WindowWidth / Properties.ChunkSize.x)
Properties.NrChunkHigh = math.ceil(Properties.WindowHeight / Properties.ChunkSize.y)
Properties.DropShadow = 1
Properties.Gravity = {x=0,y=500}
Properties.LevelOV = math.pi / 2
Properties.MaximumTimestep = 0.15
Properties.MaximumSimulationDistance = 2000
Properties.MaximumSimulationChunks = math.floor(Properties.MaximumSimulationDistance / Properties.ChunkSize.x)
Properties.LinkNeighborhood = 5
Properties.PlayerRadius = 5
Properties.PlayerMass = 10
Properties.PlayerInvMass = 0.1
Properties.MaxVelocity = 300
Properties.PlayerFreefallRotationPeriod = 2
Properties.PowerFactor = 2
Properties.PlayerStepWidth = 2
Properties.PlayerCrawlSpeed = 1
Properties.PlayerCrawlScanStep = 0.1
Properties.PlayerCrawlSpeedPowFactor = Properties.PowerFactor
Properties.PlayerRestitution = 0.2
Properties.LaunchPowerRate = 1
Properties.JumpPower = 1200
Properties.JumpPowerPowFactor = Properties.PowerFactor
Properties.GrapplePower = 600
Properties.GrappleDrawRadius = 2
Properties.GrappleFireTime = 1
Properties.GrappleChainLinkLength = 5
Properties.GrappleChainMaxLength = 500
Properties.GrappleChainLinkMass = 0.05
Properties.GrappleChainLinkInvMass = 20
Properties.SailFactor = 50
Properties.SailGraphicFactor = 5
Properties.VehicleLifetime = 5
Properties.SingleUseFactor = 2
Properties.ToolThingLaunchPower = 1000
Properties.ToolThingMass = 0.10
Properties.ToolThingInvMass = 10
Properties.ToolThingRadius = 3
Properties.ToolThingRestitution = 0.7
Properties.StandardReloadTime = 2
Properties.FastReloadTime = 0.25
Properties.VehicleStickThreshold = 2
Properties.BurstSpread = 0.1
Properties.BurstModeShots = 5
Properties.EmitterRate = 1
Properties.EmitterPeriod = 0.1
Properties.EmitterSpread = 0.3
Properties.EmittedToolThingSize = 1/3
Properties.CascadeNumber = 1.5
Properties.CascadeSpread = 0.3
Properties.CascadedToolThingSize = 0.5
Properties.ProjectionFalloff = 3
Properties.FadeLengthFactor = 0.5
Properties.VehicleTimeGrace = 2
Properties.AimSpeedMax = 4.2
Properties.AimSpeedAccel = 2.2
Properties.AimSpeedSlow = 4.8
Properties.AimDistance = 40
Properties.AimDrawRadius = 5
Properties.AimFocusDistance = 180
Properties.CollisionAlpha = 128
Properties.MaterialLevels = 4
Properties.PregenChunkBorder = 6
Properties.CameraPosResponse = 0.8
Properties.CameraVelResponse = 1.8
Properties.Windiness = 0.3
Properties.WindHorizontalness = 3
Properties.AirViscosity = 0.2