PDA

Просмотр полной версии : [11968] Add support for range dependend slave/master


newsbot
20.04.2012, 01:51
Автор: Schmoozerd


<pre>m sql/mangos.sql
+ sql/updates/11968_01_mangos_creature_linking_template.sql
m src/game/CreatureLinkingMgr.cpp
m src/game/CreatureLinkingMgr.h
m src/shared/revision_nr.h
m src/shared/revision_sql.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[11968] Add support for range dependend slave/master

Add new column `search_radius` to `creature_linking_template`.
If this column is used (value > 0), master and slave are linked together if and only if they have their respawn coordinates within this range (point-to-point distance calculation)
Note that linked spawning is slower this way and should only be used if required

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com></pre>


Подробнее... (https://github.com/mangos/mangos/commit/839d83ce229a7a3dd7edc2d701cc99e4b1df6ba9)