Fix angles not being set correctly from the base

This commit is contained in:
smallmodel 2024-11-02 20:11:29 +01:00
parent ae16994289
commit e4b2c863d8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -1463,7 +1463,7 @@ void ClientGameCommandManager::SpawnTempModel(int mcount)
p->cgd.avelocity[i] = m_spawnthing->avelocity_amplitude[i] * random() + m_spawnthing->avelocity_base[i];
// Randomize angles or set absolute
p->cgd.angles[i] += random() * m_spawnthing->angles_amplitude[i];
p->cgd.angles[i] = m_spawnthing->angles_amplitude[i] * random() + m_spawnthing->cgd.angles[i];
}
// If forward velocity is set, just use that otherwise use random