6495 {
6496 super.OnParticleEvent(pEventType ,pUserString, pUserInt);
6497
6498 if (!
GetGame().IsDedicatedServer())
6499 {
6500 if (pUserInt == 123456)
6501 {
6503 int boneIdx = player.GetBoneIndexByName("Head");
6504
6505 if (boneIdx != -1)
6506 {
6507 EffectParticle eff;
6508
6510 {
6511 eff = new EffVomitBlood();
6512 }
6513 else
6514 {
6515 eff = new EffVomit();
6516 }
6517
6519 eff.SetAutodestroy(true);
6520 SEffectManager.PlayInWorld(eff, vector.Zero);
6522 player.AddChild(p, boneIdx);
6523 }
6524 }
6525 }
6526 }
Particle GetParticle()
Gets the main particle which this Effect is managing.
void SetDecalOwner(Object o)
proto native CGame GetGame()