How to change the default blaster mode?

Hi All,
I’ve pretty much got everything figured out except one detail. I’d like the first blaster mode on bootup to be auto instead of stun, and the second one in the series to be single shot (fire). I’ve tried a few different things in blaster.h but nothing seems to work. Can one of you smart chaps enlighten me on how to accomplish this? Thanks!

You’ll need to make some minor modifications to the blaster prop for that.

first, change this line:

replace MODE_STUN with MODE_AUTO.

second, change this function:

Under each case statement, you’ll need to change the SetBlasterMode to go to the next one, in the order that you actually want.

Awesome, thanks!

Does this look right?

virtual void NextBlasterMode() {
    switch(blaster_mode) {
      case MODE_AUTO:
        SetBlasterMode(MODE_AUTO);
        return;
      case MODE_KILL:
#ifdef ENABLE_BLASTER_AUTO
        SetBlasterMode(MODE_KILL);
#else
        SetBlasterMode(MODE_STUN);
#endif
        return;
      case MODE_STUN:
        SetBlasterMode(MODE_AUTO);
        return;
    }
  }

No, becasue MODE_AUTO goes to MODE_AUTO, it should go to one of the other two.