public override void Attached() { Rigidbody componentInParent = base.GetComponentInParent <Rigidbody>(); if (!base.entity.isOwner) { if (componentInParent) { componentInParent.useGravity = false; componentInParent.isKinematic = true; } FMOD_StudioEventEmitter.CreateStartOnAwakeEmitter(base.transform, "event:/combat/molotov_held"); } base.state.Transform.SetTransforms((!componentInParent) ? base.transform : componentInParent.transform); base.state.AddCallback("Broken", new PropertyCallbackSimple(this.doBreakReal)); }