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

Commit 21162ee

Browse files
committed
Review changes
1 parent 91eeb50 commit 21162ee

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
254254

255255
- Added `Entity` Lua function `entity:RemoveFromGroup(groupToRemoveFrom)` which removes the given group from the `Entity`. The reverse of `AddToGroup`.
256256

257-
- New `AHuman` Lua functions `GetWalkAngle(layer)` and `SetWalkAngle(layer, angle)`, which can be used to read and override walk path rotation of both Legs/Layers respectively. The walk path rotation is automatically updated on each step to match the curvature of the terrain.
257+
- New `AHuman` Lua functions `GetWalkAngle(layer)` and `SetWalkAngle(layer, angle)`, which can be used to read and override walk path rotation of both Legs/Layers respectively. Note that the walk path rotation is automatically updated on each step to match the curvature of the terrain, so this value resets every update.
258258

259259
</details>
260260

Entities/ACrab.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,12 @@ int ACrab::ReadProperty(const std::string_view &propName, Reader &reader)
256256
SetTurret(dynamic_cast<Turret *>(g_PresetMan.ReadReflectedPreset(reader)));
257257
} else if (propName == "Jetpack") {
258258
SetJetpack(dynamic_cast<AEmitter *>(g_PresetMan.ReadReflectedPreset(reader)));
259-
} else if (propName == "JumpTime") {
259+
} else if (propName == "JumpTime" || propName == "JetTime") {
260260
reader >> m_JetTimeTotal;
261261
m_JetTimeTotal *= 1000;
262-
} else if (propName == "JumpReplenishRate") {
262+
} else if (propName == "JumpReplenishRate" || propName == "JetReplenishRate") {
263263
reader >> m_JetReplenishRate;
264-
} else if (propName == "JumpAngleRange") {
264+
} else if (propName == "JumpAngleRange" || propName == "JetAngleRange") {
265265
reader >> m_JetAngleRange;
266266
} else if (propName == "LFGLeg" || propName == "LeftFGLeg") {
267267
SetLeftFGLeg(dynamic_cast<Leg *>(g_PresetMan.ReadReflectedPreset(reader)));

Entities/ACrab.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ int FirearmActivationDelay() const;
597597
float m_JetTimeTotal;
598598
// How much time left the jetpack can go, in ms
599599
float m_JetTimeLeft;
600-
float m_JetReplenishRate; //!< How fast the jetpack fuel will replenish when not in use, in relation to the legacy value.
600+
float m_JetReplenishRate; //!< A multiplier affecting how fast the jetpack fuel will replenish when not in use. 1 means that jet time replenishes at 2x speed in relation to depletion.
601601
// Ratio at which the jetpack angle follows aim angle
602602
float m_JetAngleRange;
603603
// Blink timer

Entities/AHuman.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ int AHuman::ReadProperty(const std::string_view &propName, Reader &reader) {
241241
reader >> m_LookToAimRatio;
242242
} else if (propName == "Jetpack") {
243243
SetJetpack(dynamic_cast<AEmitter *>(g_PresetMan.ReadReflectedPreset(reader)));
244-
} else if (propName == "JumpTime") {
244+
} else if (propName == "JumpTime" || propName == "JetTime") {
245245
reader >> m_JetTimeTotal;
246246
// Convert to ms
247247
m_JetTimeTotal *= 1000;
248-
} else if (propName == "JumpReplenishRate") {
248+
} else if (propName == "JumpReplenishRate" || propName == "JetReplenishRate") {
249249
reader >> m_JetReplenishRate;
250-
} else if (propName == "JumpAngleRange") {
250+
} else if (propName == "JumpAngleRange" || propName == "JetAngleRange") {
251251
reader >> m_JetAngleRange;
252252
} else if (propName == "FGArmFlailScalar") {
253253
reader >> m_FGArmFlailScalar;

Entities/AHuman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ ClassInfoGetters;
994994
float m_JetTimeTotal;
995995
// How much time left the jetpack can go, in ms
996996
float m_JetTimeLeft;
997-
float m_JetReplenishRate; //!< How fast the jetpack fuel will replenish when not in use, in relation to the legacy value.
997+
float m_JetReplenishRate; //!< A multiplier affecting how fast the jetpack fuel will replenish when not in use. 1 means that jet time replenishes at 2x speed in relation to depletion.
998998
// Ratio at which the jetpack angle follows aim angle
999999
float m_JetAngleRange;
10001000
// Blink timer

0 commit comments

Comments
 (0)