add in initialize.cpp
#include "unhooked/unit_morph.h"
in the same place where is:
#include "hooks/recv_commands/train_cmd_receive.h"
#include "hooks/orders/unit_making/unit_morph.h"
#include "unhooked/unit_morph.h"
#include "hooks/orders/unit_making/unit_train.h"
#include "hooks/utils/utils.h"
uncomment:
/*hooks::injectUnitMorphHooks2();*/
hooks::injectUnitMorphHooks();
/*hooks::injectWireframeHook();*/
hooks::injectUnitMorphHooks();
/*hooks::injectWireframeHook();*/
this guide is still valid:
https://www.moddb.com/tutorials/unit-morph-for-all-units
the unit_morph.cpp that you want (there are 2) is the one in subfolder, in Solution explorer
in Firegraft add in [unit ; Dat requirement] "is not burrowed". Morphing while burrow is buggy and not working (f.ex. click spam will remove the icons)
Post has been edited 2 time(s), last time on Aug 26 2019, 7:31 am by Lagi.
None.