If you only intend on toggling particle effects without any logic surrounding them, you can remove Active() and Inactive() procedures entirely and replace this block:
// go into active or inactive state
if (m_bActive) {
jump Active();
} else {
jump Inactive();
}
With this:
// Wait for the game to start
autowait(0.05f);
wait() {
on (EActivate) : {
m_bActive = TRUE;
resume;
}
on (EDeactivate) : {
m_bActive = FALSE;
resume;
}
otherwise() : { resume; }
}