Staredit Network > Forums > Modding Assistance > Topic: [solved] morphing zerg into another unit
[solved] morphing zerg into another unit
Aug 24 2019, 8:21 am
By: Lagi  

Aug 24 2019, 8:21 am Lagi Post #1



using the framework

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();*/


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.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
Please log in to shout.


Members Online: Oh_Man, Roy, jun3hong