No Buttstomp Bumpers

Version:

1.0

Added on:

13 Jun 2018 23:01

Tags:

Description:
Removes the ability to buttstomp through pinball bumpers.
  1. void onLevelLoad() {
  2.   jjObjectPresets[OBJECT::FIVEHUNDREDBUMP].behavior = jjObjectPresets[OBJECT::CARROTBUMP].behavior = NoButtstompBumper;
  3. }
  4.  
  5. void NoButtstompBumper(jjOBJ@ obj) {
  6.   if (obj.state == STATE::ACTION) {
  7.     jjPLAYER@ hitPlayer = jjPlayers[obj.var[0]];
  8.     hitPlayer.buttstomp = 121;
  9.     hitPlayer.specialMove = 0;
  10.   }
  11.   obj.behave(BEHAVIOR::BUMP);
  12. }