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

Commit 0b870cb

Browse files
GacyrGacyr
authored andcommitted
Merge branch '4zk-content' into cf-143-data-version
2 parents dd1cdc1 + 8ed469a commit 0b870cb

File tree

711 files changed

+29960
-30497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

711 files changed

+29960
-30497
lines changed

Base.rte/AI/HumanBehaviors.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,8 +2644,11 @@ function HumanBehaviors.ThrowTarget(AI, Owner, Abort)
26442644
else
26452645
AI.fire = false
26462646
end
2647-
else
2648-
break -- no grenades left
2647+
else -- no grenades left, continue attack
2648+
if not (Owner.AIMode == Actor.AIMODE_SENTRY or Owner.AIMode == Actor.AIMODE_SQUAD) then
2649+
AI:CreateAttackBehavior(Owner)
2650+
end
2651+
break
26492652
end
26502653
else
26512654
if scan < 1 then

Base.rte/AI/HumanFunctions.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ function HumanFunctions.DoVisibleInventory(actor, showAll)
149149
if item.ClassName == "TDExplosive" then
150150
thrownCount = thrownCount + 1;
151151
elseif item.ClassName == "HDFirearm" or item.ClassName == "HeldDevice" then
152-
if showAll or item.Radius + item.Mass > largestItem then
153-
largestItem = item.Radius + item.Mass;
152+
if showAll or item.Diameter + item.Mass > largestItem then
153+
item = ToMOSprite(item);
154+
largestItem = item.Diameter + item.Mass;
154155
heldCount = heldCount + 1;
155156
local itemCount = math.sqrt(heldCount);
156157

@@ -159,7 +160,7 @@ function HumanFunctions.DoVisibleInventory(actor, showAll)
159160
--Bigger actors carry weapons higher up, smaller weapons are carried lower down
160161
local drawPos = actor.Pos + Vector((-actorBack.X * 0.5 - stackX) * actor.FlipFactor, -actorBack.Y * 0.75):RadRotate(actor.RotAngle);
161162
--Display tall objects upright
162-
local widthToHeightRatio = ToMOSprite(item):GetSpriteWidth()/ToMOSprite(item):GetSpriteHeight();
163+
local widthToHeightRatio = item:GetSpriteWidth()/item:GetSpriteHeight();
163164
local orientation = widthToHeightRatio > 1 and 1.57 * actor.FlipFactor or 0;
164165

165166
local tilt = (itemCount/item.Radius) * widthToHeightRatio * actor.FlipFactor;
@@ -168,7 +169,7 @@ function HumanFunctions.DoVisibleInventory(actor, showAll)
168169
for player = Activity.PLAYER_1, Activity.MAXPLAYERCOUNT - 1 do
169170
local screen = ActivityMan:GetActivity():ScreenOfPlayer(player);
170171
if screen ~= -1 and not SceneMan:IsUnseen(drawPos.X, drawPos.Y, ActivityMan:GetActivity():GetTeamOfPlayer(player)) then
171-
PrimitiveMan:DrawBitmapPrimitive(screen, drawPos, item, rotAng, 0, actor.HFlipped, true);
172+
PrimitiveMan:DrawBitmapPrimitive(screen, drawPos, item, rotAng, item.Frame, actor.HFlipped, true);
172173
end
173174
end
174175
end

Base.rte/Activities.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ AddActivity = GAScripted
8383

8484
AddActivity = GAScripted
8585
PresetName = Brain vs Brain
86-
SceneName = Grasslands Bunkers
86+
SceneName = Fredeleig Bunkers
8787
Description = Defend your bunker and invade your opponent's. You can fight against the AI in a pre-built bunker or build your own when fighting against your friends.
8888
ScriptFile = Base.rte/Activities/BrainVsBrain.lua
8989
InCampaignStage = 1

Base.rte/Actors/Shared.ini

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ AddActor = Leg
2222
MoveSpeed = 1
2323

2424

