View Single Post
PurpleJazz PurpleJazz's Avatar

JCF Member

Joined: Aug 2006

Posts: 852

PurpleJazz is OFF DA CHARTPurpleJazz is OFF DA CHARTPurpleJazz is OFF DA CHART

Dec 17, 2017, 06:08 AM
PurpleJazz is offline
Reply With Quote
HH17 Enemies v1.1

I've provided a library containing a selection of modified enemies to suit the wintery theme of our pack a bit more. All of these enemies have been recoloured, and some have also been given new abilities/upgrades to old abilities. For example, Monkeys throw snowballs instead of bananas, and Dragons shoot Ice instead of Toaster. In addition, a few bosses have also been recoloured to be more thematically appropriate. Using these enemies in your level is pretty easy; I've included a template script below to get you started.

Code:
#include "HH17Enemies.asc"

void onLevelLoad() {
    HH17::replaceAllEnemies(); //swap all regular enemies with their HH17 counterparts where applicable
}

void onLevelReload() {
    HH17::processEnemyColors(); //ensure that enemy colors are still displaying correctly when the level reloads after death
}

void onMain() {
    HH17::handleEnemyProjectiles(); //this is required to handle the modifications to enemy bullets from the Monkeys and Dragons
}
If you want to pick and choose which enemies to use, you would do so as follows:

Code:
void onLevelLoad() {
    HH17::setEnemy(OBJECT::MONKEY);
}

Last edited by PurpleJazz; Dec 18, 2017 at 02:18 AM.