Immense
-
Posts
8 -
Joined
-
Last visited
Posts posted by Immense
-
-
Currently running: TrinityCore rev. 9685c9346dfe+ 2019-05-26 10:56:12 +0200 (master branch) (Win64, RelWithDebInfo, Static)
I'm basically just trying to change the size of one player race (Example: Gnomes) to something higher than their value is normally set to. I created a creature_display_info and hotfix_data entry in the hotfix database regarding the gnome's ID, however the only thing that changes visually regarding scale is the camera position, which is positioned where it should be for the scaled model. The issue is that the actual model isn't scaled, it remains at its normal size for some reason. Google searching shows changing a player race's size was possible before the switch to the hotfix database over merely using DB2 and MPQ files, so am I missing something internally to make the scaling work properly?
How to go about changing player character's normal size
in Help and Support
Posted · Edited by Immense
I decided to just bypass the hotfix database entirely due to the lack of information on the wiki (As well as on the internet) and just manually do it via editing the source code. You'll need to edit Player.cpp, Player.h, World.cpp and World.h for this to work:
Player.cpp will involve inserting the following function above the Player::WorldSession statement:
Also in Player.cpp, you'll then need to comment out the three "SetObjectScale(1.0f);" declarations using comments (which would be done by putting two // in front of the declaration) and place in below them the function "SetupRaceSize();" without quotes.
So in other words:
=============================
For Player.h , it's just one line to add:
=============================
For World.cpp, place the following lines in the World::LoadConfigSettings function:
=============================
For World.h, add these lines in the "enum WorldFloatConfigs" section:
Then, in your worldserver config, place this text block somewhere inside:
From this point, all you have to do is change the values in the worldserver config, then restart your server to see the modified size changes. This isn't the best solution to go about doing this, but it's the one way I managed to do so due to the lack of information regarding how to do this properly via the hotfix database.