25+
AddActor = Attachable
26+
PresetName = Null Attachable
27+
Mass = 0
28+
HitsMOs = 0
29+
GetsHitByMOs = 0
30+
SpriteFile = ContentFile
31+
FilePath = Base.rte/Null.bmp
32+
AtomGroup = AtomGroup
33+
CopyOf = Null AtomGroup
34+
JointStrength = 10000
35+
JointStiffness = 0.1
36+
37+
2538
///////////////////////////////////////////////////////////////////////
2639
// Limb Paths
2740

@@ -422,9 +435,6 @@ AddEffect = AEmitter
422435
BurstSpacing = 920
423436
BurstScale = 1
424437
BurstTriggered = 1
425-
EmissionDamage = 0
426-
Flash = None
427-
FlashOnlyOnBurst = 0
428438
LoudnessOnEmit = 0.1
429439

430440

Base.rte/Devices/Explosives/NapalmBomb/NapalmBomb.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,23 +231,23 @@ AddDevice = TDExplosive
231231
MaxVelocity = 40
232232
LifeVariation = 0.50
233233
AddGib = Gib
234-
GibParticle = MOSParticle
234+
GibParticle = PEmitter
235235
CopyOf = Flame 2 Hurt
236236
Count = 10
237237
MinVelocity = 10
238238
MaxVelocity = 25
239239
InheritsVel = 0
240240
LifeVariation = 0.20
241241
AddGib = Gib
242-
GibParticle = MOSParticle
242+
GibParticle = PEmitter
243243
CopyOf = Flame Hurt Short
244244
Count = 20
245245
MinVelocity = 20
246246
MaxVelocity = 40
247247
InheritsVel = 0
248248
LifeVariation = 0.20
249249
AddGib = Gib
250-
GibParticle = MOSParticle
250+
GibParticle = PEmitter
251251
CopyOf = Ground Flame
252252
Count = 30
253253
MinVelocity = 10

Base.rte/Devices/Explosives/RemoteExplosive/RemoteExplosiveSet.lua

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,24 @@ end
5252
function RemoteExplosiveStick(self)
5353

5454
if self.actionPhase == 0 then
55+
local checkVec = Vector(self.Vel.X, self.Vel.Y + 1):SetMagnitude(math.max(self.Vel.Magnitude * rte.PxTravelledPerFrame, self.Radius));
56+
--Find a user to ignore hits with
57+
if not self.userID then
58+
self.userID = rte.NoMOID;
59+
local moCheck = SceneMan:CastMORay(self.Pos, checkVec * (-2), self.ID, -1, rte.airID, true, 1);
60+
if moCheck ~= rte.NoMOID then
61+
local rootID = MovableMan:GetMOFromID(moCheck).RootID;
62+
if rootID ~= rte.NoMOID then
63+
self.userID = rootID;
64+
end
65+
end
66+
end
5567
local rayHitPos = Vector();
5668
local rayHit = false;
57-
local checkVec = Vector(self.Vel.X, self.Vel.Y + 1):SetMagnitude(math.max(self.Vel.Magnitude * rte.PxTravelledPerFrame, self.Radius));
5869
for i = 1, 2 do
5970
local checkPos = self.Pos + (checkVec/i);
6071
local checkPix = SceneMan:GetMOIDPixel(checkPos.X, checkPos.Y);
61-
if checkPix ~= rte.NoMOID then
72+
if checkPix ~= rte.NoMOID and MovableMan:GetMOFromID(checkPix).RootID ~= self.userID then
6273
checkPos = checkPos + SceneMan:ShortestDistance(checkPos, self.Pos, SceneMan.SceneWrapsX):SetMagnitude(ToMOSprite(self):GetSpriteWidth() * 0.5 - 1);
6374
self.target = ToMOSRotating(MovableMan:GetMOFromID(checkPix));
6475
self.stickPosition = SceneMan:ShortestDistance(self.target.Pos, checkPos, SceneMan.SceneWrapsX);

