PDA

Просмотр полной версии : [10289] Adjust creature models system


newsbot
30.07.2010, 18:50
<pre>m sql/mangos.sql
+ sql/updates/10289_01_mangos_creature_template.sql
+ sql/updates/10289_02_mangos_creature_model_info.sql
m sql/updates/Makefile.am
m src/game/Creature.cpp
m src/game/Creature.h
m src/game/GameEventMgr.cpp
m src/game/ObjectMgr.cpp
m src/game/ObjectMgr.h
m src/game/QueryHandler.cpp
m src/game/SpellAuras.cpp
m src/game/Totem.cpp
m src/shared/Database/SQLStorage.cpp
m src/shared/revision_nr.h
m src/shared/revision_sql.h

[10289] Adjust creature models system

This change will:
* make it easier to use cached data directly without any modifications
* correct issues regarding invisible models
* simplify certain aspects of model selection itself and make it somehow easier
to control and maintain special cases.

Two new fields added to creature_model_info, to store modelid_alternative and
modelid_other_team
* _alternative holds an alt. model, for cases where gender are the same, or is
not male/female.
* _other_team is generally used for totem models, but may have future use.

This commit will possibly break a few things (visually) and will require DB
projects to update their creature_template models data.
It is advised to use cache data as-is, and in addition fill creature_model_info
for certain models, totems in particular, for expected appearance.

Signed-off-by: NoFantasy <nofantasy@nf.no></pre>



Дальше... (http://github.com/mangos/mangos/commit/6ad98e2806f1044317ccf0cfcf751191f1a433b9)