# Unit animation improvements.

Animate props much more sensibly.
Move ammo code out of CUnit.
Move animation logic out of CModel.
Launch projectiles from the correct location.
Use entity's speeds and sounds in actor viewer.
Add -nosound option to disable audio, and allow audio by default in
Atlas.
Remove some obsolete options.

This was SVN commit r7609.
This commit is contained in:
Ykkrosh
2010-06-05 00:49:14 +00:00
parent a18aa24fe3
commit d3048906cb
27 changed files with 489 additions and 413 deletions
+2 -2
View File
@@ -124,12 +124,12 @@ CUnit* CUnitManager::PickUnit(const CVector3D& origin, const CVector3D& dir, boo
///////////////////////////////////////////////////////////////////////////////
// CreateUnit: create a new unit and add it to the world
CUnit* CUnitManager::CreateUnit(const CStrW& actorName, CEntity* entity, const std::set<CStr>& selections)
CUnit* CUnitManager::CreateUnit(const CStrW& actorName, const std::set<CStr>& selections)
{
if (! m_ObjectManager)
return NULL;
CUnit* unit = CUnit::Create(actorName, entity, selections, *m_ObjectManager);
CUnit* unit = CUnit::Create(actorName, selections, *m_ObjectManager);
if (unit)
AddUnit(unit);
return unit;