public virtual bool HasValidDismountPosition(BasePlayer player) { BaseVehicle baseVehicle = this.VehicleParent(); if (Object.op_Inequality((Object)baseVehicle, (Object)null)) { return(baseVehicle.HasValidDismountPosition(player)); } foreach (Component dismountPosition in this.dismountPositions) { if (this.ValidDismountPosition(dismountPosition.get_transform().get_position())) { return(true); } } return(false); }
public virtual bool HasValidDismountPosition(BasePlayer player) { BaseVehicle baseVehicle = this.VehicleParent(); if (baseVehicle != null) { return(baseVehicle.HasValidDismountPosition(player)); } Transform[] transformArrays = this.dismountPositions; for (int i = 0; i < (int)transformArrays.Length; i++) { if (this.ValidDismountPosition(transformArrays[i].transform.position)) { return(true); } } return(false); }
public virtual bool HasValidDismountPosition(BasePlayer player) { BaseVehicle baseVehicle = VehicleParent(); if (baseVehicle != null) { return(baseVehicle.HasValidDismountPosition(player)); } Vector3 visualCheckOrigin = player.TriggerPoint(); Transform[] array = dismountPositions; foreach (Transform transform in array) { if (ValidDismountPosition(transform.transform.position, visualCheckOrigin)) { return(true); } } return(false); }