This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +30
-17
lines changed
Coalition.rte/Devices/Explosives/FragGrenade Expand file tree Collapse file tree 5 files changed +30
-17
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,11 @@ AddDevice = TDExplosive
120
120
InheritsVel = 0
121
121
AddGib = Gib
122
122
GibParticle = MOPixel
123
- CopyOf = Air Blast Scripted
124
- Spread = 0
125
- MaxVelocity = 50
126
- MinVelocity = 50
123
+ CopyOf = Air Blast
124
+ Count = 40
125
+ MaxVelocity = 80
126
+ MinVelocity = 70
127
127
InheritsVel = 0
128
+ SpreadMode = 1
128
129
GibImpulseLimit = 50000
129
130
GibWoundLimit = 2
Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ AddDevice = TDExplosive
209
209
MinVelocity = 40
210
210
MaxVelocity = 60
211
211
InheritsVel = 0
212
+ SpreadMode = 1
212
213
AddGib = Gib
213
214
GibParticle = MOPixel
214
215
CopyOf = Particle Napalm Bomb
@@ -239,6 +240,7 @@ AddDevice = TDExplosive
239
240
MaxVelocity = 40
240
241
InheritsVel = 0
241
242
LifeVariation = 0.20
243
+ SpreadMode = 1
242
244
AddGib = Gib
243
245
GibParticle = PEmitter
244
246
CopyOf = Ground Flame
@@ -247,6 +249,7 @@ AddDevice = TDExplosive
247
249
MaxVelocity = 25
248
250
InheritsVel = 0
249
251
LifeVariation = 0.20
252
+ SpreadMode = 1
250
253
AddGib = Gib
251
254
GibParticle = MOSParticle
252
255
CopyOf = Flame Smoke 2
Original file line number Diff line number Diff line change @@ -79,8 +79,11 @@ AddDevice = HDFirearm
79
79
Y = 2
80
80
SharpLength = 5
81
81
Magazine = Magazine
82
- CopyOf = Null Magazine Infinite
82
+ CopyOf = Null Magazine
83
+ PresetName = Magazine Medikit
84
+ RoundCount = 3
83
85
Loudness = 0
86
+ Reloadable = 0
84
87
RecoilTransmission = 0
85
88
RateOfFire = 60
86
89
ReloadTime = 250
Original file line number Diff line number Diff line change 1
1
function Create (self )
2
- self .uses = 3 ;
3
2
self .baseStrength = 10 ;
4
3
5
4
self .confirmSound = CreateSoundContainer (" Confirm" , " Base.rte" );
@@ -21,7 +20,7 @@ function Update(self)
21
20
end
22
21
end
23
22
if target and (target .Health < target .MaxHealth or target .WoundCount > 0 ) then
24
- local strength = self .baseStrength + math.ceil (3000 / (1 + math.abs (target .Mass + target .Material .StructuralIntegrity ) * 0.5 ));
23
+ local strength = self .baseStrength + math.ceil (3000 / (1 + math.abs (target .Mass - target . InventoryMass + target .Material .StructuralIntegrity ) * 0.5 ));
25
24
if target .Health < target .MaxHealth then
26
25
target .Health = math.min (target .Health + strength , target .MaxHealth );
27
26
end
@@ -42,17 +41,15 @@ function Update(self)
42
41
local cross = CreateMOSParticle (" Particle Heal Effect" , " Base.rte" );
43
42
cross .Pos = target .AboveHUDPos + Vector (0 , 5 );
44
43
MovableMan :AddParticle (cross );
45
-
46
- self :Reload ();
47
- self .uses = self .uses - 1 ;
48
44
else
49
45
self .errorSound :Play (self .Pos );
46
+ if self .Magazine then
47
+ self .Magazine .RoundCount = self .Magazine .RoundCount + self .RoundsFired ;
48
+ end
50
49
end
51
50
end
52
- end
53
- if self .uses == 0 then
54
- self .ToDelete = true ;
55
- elseif self .Magazine then
56
- self .Magazine .RoundCount = self .uses ;
51
+ if self .RoundInMagCount == 0 then
52
+ self .ToDelete = true ;
53
+ end
57
54
end
58
55
end
Original file line number Diff line number Diff line change @@ -70,11 +70,20 @@ AddDevice = MOSRotating
70
70
InheritsVel = 0
71
71
AddGib = Gib
72
72
GibParticle = MOPixel
73
- CopyOf = Air Blast Scripted
74
- Spread = 0
73
+ CopyOf = Air Blast
74
+ Count = 50
75
+ Spread = 3.14
75
76
MaxVelocity = 90
76
77
MinVelocity = 80
77
78
InheritsVel = 0
79
+ SpreadMode = 1
80
+ AddGib = Gib
81
+ GibParticle = MOPixel
82
+ CopyOf = Air Blast Scripted
83
+ Spread = 0
84
+ MaxVelocity = 70
85
+ MinVelocity = 60
86
+ InheritsVel = 0
78
87
79
88
80
89
AddDevice = TDExplosive
You can’t perform that action at this time.
0 commit comments