The
wheel_of_doom entity (which is what causes the various effects) has an OnEffectApplied output. Unfortunately, it's not documented as to what values are passed to it, but since they affect all players, it can be assumed it's just the condition number.
tf2.inc contains a list of all the conditions, including TFCond_HalloweenThriller which is the one you're looking for.
Edit: I'll have a code sample soon, I just have yet to write it.
Edit 2: Meh, not really working as you can't tell what effect it is... however, you can hook when conditions apply to players...
PHP Code:
#include <tf2>
new bool:g_bDancing = false;
public OnMapStart()
{
g_bDancing = false;
}
public TF2_OnConditionAdded(client, TFCond:condition)
{
if (!g_bDancing && condition == TFCond_HalloweenThriller)
{
g_bDancing = true;
// Put code here to run when dancing starts.
}
}
public TF2_OnConditionRemoved(client, TFCond:condition)
{
if (g_bDancing && condition == TFCond_HalloweenThriller)
{
g_bDancing = false;
// Put code here to run when dancing stops.
}
}
__________________