Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 32267ee

Browse files
committed
Constructor rework; e.g. can now build blocks of different sizes, concrete spray blends into terrain a bit better
1 parent f614a00 commit 32267ee

34 files changed

+398
-398
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--This script will help the wet concrete fill up gaps in the terrain
2+
function OnCollideWithTerrain(self, materialID)
3+
if self.PrevVel.Magnitude > 5 then
4+
local hitPos = Vector();
5+
local trace = self.PrevVel * rte.PxTravelledPerFrame;
6+
if SceneMan:CastStrengthRay(self.PrevPos, trace, 10, hitPos, 1, rte.airID, SceneMan.SceneWrapsX) and SceneMan:CastWeaknessRay(hitPos, trace, 10, hitPos, 1, SceneMan.SceneWrapsX) then
7+
self.Pos = hitPos;
8+
self.Vel = trace * (-1);
9+
self.ToSettle = true;
10+
end
11+
end
12+
self:DisableScript("Base.rte/Devices/Tools/ConcreteSprayer/ConcreteFill.lua");
13+
end

Base.rte/Devices/Tools/ConcreteSprayer/ConcreteSprayer.ini

Lines changed: 75 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,92 @@
22
// Concrete Sprayer Ammo
33

44

5+
AddAmmo = MOPixel
6+
PresetName = Particle Concrete 1
7+
ScriptPath = Base.rte/Devices/Tools/ConcreteSprayer/ConcreteFill.lua
8+
Mass = 0.1
9+
RestThreshold = 500
10+
HitsMOs = 1
11+
GetsHitByMOs = 0
12+
Color = Color
13+
R = 143
14+
G = 143
15+
B = 143
16+
Atom = Atom
17+
Material = Material
18+
CopyOf = Wet Concrete
19+
TrailColor = Color
20+
R = 143
21+
G = 143
22+
B = 143
23+
TrailLength = 3
24+
25+
26+
AddAmmo = MOPixel
27+
CopyOf = Particle Concrete 1
28+
PresetName = Particle Concrete 2
29+
Color = Color
30+
R = 115
31+
G = 115
32+
B = 115
33+
Atom = Atom
34+
Material = Material
35+
CopyOf = Wet Concrete
36+
TrailColor = Color
37+
R = 143
38+
G = 143
39+
B = 143
40+
TrailLength = 3
41+
42+
43+
AddAmmo = MOPixel
44+
CopyOf = Particle Concrete 1
45+
PresetName = Particle Concrete 3
46+
Color = Color
47+
R = 96
48+
G = 96
49+
B = 96
50+
Atom = Atom
51+
Material = Material
52+
CopyOf = Wet Concrete
53+
TrailColor = Color
54+
R = 115
55+
G = 115
56+
B = 115
57+
TrailLength = 3
58+
59+
60+
AddAmmo = MOPixel
61+
CopyOf = Particle Concrete 1
62+
PresetName = Particle Concrete 4
63+
Color = Color
64+
R = 79
65+
G = 79
66+
B = 79
67+
Atom = Atom
68+
Material = Material
69+
CopyOf = Wet Concrete
70+
TrailColor = Color
71+
R = 115
72+
G = 115
73+
B = 115
74+
TrailLength = 3
75+
76+
577
AddAmmo = Round
678
PresetName = Round Concrete Spray Light
779
ParticleCount = 4
880
Particle = MOPixel
9-
PresetName = Particle Concrete Light
10-
Mass = 0.1
11-
RestThreshold = 500
12-
HitsMOs = 1
13-
GetsHitByMOs = 0
14-
Color = Color
15-
R = 143
16-
G = 143
17-
B = 143
18-
Atom = Atom
19-
Material = Material
20-
CopyOf = Wet Concrete
21-
TrailColor = Color
22-
R = 143
23-
G = 143
24-
B = 143
25-
TrailLength = 3
81+
CopyOf = Particle Concrete 1
2682
FireVelocity = 11
2783
Separation = 8
2884

2985

3086
AddAmmo = Round
87+
CopyOf = Round Concrete Spray Light
3188
PresetName = Round Concrete Spray Dark
32-
ParticleCount = 4
3389
Particle = MOPixel
34-
PresetName = Particle Concrete Dark
35-
Mass = 0.1
36-
RestThreshold = 500
37-
HitsMOs = 1
38-
GetsHitByMOs = 0
39-
Color = Color
40-
R = 115
41-
G = 115
42-
B = 115
43-
Atom = Atom
44-
Material = Material
45-
CopyOf = Wet Concrete
46-
TrailColor = Color
47-
R = 115
48-
G = 115
49-
B = 115
50-
TrailLength = 3
51-
FireVelocity = 11
52-
Separation = 8
90+
CopyOf = Particle Concrete 3
5391

5492

5593
AddAmmo = Magazine

0 commit comments

Comments
 (0)