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.
[03:41 am]
*Symmetry dances*
[02:47 pm]
l)ark_ssj9kevin -- /f m sup who wanna meme
[02:46 pm]
l)ark_ssj9kevin -- /f l
[2026-11-03. : 4:56 am]
RIVE -- it is a good day to die
[2026-11-03. : 3:49 am]
Symmetry -- radio free zerg
[2026-11-02. : 7:34 pm]
lil-Inferno -- whats mine is mine
[2026-11-02. : 5:07 am]
l)ark_ssj9kevin -- oops meant to get free minerals
[2026-11-02. : 5:06 am]
l)ark_ssj9kevin -- show me the money
[2026-11-02. : 1:46 am]
Moose -- I just wanted to say hi to Nekron
[2026-11-02. : 1:46 am]
Moose -- Nekron
Please log in to shout.


Members Online: Zycorax, l)ark_ssj9kevin