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

Commit af55c4c

Browse files
committed
Yoink the dinky pistol from buy menu listing and replace it with a rad new Blaster pistol
1 parent 035485b commit af55c4c

File tree

8 files changed

+219
-2
lines changed

8 files changed

+219
-2
lines changed

Base.rte/Devices.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ IncludeFile = Base.rte/Devices/Shared.ini
1212
// Weapons
1313

1414
IncludeFile = Base.rte/Devices/Weapons/Pistol/Pistol.ini
15+
IncludeFile = Base.rte/Devices/Weapons/BlasterPistol/BlasterPistol.ini
1516
IncludeFile = Base.rte/Devices/Weapons/SMG/SMG.ini
16-
IncludeFile = Base.rte/Devices/Weapons/BattleRifle/BattleRifle.ini
1717
IncludeFile = Base.rte/Devices/Weapons/Shotgun/Shotgun.ini
18+
IncludeFile = Base.rte/Devices/Weapons/BattleRifle/BattleRifle.ini
1819

1920

2021
// Explosives
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
///////////////////////////////////////////////////////////////////////
2+
// Blaster Pistol
3+
4+
5+
AddEffect = MOPixel
6+
PresetName = Blaster Pistol Trail Glow
7+
Mass = 0.25
8+
LifeTime = 200
9+
RestThreshold = -1
10+
GlobalAccScalar = 0.1
11+
AirResistance = 0.05
12+
AirThreshold = 1
13+
Color = Color
14+
R = 255
15+
G = 255
16+
B = 255
17+
Atom = Atom
18+
Material = Material
19+
CopyOf = Bullet Metal
20+
ScreenEffect = ContentFile
21+
FilePath = Base.rte/Effects/Glows/BlueBig.png
22+
EffectStartStrength = 0.3
23+
EffectStopStrength = 0.1
24+
EffectAlwaysShows = 1
25+
26+
27+
AddAmmo = Round
28+
PresetName = Round Blaster Pistol
29+
ParticleCount = 1
30+
Particle = MOPixel
31+
CopyOf = Blaster Pistol Trail Glow
32+
PresetName = Bullet Blaster Pistol
33+
ScriptPath = Base.rte/Devices/Weapons/BlasterPistol/BlasterShot.lua
34+
Sharpness = 3
35+
HitsMOs = 1
36+
AirResistance = 0.01
37+
WoundDamageMultiplier = 1.5
38+
Atom = Atom
39+
Material = Material
40+
CopyOf = Bullet Metal
41+
TrailColor = Color
42+
R = 255
43+
G = 255
44+
B = 255
45+
TrailLength = 46
46+
ScreenEffect = ContentFile
47+
FilePath = Base.rte/Effects/Glows/BlueSmaller.png
48+
EffectStartStrength = 0.2
49+
Shell = MOSParticle
50+
CopyOf = Tiny Smoke Trail 3
51+
FireVelocity = 130
52+
LifeVariation = 0.3
53+
ShellVelocity = 5
54+
Separation = 1
55+
56+
57+
AddAmmo = Magazine
58+
PresetName = Magazine Blaster Pistol
59+
Mass = 1.5
60+
HitsMOs = 0
61+
GetsHitByMOs = 0
62+
CollidesWithTerrainWhileAttached = 1
63+
SpriteFile = ContentFile
64+
FilePath = Base.rte/Devices/Weapons/BlasterPistol/BlasterPistolMagazine.png
65+
FrameCount = 1
66+
SpriteOffset = Vector
67+
X = -3
68+
Y = -3
69+
AtomGroup = AtomGroup
70+
AutoGenerate = 1
71+
Material = Material
72+
CopyOf = Military Stuff
73+
Resolution = 2
74+
Depth = 0
75+
DeepCheck = 0
76+
JointStrength = 200
77+
JointStiffness = 1
78+
ParentOffset = Vector
79+
X = 2
80+
Y = 1
81+
DrawAfterParent = 0
82+
RoundCount = 12
83+
RegularRound = Round
84+
CopyOf = Round Blaster Pistol
85+
86+
87+
AddDevice = HDFirearm
88+
PresetName = Blaster Pistol
89+
AddToGroup = Weapons
90+
AddToGroup = Weapons - Secondary
91+
Description = Trade Star's standard issue sidearm. This energy-based weapon features plenty of ammo and decent power, with a lengthy reload time.
92+
Mass = 3.5
93+
HitsMOs = 0
94+
GetsHitByMOs = 1
95+
SpriteFile = ContentFile
96+
FilePath = Base.rte/Devices/Weapons/BlasterPistol/BlasterPistol.png
97+
FrameCount = 2
98+
SpriteOffset = Vector
99+
X = -6
100+
Y = -4
101+
EntryWound = AEmitter
102+
CopyOf = Dent Metal
103+
ExitWound = AEmitter
104+
CopyOf = Dent Metal
105+
GoldValue = 20
106+
AtomGroup = AtomGroup
107+
AutoGenerate = 1
108+
Material = Material
109+
CopyOf = Military Stuff
110+
Resolution = 4
111+
Depth = 0
112+
DeepGroup = AtomGroup
113+
AutoGenerate = 1
114+
Material = Material
115+
CopyOf = Military Stuff
116+
Resolution = 4
117+
Depth = 10
118+
DeepCheck = 0
119+
JointStrength = 100
120+
JointStiffness = 0.5
121+
JointOffset = Vector
122+
X = -3
123+
Y = 2
124+
DrawAfterParent = 0
125+
DualWieldable = 1
126+
OneHanded = 1
127+
StanceOffset = Vector
128+
X = 9
129+
Y = 4
130+
SharpStanceOffset = Vector
131+
X = 13
132+
Y = -1.5
133+
SupportOffset = Vector
134+
X = -1
135+
Y = 3
136+
SharpLength = 130
137+
Magazine = Magazine
138+
CopyOf = Magazine Blaster Pistol
139+
Flash = Attachable
140+
CopyOf = Muzzle Flash Blue
141+
FireSound = SoundContainer
142+
AttenuationStartDistance = 130
143+
AddSound = ContentFile
144+
FilePath = Base.rte/Devices/Weapons/BlasterPistol/Sounds/BlasterFire.flac
145+
PitchVariation = 0.05
146+
EmptySound = SoundContainer
147+
AddSound = ContentFile
148+
FilePath = Base.rte/Sounds/Devices/EmptyClick1.flac
149+
ReloadStartSound = SoundContainer
150+
AttenuationStartDistance = 110
151+
AddSound = ContentFile
152+
FilePath = Base.rte/Sounds/Devices/ReloadStart.flac
153+
ReloadEndSound = SoundContainer
154+
AttenuationStartDistance = 120
155+
AddSound = ContentFile
156+
FilePath = Base.rte/Sounds/Devices/ReloadEnd.flac
157+
RateOfFire = 400
158+
ReloadTime = 1800
159+
FullAuto = 0
160+
FireIgnoresThis = 1
161+
ShakeRange = 4
162+
SharpShakeRange = 2
163+
NoSupportFactor = 1.5
164+
ParticleSpreadRange = 0
165+
ShellEjectAngle = 0
166+
MuzzleOffset = Vector
167+
X = 7
168+
Y = -1
169+
EjectionOffset = Vector
170+
X = 7
171+
Y = -1
172+
AddGib = Gib
173+
GibParticle = MOPixel
174+
CopyOf = Spark Yellow 1
175+
Count = 10
176+
MaxVelocity = 20
177+
MinVelocity = 8
178+
AddGib = Gib
179+
GibParticle = MOPixel
180+
CopyOf = Spark Yellow 2
181+
Count = 10
182+
MaxVelocity = 20
183+
MinVelocity = 8
184+
AddGib = Gib
185+
GibParticle = MOSParticle
186+
CopyOf = Gib Metal Rust Micro A
187+
Count = 6
188+
MaxVelocity = 15
189+
MinVelocity = 5
190+
AddGib = Gib
191+
GibParticle = MOSParticle
192+
CopyOf = Gib Metal Grey Micro A
193+
Count = 8
194+
MaxVelocity = 15
195+
MinVelocity = 5
196+
AddGib = Gib
197+
GibParticle = MOSRotating
198+
CopyOf = Gib Device Small M
199+
GibWoundLimit = 5
1023 Bytes
Loading
1023 Bytes
Loading
973 Bytes
Loading
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
function Create(self)
2+
self.trailPar = CreateMOPixel("Blaster Pistol Trail Glow", "Base.rte");
3+
self.trailPar.Pos = self.Pos;
4+
self.trailPar.Vel = self.Vel * 0.1;
5+
self.trailPar.Lifetime = 60;
6+
MovableMan:AddParticle(self.trailPar);
7+
end
8+
function Update(self)
9+
if not self.ToDelete and self.trailPar and MovableMan:IsParticle(self.trailPar) then
10+
self.trailPar.Pos = self.Pos - Vector(self.PrevVel.X, self.PrevVel.Y):SetMagnitude(math.min(self.PrevVel.Magnitude * rte.PxTravelledPerFrame, self.TrailLength) * 0.5);
11+
self.trailPar.Vel = self.PrevVel * 0.5;
12+
self.trailPar.Lifetime = self.Age + TimerMan.DeltaTimeMS;
13+
end
14+
if self.Vel.Magnitude < 4 then
15+
self.ToDelete = true;
16+
end
17+
end
Binary file not shown.

Base.rte/Devices/Weapons/Pistol/Pistol.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ AddDevice = HDFirearm
6262
ExitWound = AEmitter
6363
CopyOf = Dent Metal
6464
GoldValue = 5
65-
Buyable = 1
65+
Buyable = 0
6666
AtomGroup = AtomGroup
6767
AutoGenerate = 1
6868
Material = Material

0 commit comments

Comments
 (0)