Base.rte/Devices/Shared.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ AddAmmo = Magazine
5656
RoundCount = -1
5757

5858

59+
AddDevice = HeldDevice
60+
PresetName = Null Item
61+
Mass = 0
62+
HitsMOs = 0
63+
GetsHitByMOs = 0
64+
SpriteFile = ContentFile
65+
FilePath = Base.rte/Null.bmp
66+
Buyable = 0
67+
AtomGroup = AtomGroup
68+
CopyOf = Null AtomGroup
69+
JointStrength = 200
70+
JointStiffness = 1
71+
HUDVisible = 0
72+
LifeTime = 1
73+
74+
5975
///////////////////////////////////////////////////////////////////////
6076
// Ammo
6177

Base.rte/Effects/Pyro.ini

Lines changed: 80 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -979,20 +979,22 @@ AddEffect = MOSParticle
979979
SpriteFile = ContentFile
980980
FilePath = Base.rte/Effects/Pyro/FireBlastSmallB.bmp
981981
Mass = 0.49
982-
LifeTime = 600
983-
GlobalAccScalar = -0.6
982+
LifeTime = 800
984983
AirResistance = 0.05
985984
AirThreshold = 3
986985

987986

988987
AddEffect = MOSParticle
989988
CopyOf = Flame Smoke 2
990989
PresetName = Flame Smoke 2 Glow
990+
LifeTime = 700
991+
AirResistance = 0.037
992+
AirThreshold = 2
991993
ScreenEffect = ContentFile
992994
FilePath = Base.rte/Effects/Glows/FireGlow1.bmp
993995
EffectStartTime = 1
994996
EffectAlwaysShows = 1
995-
EffectStopTime = 300
997+
EffectStopTime = 350
996998
EffectStartStrength = 0.5
997999
EffectStopStrength = 0.0
9981000

@@ -1108,9 +1110,6 @@ AddEffect = AEmitter
11081110
ParticlesPerMinute = 0
11091111
BurstSize = 0
11101112
BurstScale = 0
1111-
BurstSpacing = 0
1112-
EmissionDamage = 0
1113-
FlashOnlyOnBurst = 0
11141113

11151114

11161115
AddAmmo = MOSRotating
@@ -1175,7 +1174,7 @@ AddAmmo = MOSRotating
11751174
AddEffect = MOSParticle
11761175
PresetName = Flame 1 Hurt
11771176
GlobalAccScalar = 0.9
1178-
AirResistance = 0.05
1177+
AirResistance = 0.04
11791178
AirThreshold = 1
11801179
RestThreshold = -1
11811180
Mass = 0.98
@@ -1236,17 +1235,20 @@ AddEffect = MOSParticle
12361235

12371236

