public void MaybeJumpOrFall(Actor ne, CcNet net) { if (grounded) { yMove = 0f; if (CcInput.Started(UserAction.MoveUp) || JumpBoosted) { yMove = JumpBoosted ? 7f : 4f; if /****/ (JumpBoosted) { ne.PlaySound("spacey"); } else { ne.PlaySound("Jump"); } net.SendTINYUserUpdate(ne.User.viewID, UserAction.MoveUp); // FIXME: this makes remote players play normal jump sound even when bouncepadding } } else // we're in the air { yMove -= Time.deltaTime * net.CurrMatch.Gravity; } }
void weaponSwitchingSoundAndVisual() { gunRecoil += Vector3.right * 3f; gunRecoil -= Vector3.up * 4f; PlaySound("guncocked"); net.SendTINYUserUpdate(User.viewID, UserAction.Next); }