Jump to content

[PreRelease] Dirty Epoch Vehicle Service - DEVS [WIP]


CH!LL3R

Recommended Posts

Hi,

I worked the last two day on this script, cause I want to have an option to reaload the Offroad with M2 and other Vehicle.

So I take a look to all the Reammo-Scripts out there, pick the best of them out and throw it together the dirty way.... So here is the

 

Dirty Epoch Vehicle Service -- DEVS

 

Will this work with EpochAH?

  • I don't know, I'm using this other Tool wich is not for free..... :ph34r:
  • If someone tested this with EpochAH and it works or not, please let a notice in this Thread for other users, thanks

 

 

Do I need to configure BattlEye?

  • I'm sure you need to configure BattlEye, but I didn't use BattlEye-Filters. So you need to workaround by yourself if BE gives out Kicks and sh...
  • If you don't know, how to configurate BE-Filter, please read this :
  • If this not work for you, you have to wait if someone give instructions in this Thread, I will not do that, 'cause there really enough information about BE in the www
  •  

     

    Two new filters are needed now with the updated script (works perfect now by the way).

     

    "BIS_fnc_dynamictext" = !"then {   ['Welcome to Heli Service',0,0.6,2,1] spawn bis_fnc_dynamictext;" !"sleep 10;" !"['Touch down your Heli while servicing yo"

     

    AND

     

    setDamage = !"] spawn bis_fnc_dynamictext;" !"sleep 3;" !"_veh setDamage 0;" !"sleep 7;" !"['Heli repaired.',0,0.6,2,1] spawn bis_fnc_dy"

     

    Here is what I did to get this working with the "other" antihack tho it still has some issues with GMG weapons and repairing helis that I have found (didn't repair the missing main rotor on my black and white Orca).

    BattlEye Filters

    BIS_fnc_dynamictext = !"rue;" !"['Welcome to Vehicle Service',0,0.6,2,1] spawn bis_fnc_dynamictext;" !"sleep 5;" !"_delay = ((_this select 3) select 0);_"

    setAmmo = !"mount) then {sleep (_delay*(1 - (getAmmoCargo _veh))); _veh setAmmoCargo _amount;};sleep 0.1;player action ["moveToDriver", _"

    setDamage = !"> (1 - _amount)) then {sleep (_delay*(damage _veh));" !"_veh setDamage (1 - _amount);};" !"if ((getRepairCargo _veh) < _amount) then"

    This is also confirmed by other users, so thanks to Gen0cide for posting this

 

Do I need to configure infiSTAR?

  • Yes you do, look to your run.sqf and set these two options to false:
  • .
    /*  Remove Actions Plr   */ _OAP = false;	/* true or false */	/* Remove ALL Actions on Player Object: (mousewheel actions) needs to be  false  for AltisLife for e.g. gathering */
    /*  Remove Actions Objs  */ _OAO = false;	/* true or false */	/* Remove ALL Actions on Objects near Player: (mousewheel actions) needs to be  false  when using e.g. IgiLoad */
    
  • Maybe you need to configurate more than this. If this is so, I had it configured a long time before this release. If you find it out, please let us now
  • Make sure if you use armed A3 vehicles (without _EPOCH at end of name) that these vehicles are not restricted by infiSTAR. lookt to your run.sqf, there is an option to withelist vehicles, also you can disable this check...

 

 

Credits:

 

The last few days I read a lot of Scripts I found for reammo vehicles, study the pages on bistudio.com etc. Wheresoever I found a point of interest I just write it down to use it maybe later.

So I'm not sure I can give credits to all the Scripter out there where I found something, but I can tell you, where the most stuff is taken from......

 

            Script:          Dead Simple Vehicle Resupply Script
            Author:        ProfCupcake
            Link:            http://www.armaholic.com/page.php?id=23235
            
            Script:         Helibot 1.5
            Author:        Soolie & ScoobySna
            Link:            http://www.armaholic.com/page.php?id=25635
            
            Script:          Generic Vehicle Service
            Author:        Jacmac
            Link:            http://www.armaholic.com/page.php?id=19737
            
            Special Thanks to:

                                WhitePearl.................She's a real Pro in making awesome coffee
                                Sp4rkY.......................Dude, without your lessons I never could do this shit ^^
                                KiloSwiss...................Cause he always know, where to look for information
                                Saeco Minuto............Cause this coffee machine is the reason, why my wife is such a Pro in making awesome coffe  

 

 

How does it works?

 

  • You need to place an object on your map via mission.sqm and put an addAction to it in the Init-Line.
  • If you drive or land near the Object (~10m), an action in the Scrollmenu is available.
  •  
  • You need to spot on the Object wich has the addAction implemented.
  •  
  • During servicing your vehicle, UserInput is disabled, cause I don't know another way to reload 3 Mags for the Offroad. I need to place the driver to the gunnerseat and back to driverseat, otherwise this script only reloads the actual magazine. If I switch driver to gunner and back while reloading, it reloads the actual magazine and put 2 mags in the vehiclecargo, so you will have three mags at the end.
  • Cause UserInput is disabled during service, the engine needs to be turned off too, otherwise it could be very painfull with a helicopter... :blink:
  • The Scrollaction is available for driver and co-driver too, but there is a check, so only driver can pass the check, co-driver only get a message that he can't activate the service.
  • Driver need 100 Crypto, Pilot 200 Crypto to pass a check in the script, so without enough money, no service
  • The script does rearm, repair and refuel the vehicle. This alway costs full price. Doesn't matter if the vehicle is 100% rearmed, repaired, refueled. Try to fix that with more checks.
  • And there is on issue I have found. The repair seems to doesn't work for wheels from armor-platet wheeled vehicles (like Hunter, Strider, Gorgon, etc). Couldn't figure out for now why, in Editor it works, on server it won't.

 

 

 

Install Instructions

 

Download newest Files from GitHub, for install instructions read the readme.md

GitHub-Link DEVS

 

For this Tutorial I created a folder named "devs" into another Folder called "scripts". If you do it on another folder you need to change the path to the files in the next step, when adding the code to the placed objects in Editor.

devs_air.sqf

/* ////////////////////////////////////
//...................................//
//             DEVS v0.3 [WIP]         //
//               by CH!LL3R              //
//            |V.I.P.|-Gaming             //
//          www.v-i-p-gaming.de         //
//...................................//
///////////////////////////////////////

DEVS v0.3 [WIP]    Dirty Epoch Vehicle Service

Here are the Credits from scripts I use to get inspired and to look how things working:

Credits:    Script:        Dead Simple Vehicle Resupply Script
            Author:        ProfCupcake
            Link:        http://www.armaholic.com/page.php?id=23235
            
            Script:     Helibot 1.5
            Author:        Soolie & ScoobySna
            Link:        http://www.armaholic.com/page.php?id=25635
            
            Script:        Generic Vehicle Service
            Author:        Jacmac
            Link:        http://www.armaholic.com/page.php?id=19737
            
            Special Thanks to:
                                WhitePearl......She's a real Pro in making awesome coffee
                                Sp4rkY..........Dude, without your lessons I never could do this shit ^^
                                KiloSwiss.......Cause he always know, where to look for information
                                Saeco Minuto....Cause this machine is the reason, why my wife is such a Pro in making awesome coffee
                                
                                
                                
This script repair, refuel and rearm Vehicles and Helis. It works with an addAction to Items you need to place on the map.
You need a file for every airvehicle and one for landvehicle.
Servicing LandVehicles costs 100 crypto, helis costs 200 crypto.


I testet the script on my server, but I could not say if this will work with EpochAH, cause I'm using infiSTAR
Also I have no BattlEye on my Server, so you need to ask google to set restrictons to the filter, if you already didn't know how to do that.
Feel free to edit and share this script, but do not remove the credits.

This is my first try of a script. I only put a lot of stuff from many other scripts together and reworked some issues.
I think it's not perfect and a lot of things could be done better. Feel free to offer criticism, cause I want to learn.
                    
                        
Install-Instructions:

Place an Item on the map (mission.sqm) and put on the init-field:
            For Heli:
                                this addAction ["Heli-Service", "path\to\the\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
            For Landvehicle:
                                this addAction ["Vehicle-Service", "path\to\the\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
                                
Change "path\to\the\devs_air.sqf" to where you put the files in. Let's say you want to put it in your mission.pbo (like for Altis = epoch.Altis.pbo) in a folder named "scripts".
So copy the folder "devs" from download and paste it in the scrits folder. Than the path should look like this:

                                this addAction ["Heli-Service", "scripts\devs\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
        
Done!

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
private ["_user", "_veh"];

_user = (_this select 1);
_veh = vehicle _user;


if (EPOCH_playerCrypto >= 200) then {


            //--> text: welcome-messages    
                        ['Welcome to Heli Service',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                        uisleep 10;
                        ['Touch down your Heli while servicing your vehicle !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;                
                        uisleep 10;
                        
            //--> action: remove crypto
                        EPOCH_playerCrypto = EPOCH_playerCrypto - 200 ;
                        
            //--> text: service start, removed crypto and repairing in progresss    
                        ['Removed 200 crypto.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Service started.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Repairing in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;                                                
                        uisleep 3;        
                
            //--> action: repair Heli                    
                        _veh setDamage 0;
                        uisleep 7;
                        
            //--> text: repaired, start refuel        
                        ['Heli repaired.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Refueling in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: refuel Heli
                        _veh setFuel 1;
                        uisleep 7;
                
            //--> text: refueled, start rearming            
                        ['Heli refueled.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Rearming in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: rearm Heli
                        _veh setVehicleAmmo 1;
                        uisleep 0.1;
                        _veh setAmmoCargo 1;
                        uisleep 7;
                            
            //--> text: rearmed, finish service        
                        ['Heli rearmed.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Your Heli is as new as straight from factory...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Servicing is finished. Have a nice day',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                            
} else {
            //--> text: not enough crypto
                        ['Sorry Dude, you need 200 Crypto to service your heli',0,0.6,2,1] spawn bis_fnc_dynamictext;
};   


devs_land.sqf

/* ////////////////////////////////////
//...................................//
//             DEVS v0.3 [WIP]         //
//               by CH!LL3R              //
//            |V.I.P.|-Gaming             //
//          www.v-i-p-gaming.de         //
//...................................//
///////////////////////////////////////

DEVS v0.3 [WIP]    Dirty Epoch Vehicle Service

Here are the Credits from scripts I use to get inspired and to look how things working:

Credits:    Script:        Dead Simple Vehicle Resupply Script
            Author:        ProfCupcake
            Link:        http://www.armaholic.com/page.php?id=23235
            
            Script:     Helibot 1.5
            Author:        Soolie & ScoobySna
            Link:        http://www.armaholic.com/page.php?id=25635
            
            Script:        Generic Vehicle Service
            Author:        Jacmac
            Link:        http://www.armaholic.com/page.php?id=19737
            
            Special Thanks to:
                                WhitePearl......She's a real Pro in making awesome coffee
                                Sp4rkY..........Dude, without your lessons I never could do this shit ^^
                                KiloSwiss.......Cause he always know, where to look for information
                                Saeco Minuto....Cause this machine is the reason, why my wife is such a Pro in making awesome coffee
                                
                                
                                
This script repair, refuel and rearm Vehicles and Helis. It works with an addAction to Items you need to place on the map.
You need a file for every airvehicle and one for landvehicle.
Servicing LandVehicles costs 100 crypto, helis costs 200 crypto.


I testet the script on my server, but I could not say if this will work with EpochAH, cause I'm using infiSTAR
Also I have no BattlEye on my Server, so you need to ask google to set restrictons to the filter, if you already didn't know how to do that.
Feel free to edit and share this script, but do not remove the credits.

This is my first try of a script. I only put a lot of stuff from many other scripts together and reworked some issues.
I think it's not perfect and a lot of things could be done better. Feel free to offer criticism, cause I want to learn.
                    
                
                        
Install-Instructions:

Place an Item on the map (mission.sqm) and put on the init-field:
            For Heli:
                                this addAction ["Heli-Service", "path\to\the\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
            For Landvehicle:
                                this addAction ["Vehicle-Service", "path\to\the\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
                                
Change "path\to\the\devs_land.sqf" to where you put the files in. Let's say you want to put it in your mission.pbo (like for Altis = epoch.Altis.pbo) in a folder named "scripts".
So copy the folder "devs" from download and paste it in the scrits folder. Than the path should look like this:

                                this addAction ["Vehicle-Service", "scripts\devs\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
        
Done!

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
private ["_user", "_veh"];
    
_user = (_this select 1);
_veh = vehicle _user;

if (! isnull (driver _veh))    then {                            
if (EPOCH_playerCrypto >= 100) then {


            //--> text: welcome-messages    
                        ['Welcome to Vehicle Service',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                        uisleep 10;
                        ['Touch down your Vehicle while servicing your vehicle !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;                
                        uisleep 10;
                        
            //--> action: remove crypto
                        EPOCH_playerCrypto = EPOCH_playerCrypto - 100 ;            
                        
            //--> text: service start, removed crypto and repairing in progresss    
                        ['Removed 100 crypto.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Service started.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Repairing in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;                                                
                        uisleep 3;        
                
            //--> action: repair vehicle                
                        _veh setDamage 0;
                        uisleep 7;
                        
            //--> text: repaired, start refuel        
                        ['Vehicle repaired.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Refueling in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: refuel Vehicle
                        _veh setFuel 1;
                        uisleep 7;
                
            //--> text: refueled, start rearming            
                        ['Vehicle refueled.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Rearming in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
            //--> action: move player to gunnerposition to rearm ALL magazines, otherwise only the actual magazine will be reloaded
                        player action ["moveToGunner", _veh];
                        uisleep 0.1;
                        
            //--> action: rearm vehicle
                        _veh setVehicleAmmo 1;
                        uisleep 0.1;
                        _veh setAmmoCargo 1;
                        uisleep 0.1;
                        
            //--> action: bring player back to driverposition
                        uisleep 0.1;
                        player action ["moveToDriver", _veh];
                        uisleep 7;
                            
            //--> text: rearmed, finish service        
                        ['Vehicle rearmed.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Your Vehicle is as new as straight from factory...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Servicing is finished. Have a nice day',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                            
} else {
            //--> text: not enough crypto    
                        ['Sorry Dude, you need 100 Crypto to service your vehicle',0,0.6,2,1] spawn bis_fnc_dynamictext;        
};
} else {    
            //--> text: only driver can do this
                        ['Only the Driver can start servicing !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;
};

 

 

Now, go to editor and place an Object on the map. I have used this little workshop from gasstations (Land_CarService_F)

If you only want to have a Service-Point for LandVehicle, you will only need one building/Item. If you wnat to have a ServicePoint for Helis too, you need to put a second building to the mission.sqm (!Heli-Pads do not work!)

 

In the Init-Field from the placed Object you have to put in this:

 

 

For LandVehicles (maybe change path to file):

this addAction ["Vehicle-Service", "scripts\devs\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];

For Helis (maybe change path to file):

this addAction ["Heli-Service", "scripts\devs\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];

.

If you're done, put the objects to your mission.sqm, should look like this:

class Item99 {
			side = "CIV";
			class Vehicles {
				items = 1;
				class Item0 {
					position[] = {23605.094,3.19,17998.143};
					azimut = 130.016;
					special = "NONE";
					id = 99;
					side = "CIV";
					vehicle = "VirtualMan_EPOCH";
					player = "PLAY CDG";
					leader = 1;
					skill = 0.6;
				};
			};
		};
	};
	class Vehicles {
		items = 2;
                //////////////____Object for Heli-Service______///////
		class Item0 {
			position[] = {1111.111, 0.01, 2222.22};
			azimut = 190;
			id = 1;
			side = "EMPTY";
			vehicle = "Land_CarService_F";
			skill = 0.6;
			init = "this addAction [""Heli-Service"", ""scripts\devs\devs_air.sqf"", [5,1], 50, true, true, """", ""vehicle _this isKindOf 'Air'""];";
		};
                /////////////////////////////////////////////////////////
                //////////////____Object for Vehicle-Service______///////
		class Item1 {
			position[] = 2222.222, 0.01, 11111.111};
			azimut = 59.770031;
			id = 2;
			side = "EMPTY";
			vehicle = "Land_CarService_F";
			skill = 0.6;
			init = "this addAction [""Vehicle-Service"", ""scripts\devs\devs_land.sqf"", [5,1], 50, true, true, """", ""vehicle _this isKindOf 'LandVehicle'""];";
		};
               ////////////////////////////////////////////////////////
	};
   class Markers {
		items = 6;
		class Item0 {
			position[] = {7680,0,7680};
			name = "center";
			type = "Empty";
			angle = -83.5;
		};
		class Item1 {
			position[] = {1370.761,-0.4,4040.2083};
			name = "respawn_east";
			type = "Empty";
			angle = -83.5;
		};

 

Do not copy & paste this code from spoiler, it's only to show you, how it should look at the end.

 

 

 

So this is all what is to do for this very first version of this script.

 

 

 

Epilogue

 

So this is my first step in direction of slef-scripting stuff, please be merciful if there are big errors or if I do things strongly wrong.

Also don't look to my grammatic, my english is not the best.

As the headline says, this is WIP. The only reason why I released the script is, cause I want to lern and need a little more human guinea pigs :ph34r:

Cause I cpopied a lot and cause I'm a very greenhorn in scripting, I called the Script "Dirty", and the rest of name is a little homage to the Epoch-Devs.

 

Feel free to criticize, make improvement suggestions or just tell me what you think about the script.

And of course, I'm a human (according to hearsay) with family and job. So I couldn't work 28 hours / day on this script. Anyhow I try to do things better. Stay tuned....

Link to comment
Share on other sites

Well got this working fine but the rearm does not appear to work.  Is it only for the Epoch Armed Truck?  I tried a Strider GMG and no ammo was added even after moving to the gunners seat and the "Vehicle has been rearmed" message.

Link to comment
Share on other sites

Here is what I did to get this working with the "other" antihack tho it still has some issues with GMG weapons and repairing helis that I have found (didn't repair the missing main rotor on my black and white Orca).

BattlEye Filters

BIS_fnc_dynamictext = !"rue;" !"['Welcome to Vehicle Service',0,0.6,2,1] spawn bis_fnc_dynamictext;" !"sleep 5;" !"_delay = ((_this select 3) select 0);_"

setAmmo = !"mount) then {sleep (_delay*(1 - (getAmmoCargo _veh))); _veh setAmmoCargo _amount;};sleep 0.1;player action ["moveToDriver", _"

setDamage = !"> (1 - _amount)) then {sleep (_delay*(damage _veh));" !"_veh setDamage (1 - _amount);};" !"if ((getRepairCargo _veh) < _amount) then"

Link to comment
Share on other sites

Hey chiller I have been working on computermancer SFM and cm salvage and there is a really nice reload script in there that I've managed to get more vehicles and choppers working. So this covers all types air land sea?

If so nice work.

 

Hi, for now this script only works with air and land vehicles, sea is not testet, but if you change the initcode to seavehicles, maybe it works. This is a WIP-PreRelease, so I have to work a lot with this to get a working Script at least. But I will try to test and workout a version for sea vehicles.... stay tuned

 

 

 

Well got this working fine but the rearm does not appear to work.  Is it only for the Epoch Armed Truck?  I tried a Strider GMG and no ammo was added even after moving to the gunners seat and the "Vehicle has been rearmed" message.

I'm sure that I testet some Vehicles with GMG weapons, but I will test this again later this day. Thanks for Info

 

 

Here is what I did to get this working with the "other" antihack tho it still has some issues with GMG weapons and repairing helis that I have found (didn't repair the missing main rotor on my black and white Orca).

BattlEye Filters

BIS_fnc_dynamictext = !"rue;" !"['Welcome to Vehicle Service',0,0.6,2,1] spawn bis_fnc_dynamictext;" !"sleep 5;" !"_delay = ((_this select 3) select 0);_"

setAmmo = !"mount) then {sleep (_delay*(1 - (getAmmoCargo _veh))); _veh setAmmoCargo _amount;};sleep 0.1;player action ["moveToDriver", _"

setDamage = !"> (1 - _amount)) then {sleep (_delay*(damage _veh));" !"_veh setDamage (1 - _amount);};" !"if ((getRepairCargo _veh) < _amount) then"

If someone could confirm/re-test to get the script working with infi AND BattlEye with this settings, so I implement this to the tutorial to first post.

 

Will check the repair options for these helis later this day, stay tuned...

Link to comment
Share on other sites

 how i add more distance for vehicle & heli to detect full service menu its a little hot 10m for heli :)

Never testet this, and at the moment I'm downloading Arma3, and Epoch and AiA TP to my new PC, so this could take some time until I'm ready to test.

 

Because this is an addaction for now I'm not sure if/how you can can manage the distance.

First I need to do some tests, but for a good pilot, and a smaller Object it's more than possible to do that. We have the addAction testet on an "Land_Cargo40_military_green_F" and also on a Truck, both of them are working if you landet in front of it. But for sure I will have look how or if you can manage the distance, and also have look why not all vehicles / helis could get repaired. All bugs I know before are that wheeled APCs could not repair theire wheels...

Link to comment
Share on other sites

I tested some of the problems...:

 

GMG not reloading...

  • Test with Hunter GMG --> reloaded
  • Test with Strider GMG --> reloaded
  • Test with Ifrit GMG --> reloaded

          Found some Bugs with above vehicles:

  • repairing: doesn't work
  • sometimes player/vehicle walk/drive constantly backwards after vehicle service, only relog fix this issue (quickfix) or press ESC and have a little break...

Helis: Orca not repaired

  • testet with all orcas, max damaged as possible ---> repaired after service
  • Distance addAction to low for Helis --> could not really confirm this. Land in front of Object with addAction and target the object without any issues. And always I'm not dangerously to close to the object. (Maybe if the Object with the addAction himself is pretty big, it could resultes in a too little distance between vehicle/hel and object, so that you need to stand about 5m away. But with little objects like an cargo-container I could use the addAction about ~15m distance.)

 

So this are a few tests I did this morning, will work on thi issues later.

Link to comment
Share on other sites

I tested some of the problems...:

 

GMG not reloading...

  • Test with Hunter GMG --> reloaded
  • Test with Strider GMG --> reloaded
  • Test with Ifrit GMG --> reloaded

thats very nice but test with HMG version there is a pb with reload for strider & ifrit & repair too

Link to comment
Share on other sites

Repairing doesn't work for Hunter, Ifrit and so on, doesn't matter if unarmed, with GMG or HMG.

I thinks it's maybe because these vehicles are not really in the class "landvehicle", maybe we need to create a servicepoint for "tank" or something like this.... tests are going on....

 

For me the reammo of these vehicles is working fine, GMG or HMG, all weapons will be rearmed.

Maybe you need to have a look to your run.sqf and check if ammo and weapons doesn't restricted by infi.

Link to comment
Share on other sites

For me this update fixed most of the  problems.

  • No issues with rearming HMG or GMG Weapons.
  • Strider, Hunter, Ifrit... no problems with repair

So replace the existing files with the files from the spoiler

 

devs_air.sqf

/* ////////////////////////////////////
//...................................//
//             DEVS v0.1 [WIP]         //
//               by CH!LL3R              //
//            |V.I.P.|-Gaming             //
//          www.v-i-p-gaming.de         //
//...................................//
///////////////////////////////////////

DEVS v0.1 [WIP]    Dirty Epoch Vehicle Service

Here are the Credits from scripts I use to get inspired and to look how things working:

Credits:    Script:        Dead Simple Vehicle Resupply Script
            Author:        ProfCupcake
            Link:        http://www.armaholic.com/page.php?id=23235
            
            Script:     Helibot 1.5
            Author:        Soolie & ScoobySna
            Link:        http://www.armaholic.com/page.php?id=25635
            
            Script:        Generic Vehicle Service
            Author:        Jacmac
            Link:        http://www.armaholic.com/page.php?id=19737
            
            Special Thanks to:
                                WhitePearl......She's a real Pro in making awesome coffee
                                Sp4rkY..........Dude, without your lessons I never could do this shit ^^
                                KiloSwiss.......Cause he always know, where to look for information
                                Saeco Minuto....Cause this machine is the reason, why my wife is such a Pro in making awesome coffee
                                
                                
                                
This script repair, refuel and rearm Vehicles and Helis. It works with an addAction to Items you need to place on the map.
You need a file for every airvehicle and one for landvehicle.
Servicing LandVehicles costs 100 crypto, helis costs 200 crypto.


I testet the script on my server, but I could not say if this will work with EpochAH, cause I'm using infiSTAR
Also I have no BattlEye on my Server, so you need to ask google to set restrictons to the filter, if you already didn't know how to do that.
Feel free to edit and share this script, but do not remove the credits.

This is my first try of a script. I only put a lot of stuff from many other scripts together and reworked some issues.
I think it's not perfect and a lot of things could be done better. Feel free to offer criticism, cause I want to learn.
                    
                        
Install-Instructions:

Place an Item on the map (mission.sqm) and put on the init-field:
            For Heli:
                                this addAction ["Heli-Service", "path\to\the\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
            For Landvehicle:
                                this addAction ["Vehicle-Service", "path\to\the\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
                                
Change "path\to\the\devs_air.sqf" to where you put the files in. Let's say you want to put it in your mission.pbo (like for Altis = epoch.Altis.pbo) in a folder named "scripts".
So copy the folder "devs" from download and paste it in the scrits folder. Than the path should look like this:

                                this addAction ["Heli-Service", "scripts\devs\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
        
Done!

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
private ["_user", "_veh"];

_user = (_this select 1);
_veh = vehicle _user;


if (EPOCH_playerCrypto >= 200) then {


            //--> text: welcome-messages    
                        ['Welcome to Heli Service',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                        uisleep 10;
                        ['Touch down your Heli while servicing your vehicle !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;                
                        uisleep 10;
                        
            //--> action: remove crypto
                        EPOCH_playerCrypto = EPOCH_playerCrypto - 200 ;
                        
            //--> text: service start, removed crypto and repairing in progresss    
                        ['Removed 200 crypto.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Service started.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Repairing in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;                                                
                        uisleep 3;        
                
            //--> action: repair Heli                    
                        _veh setDamage 0;
                        uisleep 7;
                        
            //--> text: repaired, start refuel        
                        ['Heli repaired.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Refueling in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: refuel Heli
                        _veh setFuel 1;
                        uisleep 7;
                
            //--> text: refueled, start rearming            
                        ['Heli refueled.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Rearming in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: rearm Heli
                        _veh setVehicleAmmo 1;
                        uisleep 0.1;
                        _veh setAmmoCargo 1;
                        uisleep 7;
                            
            //--> text: rearmed, finish service        
                        ['Heli rearmed.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Your Heli is as new as straight from factory...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Servicing is finished. Have a nice day',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                            
} else {
            //--> text: not enough crypto
                        ['Sorry Dude, you need 200 Crypto to service your heli',0,0.6,2,1] spawn bis_fnc_dynamictext;
};   

 

devs_land.sqf

 

/* ////////////////////////////////////
//...................................//
//             DEVS v0.1 [WIP]         //
//               by CH!LL3R              //
//            |V.I.P.|-Gaming             //
//          www.v-i-p-gaming.de         //
//...................................//
///////////////////////////////////////

DEVS v0.1 [WIP]    Dirty Epoch Vehicle Service

Here are the Credits from scripts I use to get inspired and to look how things working:

Credits:    Script:        Dead Simple Vehicle Resupply Script
            Author:        ProfCupcake
            Link:        http://www.armaholic.com/page.php?id=23235
            
            Script:     Helibot 1.5
            Author:        Soolie & ScoobySna
            Link:        http://www.armaholic.com/page.php?id=25635
            
            Script:        Generic Vehicle Service
            Author:        Jacmac
            Link:        http://www.armaholic.com/page.php?id=19737
            
            Special Thanks to:
                                WhitePearl......She's a real Pro in making awesome coffee
                                Sp4rkY..........Dude, without your lessons I never could do this shit ^^
                                KiloSwiss.......Cause he always know, where to look for information
                                Saeco Minuto....Cause this machine is the reason, why my wife is such a Pro in making awesome coffee
                                
                                
                                
This script repair, refuel and rearm Vehicles and Helis. It works with an addAction to Items you need to place on the map.
You need a file for every airvehicle and one for landvehicle.
Servicing LandVehicles costs 100 crypto, helis costs 200 crypto.


I testet the script on my server, but I could not say if this will work with EpochAH, cause I'm using infiSTAR
Also I have no BattlEye on my Server, so you need to ask google to set restrictons to the filter, if you already didn't know how to do that.
Feel free to edit and share this script, but do not remove the credits.

This is my first try of a script. I only put a lot of stuff from many other scripts together and reworked some issues.
I think it's not perfect and a lot of things could be done better. Feel free to offer criticism, cause I want to learn.
                    
                
                        
Install-Instructions:

Place an Item on the map (mission.sqm) and put on the init-field:
            For Heli:
                                this addAction ["Heli-Service", "path\to\the\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
            For Landvehicle:
                                this addAction ["Vehicle-Service", "path\to\the\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
                                
Change "path\to\the\devs_land.sqf" to where you put the files in. Let's say you want to put it in your mission.pbo (like for Altis = epoch.Altis.pbo) in a folder named "scripts".
So copy the folder "devs" from download and paste it in the scrits folder. Than the path should look like this:

                                this addAction ["Vehicle-Service", "scripts\devs\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
        
Done!

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
private ["_user", "_veh"];
    
_user = (_this select 1);
_veh = vehicle _user;

if (! isnull (driver _veh))    then {                            
if (EPOCH_playerCrypto >= 100) then {


            //--> text: welcome-messages    
                        ['Welcome to Vehicle Service',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                        uisleep 10;
                        ['Touch down your Vehicle while servicing your vehicle !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;                
                        uisleep 10;
                        
            //--> action: remove crypto
                        EPOCH_playerCrypto = EPOCH_playerCrypto - 100 ;            
                        
            //--> text: service start, removed crypto and repairing in progresss    
                        ['Removed 100 crypto.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Service started.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Repairing in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;                                                
                        uisleep 3;        
                
            //--> action: repair vehicle                
                        _veh setDamage 0;
                        uisleep 7;
                        
            //--> text: repaired, start refuel        
                        ['Vehicle repaired.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Refueling in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: refuel Vehicle
                        _veh setFuel 1;
                        uisleep 7;
                
            //--> text: refueled, start rearming            
                        ['Vehicle refueled.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Rearming in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
            //--> action: move player to gunnerposition to rearm ALL magazines, otherwise only the actual magazine will be reloaded
                        player action ["moveToGunner", _veh];
                        uisleep 0.1;
                        
            //--> action: rearm vehicle
                        _veh setVehicleAmmo 1;
                        uisleep 0.1;
                        _veh setAmmoCargo 1;
                        uisleep 0.1;
                        
            //--> action: bring player back to driverposition
                        uisleep 0.1;
                        player action ["moveToDriver", _veh];
                        uisleep 7;
                            
            //--> text: rearmed, finish service        
                        ['Vehicle rearmed.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Your Vehicle is as new as straight from factory...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Servicing is finished. Have a nice day',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                            
} else {
            //--> text: not enough crypto    
                        ['Sorry Dude, you need 100 Crypto to service your vehicle',0,0.6,2,1] spawn bis_fnc_dynamictext;        
};
} else {    
            //--> text: only driver can do this
                        ['Only the Driver can start servicing !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;
};


So please feel free to test this version. I will update first post asap after intense testing with normal player and more vehicle/weapons.

Link to comment
Share on other sites

Hi, when i change for the new script i kicked from server "restriction script #48

#48 "                                
uisleep 3;        
 
 
_veh setDamage 0;
uisleep 7;
 
 
['Vehicle repaired.',0,0.6,2,1] spawn bis_f"
 
i already have the be filter already post here
Link to comment
Share on other sites

Two new filters are needed now with the updated script (works perfect now by the way).

 

"BIS_fnc_dynamictext" = !"then {   ['Welcome to Heli Service',0,0.6,2,1] spawn bis_fnc_dynamictext;" !"sleep 10;" !"['Touch down your Heli while servicing yo"

 

AND

 

setDamage = !"] spawn bis_fnc_dynamictext;" !"sleep 3;" !"_veh setDamage 0;" !"sleep 7;" !"['Heli repaired.',0,0.6,2,1] spawn bis_fnc_dy"

Link to comment
Share on other sites

For me this update fixed most of the  problems.

  • No issues with rearming HMG or GMG Weapons.
  • Strider, Hunter, Ifrit... no problems with repair
So replace the existing files with the files from the spoiler

 

devs_air.sqf

/* ////////////////////////////////////
//...................................//
//             DEVS v0.1 [WIP]         //
//               by CH!LL3R              //
//            |V.I.P.|-Gaming             //
//          www.v-i-p-gaming.de         //
//...................................//
///////////////////////////////////////

DEVS v0.1 [WIP]    Dirty Epoch Vehicle Service

Here are the Credits from scripts I use to get inspired and to look how things working:

Credits:    Script:        Dead Simple Vehicle Resupply Script
            Author:        ProfCupcake
            Link:        http://www.armaholic.com/page.php?id=23235
            
            Script:     Helibot 1.5
            Author:        Soolie & ScoobySna
            Link:        http://www.armaholic.com/page.php?id=25635
            
            Script:        Generic Vehicle Service
            Author:        Jacmac
            Link:        http://www.armaholic.com/page.php?id=19737
            
            Special Thanks to:
                                WhitePearl......She's a real Pro in making awesome coffee
                                Sp4rkY..........Dude, without your lessons I never could do this shit ^^
                                KiloSwiss.......Cause he always know, where to look for information
                                Saeco Minuto....Cause this machine is the reason, why my wife is such a Pro in making awesome coffee
                                
                                
                                
This script repair, refuel and rearm Vehicles and Helis. It works with an addAction to Items you need to place on the map.
You need a file for every airvehicle and one for landvehicle.
Servicing LandVehicles costs 100 crypto, helis costs 200 crypto.


I testet the script on my server, but I could not say if this will work with EpochAH, cause I'm using infiSTAR
Also I have no BattlEye on my Server, so you need to ask google to set restrictons to the filter, if you already didn't know how to do that.
Feel free to edit and share this script, but do not remove the credits.

This is my first try of a script. I only put a lot of stuff from many other scripts together and reworked some issues.
I think it's not perfect and a lot of things could be done better. Feel free to offer criticism, cause I want to learn.
                    
                        
Install-Instructions:

Place an Item on the map (mission.sqm) and put on the init-field:
            For Heli:
                                this addAction ["Heli-Service", "path\to\the\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
            For Landvehicle:
                                this addAction ["Vehicle-Service", "path\to\the\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
                                
Change "path\to\the\devs_air.sqf" to where you put the files in. Let's say you want to put it in your mission.pbo (like for Altis = epoch.Altis.pbo) in a folder named "scripts".
So copy the folder "devs" from download and paste it in the scrits folder. Than the path should look like this:

                                this addAction ["Heli-Service", "scripts\devs\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
        
Done!

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
private ["_user", "_veh"];

_user = (_this select 1);
_veh = vehicle _user;


if (EPOCH_playerCrypto >= 200) then {


            //--> text: welcome-messages    
                        ['Welcome to Heli Service',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                        uisleep 10;
                        ['Touch down your Heli while servicing your vehicle !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;                
                        uisleep 10;
                        
            //--> action: remove crypto
                        EPOCH_playerCrypto = EPOCH_playerCrypto - 200 ;
                        
            //--> text: service start, removed crypto and repairing in progresss    
                        ['Removed 200 crypto.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Service started.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Repairing in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;                                                
                        uisleep 3;        
                
            //--> action: repair Heli                    
                        _veh setDamage 0;
                        uisleep 7;
                        
            //--> text: repaired, start refuel        
                        ['Heli repaired.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Refueling in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: refuel Heli
                        _veh setFuel 1;
                        uisleep 7;
                
            //--> text: refueled, start rearming            
                        ['Heli refueled.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Rearming in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: rearm Heli
                        _veh setVehicleAmmo 1;
                        uisleep 0.1;
                        _veh setAmmoCargo 1;
                        uisleep 7;
                            
            //--> text: rearmed, finish service        
                        ['Heli rearmed.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Your Heli is as new as straight from factory...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Servicing is finished. Have a nice day',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                            
} else {
            //--> text: not enough crypto
                        ['Sorry Dude, you need 200 Crypto to service your heli',0,0.6,2,1] spawn bis_fnc_dynamictext;
};   

 

devs_land.sqf

 

/* ////////////////////////////////////
//...................................//
//             DEVS v0.1 [WIP]         //
//               by CH!LL3R              //
//            |V.I.P.|-Gaming             //
//          www.v-i-p-gaming.de         //
//...................................//
///////////////////////////////////////

DEVS v0.1 [WIP]    Dirty Epoch Vehicle Service

Here are the Credits from scripts I use to get inspired and to look how things working:

Credits:    Script:        Dead Simple Vehicle Resupply Script
            Author:        ProfCupcake
            Link:        http://www.armaholic.com/page.php?id=23235
            
            Script:     Helibot 1.5
            Author:        Soolie & ScoobySna
            Link:        http://www.armaholic.com/page.php?id=25635
            
            Script:        Generic Vehicle Service
            Author:        Jacmac
            Link:        http://www.armaholic.com/page.php?id=19737
            
            Special Thanks to:
                                WhitePearl......She's a real Pro in making awesome coffee
                                Sp4rkY..........Dude, without your lessons I never could do this shit ^^
                                KiloSwiss.......Cause he always know, where to look for information
                                Saeco Minuto....Cause this machine is the reason, why my wife is such a Pro in making awesome coffee
                                
                                
                                
This script repair, refuel and rearm Vehicles and Helis. It works with an addAction to Items you need to place on the map.
You need a file for every airvehicle and one for landvehicle.
Servicing LandVehicles costs 100 crypto, helis costs 200 crypto.


I testet the script on my server, but I could not say if this will work with EpochAH, cause I'm using infiSTAR
Also I have no BattlEye on my Server, so you need to ask google to set restrictons to the filter, if you already didn't know how to do that.
Feel free to edit and share this script, but do not remove the credits.

This is my first try of a script. I only put a lot of stuff from many other scripts together and reworked some issues.
I think it's not perfect and a lot of things could be done better. Feel free to offer criticism, cause I want to learn.
                    
                
                        
Install-Instructions:

Place an Item on the map (mission.sqm) and put on the init-field:
            For Heli:
                                this addAction ["Heli-Service", "path\to\the\devs_air.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'Air'"];
            For Landvehicle:
                                this addAction ["Vehicle-Service", "path\to\the\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
                                
Change "path\to\the\devs_land.sqf" to where you put the files in. Let's say you want to put it in your mission.pbo (like for Altis = epoch.Altis.pbo) in a folder named "scripts".
So copy the folder "devs" from download and paste it in the scrits folder. Than the path should look like this:

                                this addAction ["Vehicle-Service", "scripts\devs\devs_land.sqf", [5,1], 50, true, true, "", "vehicle _this isKindOf 'LandVehicle'"];
        
Done!

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
private ["_user", "_veh"];
    
_user = (_this select 1);
_veh = vehicle _user;

if (! isnull (driver _veh))    then {                            
if (EPOCH_playerCrypto >= 100) then {


            //--> text: welcome-messages    
                        ['Welcome to Vehicle Service',0,0.6,2,1] spawn bis_fnc_dynamictext;        
                        uisleep 10;
                        ['Touch down your Vehicle while servicing your vehicle !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;                
                        uisleep 10;
                        
            //--> action: remove crypto
                        EPOCH_playerCrypto = EPOCH_playerCrypto - 100 ;            
                        
            //--> text: service start, removed crypto and repairing in progresss    
                        ['Removed 100 crypto.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Service started.',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                        uisleep 7;
                        ['Repairing in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;                                                
                        uisleep 3;        
                
            //--> action: repair vehicle                
                        _veh setDamage 0;
                        uisleep 7;
                        
            //--> text: repaired, start refuel        
                        ['Vehicle repaired.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Refueling in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
            //--> action: refuel Vehicle
                        _veh setFuel 1;
                        uisleep 7;
                
            //--> text: refueled, start rearming            
                        ['Vehicle refueled.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
                        ['Rearming in progress - please wait...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        
                        
            //--> action: move player to gunnerposition to rearm ALL magazines, otherwise only the actual magazine will be reloaded
                        player action ["moveToGunner", _veh];
                        uisleep 0.1;
                        
            //--> action: rearm vehicle
                        _veh setVehicleAmmo 1;
                        uisleep 0.1;
                        _veh setAmmoCargo 1;
                        uisleep 0.1;
                        
            //--> action: bring player back to driverposition
                        uisleep 0.1;
                        player action ["moveToDriver", _veh];
                        uisleep 7;
                            
            //--> text: rearmed, finish service        
                        ['Vehicle rearmed.',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Your Vehicle is as new as straight from factory...',0,0.6,2,1] spawn bis_fnc_dynamictext;
                        uisleep 7;
                        ['Servicing is finished. Have a nice day',0,0.6,2,1] spawn bis_fnc_dynamictext;    
                            
} else {
            //--> text: not enough crypto    
                        ['Sorry Dude, you need 100 Crypto to service your vehicle',0,0.6,2,1] spawn bis_fnc_dynamictext;        
};
} else {    
            //--> text: only driver can do this
                        ['Only the Driver can start servicing !!!',0,0.6,2,1] spawn bis_fnc_dynamictext;
};


So please feel free to test this version. I will update first post asap after intense testing with normal player and more vehicle/weapons.

Chiller, excellent work on this.

I hope you don't mind, I kinda took this and changed it up a bit.

I have them split up between not only the Air and Land types but also I split up the options.

My gas stations now have the options:

Vehicle Repair

Vehicle ReARM

or

Chopper Repair

Chopper ReARM

I have also made it so that all addactions are applied to a single object.

Currently Im using the BLUKING signage at each gas station and its nice and easy.

However, I have been attempting to add these actions to objects already on the map but have been unsuccessful so far.

Here is my code for the Vehicles in mission.sqm

		class Item8
		{
			position[]={9037.6,0,15728.9};
			azimut=128.182;
			id=8;
			side="EMPTY";
			vehicle="SignAd_SponsorS_Blueking_F";
			leader=1;
			skill=0;
			text="GSA8";
			init="this addAction[""<t color='#0074E8'>Vehicle-Repair</t>"", ""scripts\service\repairLAND.sqf"", [5,1], 50, true, true, """", ""vehicle _this isKindOf 'LandVehicle'""];this addAction[""<t color='#0074E8'>Vehicle-ReARM</t>"", ""scripts\service\rearmLAND.sqf"", [5,1], 50, true, true, """", ""vehicle _this isKindOf 'LandVehicle'""];this addAction[""<t color='#663399'>Chopper-Repair</t>"", ""scripts\service\repairAIR.sqf"", [5,1], 50, true, true, """", ""vehicle _this isKindOf 'Air'""];this addAction[""<t color='#663399'>Chopper-ReARM</t>"", ""scripts\service\rearmAIR.sqf"", [5,1], 50, true, true, """", ""vehicle _this isKindOf 'Air'""];";
		};
However you now will need to remove the unneeded code from his posted code.

As in remove all the repair and refuel stuff for the rearm script.

And remove all the rearm stuff from the repair script.

Anyhow, GREAT WORK!

Link to comment
Share on other sites

Everyone feel free to change things and rework this script. It's my first work and I called it PreRelease cause I know that there where things that could done better.

I'm currently working on a version that will works with nearestObjects, so you don't need to do something in your mission.sqm.... For now there are some little problems, but I think it will work soon.

Stay tuned......

cheers

Link to comment
Share on other sites

Everyone feel free to change things and rework this script. It's my first work and I called it PreRelease cause I know that there where things that could done better.

I'm currently working on a version that will works with nearestObjects, so you don't need to do something in your mission.sqm.... For now there are some little problems, but I think it will work soon.

Stay tuned......

cheers

That was my idea for the initial attempts to mod this script.

after several failed attempts I took to splitting up the script into separate repair and rearm scripts.

also added all the addactions to one object instead

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...