12381237
AddEffect = PEmitter
1239-
PresetName = Flame 1 Hurt Emitter
1240-
AirResistance = 0.01
1238+
PresetName = Flame 1 Hurt
1239+
GlobalAccScalar = 0.9
1240+
AirResistance = 0.04
1241+
AirThreshold = 1
12411242
RestThreshold = -1
12421243
Mass = 0.98
1243-
LifeTime = 8000
1244+
LifeTime = 6000
12441245
Sharpness = 0.1
12451246
HitsMOs = 0
12461247
GetsHitByMOs = 0
1248+
ScriptPath = Base.rte/Effects/Pyro/Flame/Flame.lua
12471249
SpriteFile = ContentFile
12481250
FilePath = Base.rte/Effects/Pyro/Flame/Flame.bmp
1249-
FrameCount = 84
1251+
FrameCount = 86
12501252
SpriteAnimMode = 7
12511253
SpriteOffset = Vector
12521254
X = -10
@@ -1259,39 +1261,94 @@ AddEffect = PEmitter
12591261
FilePath = Base.rte/Effects/Glows/FireGlow1.bmp
12601262
EffectAlwaysShows = 0
12611263
EffectStartTime = 0
1262-
EffectStopTime = 8000
1263-
EffectStartStrength = 0.5
1264-
EffectStopStrength = 0.1
1264+
EffectStopTime = 5000
1265+
EffectStartStrength = 0.4
1266+
EffectStopStrength = 0.0
12651267
AddEmission = Emission
12661268
EmittedParticle = MOPixel
12671269
CopyOf = Ground Fire Burn Particle
1270+
ParticlesPerMinute = 900
1271+
LifeVariation = 0.25
1272+
StopTimeMS = 3500
1273+
Spread = 1.5
1274+
MaxVelocity = 18
1275+
MinVelocity = -9
1276+
PushesEmitter = 0
1277+
InheritsVel = 1
1278+
AddEmission = Emission
1279+
EmittedParticle = MOSParticle
1280+
CopyOf = Flame Smoke 2
12681281
ParticlesPerMinute = 1200
1282+
LifeVariation = 0.75
1283+
StopTimeMS = 3500
1284+
Spread = 1.5
1285+
MaxVelocity = 1
1286+
MinVelocity = -0.5
1287+
PushesEmitter = 0
1288+
InheritsVel = 1
1289+
AddEmission = Emission
1290+
EmittedParticle = MOPixel
1291+
CopyOf = Ground Fire Burn Particle
1292+
ParticlesPerMinute = 500
12691293
LifeVariation = 0.25
1294+
StartTimeMS = 3500
12701295
Spread = 1.5
1271-
MaxVelocity = 20
1272-
MinVelocity = -10
1296+
MaxVelocity = 14
1297+
MinVelocity = -7
12731298
PushesEmitter = 0
1299+
InheritsVel = 1
12741300
AddEmission = Emission
12751301
EmittedParticle = MOSParticle
12761302
CopyOf = Flame Smoke 2
1277-
ParticlesPerMinute = 1600
1278-
LifeVariation = 0.50
1303+
ParticlesPerMinute = 720
1304+
LifeVariation = 0.75
1305+
StartTimeMS = 3500
12791306
Spread = 1.5
1280-
MaxVelocity = 8
1281-
MinVelocity = -4
1307+
MaxVelocity = 0.5
1308+
MinVelocity = 0
12821309
PushesEmitter = 0
1310+
InheritsVel = 1
12831311
EmissionAngle = Matrix
12841312
AngleDegrees = 90
1313+
EmissionOffset = Vector
1314+
X = 0
1315+
Y = -1
12851316
EmissionEnabled = 1
12861317
EmissionsIgnoreThis = 0
12871318
BurstSize = 5
12881319
BurstScale = 2
1289-
BurstTriggered = 0
1320+
BurstTriggered = 1
1321+
1322+
1323+
AddEffect = PEmitter
1324+
CopyOf = Flame 1 Hurt
1325+
PresetName = Flame Hurt Short
1326+
GlobalAccScalar = 0.5
1327+
LifeTime = 4500
1328+
EffectStartTime = 10
12901329

12911330

12921331
AddEffect = PEmitter
1293-
CopyOf = Flame 1 Hurt Emitter
1294-
PresetName = Flame 2 Hurt Emitter
1332+
CopyOf = Flame 1 Hurt
1333+
PresetName = Flame 2 Hurt
1334+
ScreenEffect = ContentFile
1335+
FilePath = Base.rte/Effects/Glows/FireGlow1.bmp
1336+
EffectStopTime = 3000
1337+
EffectStartStrength = 0.6
1338+
EffectStopStrength = 0.0
1339+
1340+
1341+
AddEffect = PEmitter
1342+
CopyOf = Flame Hurt Short
1343+
PresetName = Flame Hurt Short Float
1344+
GlobalAccScalar = -0.1
1345+
1346+
1347+
AddEffect = PEmitter
1348+
CopyOf = Flame 1 Hurt
1349+
PresetName = Ground Flame
1350+
LifeTime = 7500
1351+
EffectStopStrength = 0
12951352

12961353

12971354
///////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)