remove unused code

This commit is contained in:
in0finite 2019-07-08 02:21:31 +02:00
parent eb13b25a3f
commit 4a495cfd71
2 changed files with 2 additions and 47 deletions

View file

@ -137,50 +137,5 @@ namespace SanAndreasUnity.Net
}
public void PedStartedEnteringVehicle(Ped ped)
{
NetStatus.ThrowIfNotOnServer();
if (this.isLocalPlayer)
return;
// send message to client
this.TargetPedStartedEnteringVehicle(this.connectionToClient, ped.gameObject, ped.CurrentVehicle.gameObject,
ped.CurrentVehicleSeatAlignment);
}
[TargetRpc]
void TargetPedStartedEnteringVehicle(NetworkConnection conn, GameObject pedGo,
GameObject vehicleGo, Vehicle.SeatAlignment seatAlignment)
{
if (null == pedGo || null == vehicleGo)
return;
pedGo.GetComponent<Ped>().GetStateOrLogError<VehicleEnteringState>()
.EnterVehicle(vehicleGo.GetComponent<Vehicle>(), seatAlignment, false);
}
public void PedEnteredVehicle(Ped ped)
{
NetStatus.ThrowIfNotOnServer();
if (this.isLocalPlayer)
return;
this.TargetPedEnteredVehicle(this.connectionToClient, ped.gameObject, ped.CurrentVehicle.gameObject,
ped.CurrentVehicleSeatAlignment);
}
[TargetRpc]
void TargetPedEnteredVehicle(NetworkConnection conn, GameObject pedGo,
GameObject vehicleGo, Vehicle.SeatAlignment seatAlignment)
{
if (null == pedGo || null == vehicleGo)
return;
pedGo.GetComponent<Ped>().GetStateOrLogError<VehicleSittingState>()
.EnterVehicle(vehicleGo.GetComponent<Vehicle>(), seatAlignment);
}
}
}

View file

@ -19,10 +19,10 @@
- add option to remove current weapon - for testing
- send aim/fire input to server
- sync fire event
- sync health
- gun flash doesn't work on client ?
- weapon sound should be 3d