28 lines
650 B
Plaintext
28 lines
650 B
Plaintext
int MakeDivineVisual()
|
|
{ int nVis = 1;
|
|
int nRandom = Random(6) + 1;
|
|
switch (nRandom)
|
|
{
|
|
case 1: nVis = VFX_IMP_GOOD_HELP; break;
|
|
case 2: nVis = VFX_FNF_STRIKE_HOLY; break;
|
|
case 3: nVis = VFX_IMP_LIGHTNING_M; break;
|
|
case 4: nVis = VFX_IMP_FROST_L; break;
|
|
case 5: nVis = VFX_IMP_HOLY_AID; break;
|
|
case 6: nVis = VFX_IMP_HEALING_X; break;
|
|
}
|
|
return nVis;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
|
|
|
|
|
|
int nVis = MakeDivineVisual();
|
|
|
|
float fDelay = IntToFloat(Random(300)) * 0.01;
|
|
|
|
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(nVis), OBJECT_SELF));
|
|
|
|
}
|