Support for Scrap Helicopter (New guy)
Support for scrap helicopterSuggestion
Yes please
yes please
Covfefe
Yes please
I was able to add the support myself, if you need help/i'll just give you my updated version message me on discord Hertz#0001
Your username is not showing up
geurillanetwork
I was able to add the support myself, if you need help/i'll just give you my updated version message me on discord Hertz#0001
Didn't work for me. Still had to add fuel to the scrap heli
Covfefe
Didn't work for me. Still had to add fuel to the scrap heli
What didn't work for you? I didn't even send you anything?
geurillanetwork
I was able to add the support myself, if you need help/i'll just give you my updated version message me on discord Hertz#0001
I have weird issues with discord, is there another way to reach ya for this?
CurbenI have weird issues with discord, is there another way to reach ya for this?
Try Hertz#1234 sorry for the late reply.
i have actual issues running discord
This is what I did to get this working ages ago. Hope this helps someone. Mods please delete if not allowed.
Line 16
#region Variables
private const string permission_boat = "novehiclefuel.boat";
private const string permission_copter = "novehiclefuel.copter";
private const string permission_transport = "novehiclefuel.transport"; //<---Add This
private const string permission_rhib = "novehiclefuel.rhib";
public static NoVehicleFuel Ins;
Line 26
{
{"assets/content/vehicles/boats/rowboat/rowboat.prefab", permission_boat},
{"assets/content/vehicles/minicopter/minicopter.entity.prefab", permission_copter},
{"assets/content/vehicles/scrap heli carrier/scraptransporthelicopter.prefab", permission_transport}, //<---Add This
{"assets/content/vehicles/boats/rhib/rhib.prefab", permission_rhib}
};
Line 42
void Awake()
{
Vehicle = GetComponent<BaseEntity>();
if (Vehicle == null) End();
var Boat = Vehicle as MotorRowboat;
var Copter = Vehicle as MiniCopter;
var Transport = Vehicle as ScrapTransportHelicopter; //Add This
var RHIB = Vehicle as RHIB;
Line 52
else if (Copter)
{
FuelTank = Copter.fuelStorageInstance.Get(true).GetComponent<StorageContainer>();
}
else if (Transport) //<---Add This
{ //<---Add This
FuelTank = Copter.fuelStorageInstance.Get(true).GetComponent<StorageContainer>(); //<---Add This
} //<---Add This
else if (RHIB)
{
FuelTank = Copter.fuelStorageInstance.Get(true).GetComponent<StorageContainer>();
}
Line 102
private void Init()
{
LoadConfig();
permission.RegisterPermission(permission_boat, this);
permission.RegisterPermission(permission_copter, this);
permission.RegisterPermission(permission_transport, this); //<---Add This
permission.RegisterPermission(permission_rhib, this);
Ins = this;
} Trillz
This is what I did to get this working ages ago. Hope this helps someone. Mods please delete if not allowed.
Line 16 #region Variables private const string permission_boat = "novehiclefuel.boat"; private const string permission_copter = "novehiclefuel.copter"; private const string permission_transport = "novehiclefuel.transport"; //<---Add This private const string permission_rhib = "novehiclefuel.rhib"; public static NoVehicleFuel Ins; Line 26 { {"assets/content/vehicles/boats/rowboat/rowboat.prefab", permission_boat}, {"assets/content/vehicles/minicopter/minicopter.entity.prefab", permission_copter}, {"assets/content/vehicles/scrap heli carrier/scraptransporthelicopter.prefab", permission_transport}, //<---Add This {"assets/content/vehicles/boats/rhib/rhib.prefab", permission_rhib} }; Line 42 void Awake() { Vehicle = GetComponent<BaseEntity>(); if (Vehicle == null) End(); var Boat = Vehicle as MotorRowboat; var Copter = Vehicle as MiniCopter; var Transport = Vehicle as ScrapTransportHelicopter; //Add This var RHIB = Vehicle as RHIB; Line 52 else if (Copter) { FuelTank = Copter.fuelStorageInstance.Get(true).GetComponent<StorageContainer>(); } else if (Transport) //<---Add This { //<---Add This FuelTank = Copter.fuelStorageInstance.Get(true).GetComponent<StorageContainer>(); //<---Add This } //<---Add This else if (RHIB) { FuelTank = Copter.fuelStorageInstance.Get(true).GetComponent<StorageContainer>(); } Line 102 private void Init() { LoadConfig(); permission.RegisterPermission(permission_boat, this); permission.RegisterPermission(permission_copter, this); permission.RegisterPermission(permission_transport, this); //<---Add This permission.RegisterPermission(permission_rhib, this); Ins = this; }
I take it that is inserted into the config then?
Merged post
Error while compiling: NoVehicleFuel.cs(98,16): error CS1525: Unexpected symbol `void', expecting `class', `delegate', `enum', `interface', `partial', or `struct'
Merged post
{ foreach (var Entity in BaseNetworkable.serverEntities) { var Vehicle = Entity as BaseVehicle; if (Vehicle == null) continue; if (!Vehicle.HasDriver()) continue; var Mount = Vehicle.mountPoints[0].mountable; var Driver = Mount.GetMounted(); if (Driver == null) continue; OnEntityMounted(Mount, Driver); } }
Merged post
{
foreach (var Entity in BaseNetworkable.serverEntities)
{
var Vehicle = Entity as BaseVehicle;
if (Vehicle == null) continue;
if (!Vehicle.HasDriver()) continue;
var Mount = Vehicle.mountPoints[0].mountable;
var Driver = Mount.GetMounted();
if (Driver == null) continue;
OnEntityMounted(Mount, Driver);
}
} anyone have a working copy that supports the scrap heli?
rustybeachcomber
anyone have a working copy that supports the scrap heli?
the one I git from GuerillaNetwork is working fine