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.
[12:32 am]
Moose -- tbh
[2025-3-24. : 8:37 pm]
Ultraviolet -- :wob:
[2025-3-23. : 8:32 pm]
RIVE -- Oh Yeah
[2025-3-23. : 1:20 am]
lil-Inferno -- ya
[2025-3-22. : 2:43 pm]
Moose -- o
[2025-3-19. : 10:35 pm]
Ultraviolet -- OH YEAH!!!
[2025-3-19. : 9:33 pm]
NudeRaider -- oh yeah
[2025-3-19. : 4:11 pm]
dumbducky -- Oh yeah
[2025-3-19. : 4:11 pm]
dumbducky -- Hmm
[2025-3-19. : 4:10 pm]
dumbducky -- Hmm
Please log in to shout.


Members Online: NudeRaider, Ultraviolet