Super ice

Version:

1.0

Added on:

04 Mar 2015 00: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.
  1. void onLevelLoad() {
  2.   jjObjectPresets[OBJECT::ICEBULLET].behavior = jjObjectPresets[OBJECT::ICEBULLETPU].behavior = IceUntilDeath;
  3. }
  4. void IceUntilDeath(jjOBJ@ obj) {
  5.   if (obj.state == STATE::EXPLODE) {
  6.     obj.eventID += 2; //for halo effect
  7.     obj.behavior = BEHAVIOR::RFBULLET;
  8.   }
  9.   else obj.behave(BEHAVIOR::BULLET);
  10. }
  11. void onPlayerInput(jjPLAYER@ play) {
  12.   if (play.frozen > 0)
  13.     play.keyFire = false;
  14. }