mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
[10109] Add and use actual bounding_radius/combat_reach per model for characters.
Data are stored in same table as for creature (like dbc models data), and provides the default values for playable races. Currently the bounding and reach are applied only at creation and load. Note that these values are modified by scale. For player case, scale is always 1.0 as default. For later, auras and spell effects that change scale and/or modelid must in addition make sure bounding_radius are updated accordingly to the new scale and/or model (combat_reach does not seem to be affected by such changes, and is always 1.5 for players). Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
698fe93eb7
commit
bb3b0bd598
6 changed files with 75 additions and 13 deletions
22
sql/updates/10109_01_mangos_creature_model_info.sql
Normal file
22
sql/updates/10109_01_mangos_creature_model_info.sql
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_10107_01_mangos_mangos_string required_10109_01_mangos_creature_model_info bit;
|
||||
|
||||
DELETE FROM creature_model_info WHERE modelid IN (49,50,51,52,53,54,55,56,59,60,1478,1479,1563,1564,15475,15476,16125,16126);
|
||||
INSERT INTO creature_model_info (modelid, bounding_radius, combat_reach, gender, modelid_other_gender) VALUES
|
||||
(49, 0.3060, 1.5, 0, 50),
|
||||
(50, 0.2080, 1.5, 1, 49),
|
||||
(51, 0.3720, 1.5, 0, 52),
|
||||
(52, 0.2360, 1.5, 1, 51),
|
||||
(53, 0.3470, 1.5, 0, 54),
|
||||
(54, 0.3470, 1.5, 1, 53),
|
||||
(55, 0.3890, 1.5, 0, 56),
|
||||
(56, 0.3060, 1.5, 1, 55),
|
||||
(59, 0.9747, 1.5, 0, 60),
|
||||
(60, 0.8725, 1.5, 1, 59),
|
||||
(1478, 0.3060, 1.5, 0, 1479),
|
||||
(1479, 0.3060, 1.5, 1, 1478),
|
||||
(1563, 0.3519, 1.5, 0, 1564),
|
||||
(1564, 0.3519, 1.5, 1, 1563),
|
||||
(15475, 0.3830, 1.5, 1, 15476),
|
||||
(15476, 0.3830, 1.5, 0, 15475),
|
||||
(16125, 1.0000, 1.5, 0, 16126),
|
||||
(16126, 1.0000, 1.5, 1, 16125);
|
||||
Loading…
Add table
Add a link
Reference in a new issue