Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,10 @@ class GenericObjectCreationNugget : public ObjectCreationNugget
DEBUG_LOG(("Object %s inherits veterancy level %d from %s",
obj->getTemplate()->getName().str(), sourceObj->getVeterancyLevel(), sourceObj->getTemplate()->getName().str()));
VeterancyLevel v = sourceObj->getVeterancyLevel();
obj->getExperienceTracker()->setVeterancyLevel(v);

// TheSuperHackers @bugfix Caball009 22/04/2026 Disable audiovisual cues for a veterancy level change because this object was just created.
// Otherwise the cues would be at an incorrect position, because the object's matrix is not set yet.
obj->getExperienceTracker()->setVeterancyLevel(v, FALSE);

//In order to make things easier for the designers, we are going to transfer the unit name
//to the ejected thing... so the designer can control the pilot with the scripts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,10 @@ class GenericObjectCreationNugget : public ObjectCreationNugget
DEBUG_LOG(("Object %s inherits veterancy level %d from %s",
obj->getTemplate()->getName().str(), sourceObj->getVeterancyLevel(), sourceObj->getTemplate()->getName().str()));
VeterancyLevel v = sourceObj->getVeterancyLevel();
obj->getExperienceTracker()->setVeterancyLevel(v);

// TheSuperHackers @bugfix Caball009 22/04/2026 Disable audiovisual cues for a veterancy level change because this object was just created.
// Otherwise the cues would be at an incorrect position, because the object's matrix is not set yet.
obj->getExperienceTracker()->setVeterancyLevel(v, FALSE);

//In order to make things easier for the designers, we are going to transfer the unit name
//to the ejected thing... so the designer can control the pilot with the scripts.
Expand Down
Loading