6503 {
6504 super.OnParticleEvent(pEventType ,pUserString, pUserInt);
6505
6506 if (!
GetGame().IsDedicatedServer())
6507 {
6508 if (pUserInt == 123456)
6509 {
6511 int boneIdx = player.GetBoneIndexByName("Head");
6512
6513 if (boneIdx != -1)
6514 {
6515 EffectParticle eff;
6516
6518 {
6519 eff = new EffVomitBlood();
6520 }
6521 else
6522 {
6523 eff = new EffVomit();
6524 }
6525
6527 eff.SetAutodestroy(true);
6528 SEffectManager.PlayInWorld(eff, vector.Zero);
6530 player.AddChild(p, boneIdx);
6531 }
6532 }
6533 }
6534 }
Particle GetParticle()
Gets the main particle which this Effect is managing.
void SetDecalOwner(Object o)
proto native CGame GetGame()