Super ice

Version:

1.0

Added on:

03 Mar 2015 23:20

Tags:

Description:
Ice bullets explode violently upon impact causing injury and knockback to players struck by the bullets. Additionally, pressing fire while frozen fails to melt you any faster.
void onLevelLoad() {
  jjObjectPresets[OBJECT::ICEBULLET].behavior = jjObjectPresets[OBJECT::ICEBULLETPU].behavior = IceUntilDeath;
}
void IceUntilDeath(jjOBJ@ obj) {
  if (obj.state == STATE::EXPLODE) {
    obj.eventID += 2; //for halo effect
    obj.behavior = BEHAVIOR::RFBULLET;
  }
  else obj.behave(BEHAVIOR::BULLET);
}
void onPlayerInput(jjPLAYER@ play) {
  if (play.frozen > 0)
    play.keyFire = false;
}