# How to change the default blaster mode?

**URL:** <https://crucible.hubbe.net/t/how-to-change-the-default-blaster-mode/3515>\
**Category:** Props\
**Created:** [June 7, 2023, 1:42am UTC](https://crucible.hubbe.net/t/how-to-change-the-default-blaster-mode/3515 "2023-06-07T01:42:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SilentE](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@SilentE](https://crucible.hubbe.net/u/SilentE)\
**Post date:** [June 7, 2023, 1:42am UTC](https://crucible.hubbe.net/t/how-to-change-the-default-blaster-mode/3515/1 "2023-06-07T01:42:16Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [June 7, 2023, 1:49am UTC](https://crucible.hubbe.net/t/how-to-change-the-default-blaster-mode/3515/2 "2023-06-07T01:49:18Z")

</div>

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

first, change this line:

> <https://github.com/profezzorn/ProffieOS/blob/08fec0fbc632181aad1f9629ca1ffe9a628e9611/props/blaster.h#L69>

replace `MODE_STUN` with `MODE_AUTO`.

second, change this function:

> <https://github.com/profezzorn/ProffieOS/blob/08fec0fbc632181aad1f9629ca1ffe9a628e9611/props/blaster.h#L78>

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

---

<div class="post-metadata">

**Author:** ![SilentE](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@SilentE](https://crucible.hubbe.net/u/SilentE)\
**Post date:** [June 7, 2023, 1:53am UTC](https://crucible.hubbe.net/t/how-to-change-the-default-blaster-mode/3515/3 "2023-06-07T01:53:27Z")

</div>

Awesome, thanks!

---

<div class="post-metadata">

**Author:** ![SilentE](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@SilentE](https://crucible.hubbe.net/u/SilentE)\
**Post date:** [June 7, 2023, 2:03am UTC](https://crucible.hubbe.net/t/how-to-change-the-default-blaster-mode/3515/4 "2023-06-07T02:03:20Z")

</div>

Does this look right?

```auto
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;
    }
  }

```

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [June 7, 2023, 2:48am UTC](https://crucible.hubbe.net/t/how-to-change-the-default-blaster-mode/3515/5 "2023-06-07T02:48:05Z")

</div>

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