-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information
NoFantasy
committed
Jun 26, 2010
1 parent
e486952
commit 340335e
Showing
6 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef __REVISION_NR_H__ | ||
#define __REVISION_NR_H__ | ||
#define REVISION_NR "10108" | ||
#define REVISION_NR "10109" | ||
#endif // __REVISION_NR_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef __REVISION_SQL_H__ | ||
#define __REVISION_SQL_H__ | ||
#define REVISION_DB_CHARACTERS "required_10051_01_characters_character_aura" | ||
#define REVISION_DB_MANGOS "required_10107_01_mangos_mangos_string" | ||
#define REVISION_DB_MANGOS "required_10109_01_mangos_creature_model_info" | ||
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version" | ||
#endif // __REVISION_SQL_H__ |