IgnitionTime / RetractionTime

// IgnitionTime = IGNITION_TIME_ARG - uses "Auto" feature with WavLen when = 0
template<int DEFAULT_VALUE = 300>
using IgnitionTime = Scale<IsLessThan<IntArg<IGNITION_TIME_ARG,DEFAULT_VALUE>,Int<1>>,IntArg<IGNITION_TIME_ARG,DEFAULT_VALUE>,WavLen<EFFECT_IGNITION>>;

// RetractionTime = RETRACTION_TIME_ARG - uses "Auto" feature with WavLen when = 0
template<int DEFAULT_VALUE = 0>
using RetractionTime = Scale<IsLessThan<IntArg<RETRACTION_TIME_ARG,DEFAULT_VALUE>,Int<1>>,IntArg<RETRACTION_TIME_ARG,DEFAULT_VALUE>,WavLen<EFFECT_RETRACTION>>;

Could you explain “auto” here? Does that mean it times the postoff animation automatically by waiting until the retraction sound is done, instead of triggering immediately (because it’s called at EFFECT_RETRACTION)?

I see these aliases used in place of functions, just not following the scale<IsLessThan< Arg stuff etc… at a glance.

This isn’t related to EFFECT_POSTOFF, these are specific to EFFECT_IGNITION and EFFECT_RETRACTION respectively. For EFFECT_POSTOFF you would need:

 WavLen<EFFECT_POSTOFF>
1 Like