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

Commit 115dd12

Browse files
committed
Temporary fix for low mass attachables/emitters being thrown at ridiculous speeds when their parent is gibbed
1 parent c586a60 commit 115dd12

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ They must be added using `... = SoundContainer`, and individual sounds for them
5858

5959
- Fixed crash when clearing an already empty preset list in the buy menu.
6060

61+
- Temporary fix for low mass attachables/emitters being thrown at ridiculous speeds when their parent is gibbed.
62+
6163
### Removed
6264

6365
- Removed all Gorilla Audio and SDL Mixer related code and files.

Entities/MOSRotating.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,8 +1143,9 @@ void MOSRotating::GibThis(Vector impactImpulse, float internalBlast, MovableObje
11431143
// Get handy handle to the object we're putting
11441144
pAttachable = *aItr;
11451145

1146+
// TODO: Rework this whole system
11461147
// Generate the velocities procedurally
1147-
velMin = internalBlast / pAttachable->GetMass();
1148+
velMin = internalBlast / (1 + pAttachable->GetMass());
11481149
velRange = 10.0f;
11491150

11501151
// Rotational angle velocity

0 commit comments

Comments
 (0)