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.
[02:53 pm]
Ultraviolet -- SEN's new anti-bot strategy: crash frequently, make itself an unappealing target
[2025-4-26. : 5:06 am]
l)ark_ssj9kevin -- for me, anyway
[2025-4-26. : 5:06 am]
l)ark_ssj9kevin -- omg SEN's back
[2025-4-26. : 5:06 am]
l)ark_ssj9kevin -- :wob:
[2025-4-26. : 3:20 am]
O)FaRTy1billion[MM] -- :wob:
[2025-4-25. : 5:26 pm]
NudeRaider -- Zoan
Zoan shouted: Year is 2025. Staredit.net is the last bastion for real people on the internet. AI has taken over all other websites
:awesome: that's the best compliment you could've made the mods
[2025-4-25. : 5:17 pm]
Zoan -- Year is 2025. Staredit.net is the last bastion for real people on the internet. AI has taken over all other websites
[2025-4-24. : 6:44 pm]
Ultraviolet -- dumbducky never knew there was such a perfect video to exemplify that sentence
[2025-4-24. : 2:19 pm]
dumbducky -- Go click page 8 of your post history and reread whatever thread you were posting in.
[2025-4-24. : 2:29 am]
Undead-Fox -- This place is always such a strange time machine for me. Remarkable to still see so many names I recognize from 20 years ago every time.
Please log in to shout.


Members Online: Excalibur