HOW TO ADD A GANG LEADER TO YOUR LEVEL (NO CUTSCENE CRASH)
QUICK ANSWER FOR ONES WHO KNOW
Creating Waypoints and Gang Boss
Create a level trough in-game editor (BetterHLMEditor is too unstable, use it only for EDITING existing levels). Then go and create your level, add enemies, props, and stuff.
After that, place another prop that was not used in your level in position where you want gang leader to spawn.
Should look like this:At this moment i hoping that you understand the basics of notepad++ editing, if you dont, then proceed here:
https://steamcommunity.com/sharedfiles/filedetails/?id=676175384
You can find all sprites' ids here:
https://vlad-tarabukin.github.io/hlm-developer-encyclopedia/
Replace id of every object that is going to be waypoint to "1881" and sprite to "-1" to make it invisible.
The object that is going to be the gang boss is "1880" and the sprite is "3278".
If you have done everything right. It should be something like this:(Showing this in BetterHlmEditor because the waypoint cannot be seen in the in-game editor).
Half of the work is done, now let's make it not crash.
Fixing crashes
If you're going to leave everything as it is, then the game will crash. So let's make it not.
Open the level through the in-game editor. Create a cutscene on the floor with the gang boss; place the trigger where the player is going to be. The first frame should contain a wait action, you can set any time for now. After that, create a new frame with 2-line dialogue action (not the 2-line top/bottom text, but the two dialogue screens with text). The text can be anything you like, while it fits in 2-line dialogue. And finish this with stop-scene action in a new frame.
The sequence should look like this:Wait; 2-line dialogue; stop sequence.
To be able to finish the level, create a new floor and place a cutscene with a stop sequence (scene complete) action.
Go back to the gang boss floor cutscene and find your number in
Wait NUMBER frames
Remember it.
Go to the level folder and open file levelFLOORNUMBER.csf
Find there your number and replace it with 130 on both occasions.
Conclusion
Link to the level, if you want to test it:
https://drive.google.com/file/d/1o1CPFqG9odQZXWmSvKfxt2AMo_y2w2U1/view?usp=sharing
This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.