# Blaster AUTOFIRE no DoEndLockup?

**URL:** <https://crucible.hubbe.net/t/blaster-autofire-no-doendlockup/575>\
**Category:** ProffieOS\
**Created:** [July 5, 2021, 6:35pm UTC](https://crucible.hubbe.net/t/blaster-autofire-no-doendlockup/575 "2021-07-05T18:35:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [July 5, 2021, 6:35pm UTC](https://crucible.hubbe.net/t/blaster-autofire-no-doendlockup/575/1 "2021-07-05T18:35:04Z")

</div>

So I can’t figure out why it seems blaster AUTOFIRE is not respecting a EFFECT\_LOCKUP\_END animation when used as the Trigger Event.

The case in the prop is for Fire button released to DoEndLockup()  
All looks like it should be fine here.  
Serial Monitor calls the Fire button “Up” and I get this on release:

```auto
14:28:05.460 -> EVENT: Up-HeldLong#1 ON millis=582749
14:28:05.460 -> EVENT: Up-HeldLong ON millis=582749
14:28:05.809 -> EVENT: Up-Released#1 ON millis=583075
14:28:05.809 -> EVENT: Up-Released ON millis=583076
14:28:05.809 -> unit = 4 vol = 0.50, Playing testfont2a/endauto1.wav

```

Audio is fine, just no blade animation from this layer:

```auto
LockupTrL<Layers<
    TransitionLoopL<TrConcat<TrWipe<50>,Red,TrWipe<150>>>,
    TransitionLoopL<TrConcat<TrInstant,AlphaL<White,Bump<Int<0>,Int<25000>>>,TrFade<200>>>>,TrConcat<TrInstant,Rgb<255,100,100>,TrFade<200>>,TrConcat<TrFade<200>,AlphaL<Red,SmoothStep<Scale<Trigger<EFFECT_LOCKUP_END,Int<1>,Int<1>,Int<1500>>,Int<60000>,Int<0>>,Int<30000>>>,TrDelay<2000>>,SaberBase::LOCKUP_AUTOFIRE>>>(),

```

It works fine in Style Editor when converted to SaberBase:LOCKUP\_NORMAL.

StylePtr\<LockupTrL\<Layers\<  
TransitionLoopL\<TrConcat\<TrWipe\<50\>,Red,TrWipe\<150\>\>\>,  
TransitionLoopL\<TrConcat\<TrInstant,AlphaL\<White,Bump\<Int\<0\>,Int\<25000\>\>\>,TrFade\<200\>\>\>\>,TrConcat\<TrInstant,Rgb\<255,100,100\>,TrFade\<200\>\>,TrConcat\<TrFade\<200\>,AlphaL\<Red,SmoothStep\<Scale\<Trigger\<EFFECT\_LOCKUP\_END,Int\<1\>,Int\<1\>,Int\<1500\>\>,Int\<60000\>,Int\<0\>\>,Int\<30000\>\>\>,TrDelay\<2000\>\>,SaberBase::LOCKUP\_NORMAL\>\>()

Not sure why that’s not linking to the editor…

I also thought that maybe checking if we’re in Lockup state is redundant in auto mode, since that’s the only possibility, no?  
But even without that clause, same non-animation:

```auto
      case EVENTID(BUTTON_FIRE, EVENT_RELEASED, MODE_ON):
        if (blaster_mode == MODE_AUTO) {
          //if (SaberBase::Lockup()) {
            SaberBase::DoEndLockup();
            SaberBase::SetLockup(SaberBase::LOCKUP_NONE);
            auto_firing_ = false;
          //}
        }
        return true;

```

---

<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:** [July 5, 2021, 9:44pm UTC](https://crucible.hubbe.net/t/blaster-autofire-no-doendlockup/575/2 "2021-07-05T21:44:05Z")

</div>

EFFECT\_LOCKUP\_END is only for regular lockup.  
There is no EFFECT\_\* \_{BEGIN,END} for newer lockup modes.  
Ideally LockupTrL should be all we need.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [July 6, 2021, 4:37am UTC](https://crucible.hubbe.net/t/blaster-autofire-no-doendlockup/575/3 "2021-07-06T04:37:18Z")

</div>

I was looking to make the barrel cooling down from one end to the other, and a wide edge SmoothStep was what I wanted, just needed it to move via Trigger on LOCKUP\_END.  
I worked around using Trigger with a TrJoined fat wave and a wipe of a fading tip bump to simulate the SmoothStep .  
Just didn’t want a hard edge wipe.
