public void InitFrom(Actor inShooter) { SetColor(inShooter.GetColor()); SetPlayerId((int)inShooter.GetPlayerId()); mParentNetworkId = inShooter.GetNetworkId(); SetLocation(inShooter.GetLocation().Round()); mDirection = inShooter.GetRotation(); }
public void InitFromShooter(Actor inShooter) { SetColor(inShooter.GetColor()); SetPlayerId((int)inShooter.GetPlayerId()); Vector3 forward = inShooter.GetForwardVector(); SetVelocity(inShooter.GetVelocity() + forward * mMuzzleSpeed); SetLocation(inShooter.GetLocation()); mDirection = inShooter.GetRotation(); }