Jump to content
Sign in to follow this  
hogmason

HOG Mechanic v2.0

Recommended Posts

HOG Mechanic v2

By =Mason=

/////////////////////////////////

======================>>>>DOWNLOAD<<<<<=======================

=============

ABOUT

=============

This script gives the player the ability to repair vehicles if a few requirments are met.

=================

HOW THIS WORKS

=================

At base there is a pile of tyres and fuel cans from each pile an engineer can pickup a spare tyre for Vehicle Repairs or a

Fuel can to refuel a Vehicle.

To check how many tyres you have or fuel cans you have open your map and you will find a radio with 2 options

1 to check spare tyres and 1 to check Fuel cans.

=============

Requirments

=============

1) player is an engineer.

2) player has at least 1 spare tyre to repair a vehicle.

3) player at least 1 fuel can to refuel a vehicle.

=============

HOW TO USE

=============

1) drag the demo to your missions folder

C:\Users\yourname\Documents\ArmA 2 Other Profiles\yournick\missions

2) then open it in the editor to view what you need on the map for the script to run

you can simpy select merger in the editor to merge all objects on the map over to your mission.

3) transfer the HOG_scripts folder over to your mission folder

and place the following in your init.sqf

// HOG_mechanic start and Public Variable
if ! isdedicated then {
[player] execVM "HOG_scripts\HOG_mechanic\common.sqf";
//Repair
[player] execVM "HOG_scripts\HOG_mechanic\Repair\add_repair_TOvehicle.sqf";
[player] execVM "HOG_scripts\HOG_mechanic\repair_functions.sqf";
[player] execVM "HOG_scripts\HOG_mechanic\Repair\tyre_count.sqf";
//Refuel
[player] execVM "HOG_scripts\HOG_mechanic\Refuel\add_refuel_TOvehicle.sqf";
[player] execVM "HOG_scripts\HOG_mechanic\refuel_functions.sqf";
[player] execVM "HOG_scripts\HOG_mechanic\Refuel\fuelcan_count.sqf";
};

===================================================

SETTING UP LIST OF ENGINEERS / USING WITH UNIT MODS

===================================================

TO add different engineer classnames simply open up

HOG_scripts\HOG_mechanic\common.sqf

and at the top you will find

crewType = ["USMC_SoldierS_Engineer","US_Soldier_Engineer_EP1","BAF_Soldier_EN_W","BAF_Soldier_EN_DDPM",
           "BAF_Soldier_EN_MTP","Soldier_Engineer_PMC","CDF_Soldier_Engineer"];

now this has all standalone engineer classnames but if you need more just add them in to the _crewType array.

===================

UPDATES

===================

V2

* Changed from player needing a laserdesignator to use repair and refuel

to player needing a spare tyre to repair and a Fuel can to refuel.

* Fixed a variable issue

* Sepperated Repair and Refuel to 2 seperate events.

===================

COPYRIGHT STATEMENT

===================

HOG Mechanic is © 2012 All rights reserved.

================

LEGAL DISCLAIMER

================

The Software is distributed without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.

The Software is not an official addon or tool. Use of the Software (in whole or in part) is entirely at your own risk.

=========================================================

DISTRIBUTING SIMULATION CONTENT CREATED WITH THE SOFTWARE

=========================================================

Please note that you do NOT require permission from The Contributors to distribute simulation content (e.g. missions) created with the Software.

However, The Contributors do ask that you credit the Software in any release documentation.

=======

CREDITS

=======

thanks to the community on BIS Forums for helping me to get my knowledge of Arma 2 scripting.

Edited by hogmason

Share this post


Link to post
Share on other sites

HOG Mechanic v2

By =Mason=

/////////////////////////////////

======================>>>>DOWNLOAD<<<<<=======================

=============

ABOUT

=============

This script gives the player the ability to repair vehicles if a few requirments are met.

=================

HOW THIS WORKS

=================

At base there is a pile of tyres and fuel cans from each pile an engineer can pickup a spare tyre for Vehicle Repairs or a

Fuel can to refuel a Vehicle.

To check how many tyres you have or fuel cans you have open your map and you will find a radio with 2 options

1 to check spare tyres and 1 to check Fuel cans.

=============

Requirments

=============

1) player is an engineer.

2) player has at least 1 spare tyre to repair a vehicle.

3) player at least 1 fuel can to refuel a vehicle.

=============

HOW TO USE

=============

1) drag the demo to your missions folder

C:\Users\yourname\Documents\ArmA 2 Other Profiles\yournick\missions

2) then open it in the editor to view what you need on the map for the script to run

you can simpy select merger in the editor to merge all objects on the map over to your mission.

3) transfer the HOG_scripts folder over to your mission folder

and place the following in your init.sqf

// HOG_mechanic start and Public Variable
if ! isdedicated then {
[player] execVM "HOG_scripts\HOG_mechanic\common.sqf";
//Repair
[player] execVM "HOG_scripts\HOG_mechanic\Repair\add_repair_TOvehicle.sqf";
[player] execVM "HOG_scripts\HOG_mechanic\repair_functions.sqf";
[player] execVM "HOG_scripts\HOG_mechanic\Repair\tyre_count.sqf";
//Refuel
[player] execVM "HOG_scripts\HOG_mechanic\Refuel\add_refuel_TOvehicle.sqf";
[player] execVM "HOG_scripts\HOG_mechanic\refuel_functions.sqf";
[player] execVM "HOG_scripts\HOG_mechanic\Refuel\fuelcan_count.sqf";
};

===================================================

SETTING UP LIST OF ENGINEERS / USING WITH UNIT MODS

===================================================

TO add different engineer classnames simply open up

HOG_scripts\HOG_mechanic\common.sqf

and at the top you will find

crewType = ["USMC_SoldierS_Engineer","US_Soldier_Engineer_EP1","BAF_Soldier_EN_W","BAF_Soldier_EN_DDPM",
           "BAF_Soldier_EN_MTP","Soldier_Engineer_PMC","CDF_Soldier_Engineer"];

now this has all standalone engineer classnames but if you need more just add them in to the _crewType array.

===================

UPDATES

===================

V2

* Changed from player needing a laserdesignator to use repair and refuel

to player needing a spare tyre to repair and a Fuel can to refuel.

* Fixed a variable issue

* Sepperated Repair and Refuel to 2 seperate events.

===================

COPYRIGHT STATEMENT

===================

HOG Mechanic is © 2012 All rights reserved.

================

LEGAL DISCLAIMER

================

The Software is distributed without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.

The Software is not an official addon or tool. Use of the Software (in whole or in part) is entirely at your own risk.

=========================================================

DISTRIBUTING SIMULATION CONTENT CREATED WITH THE SOFTWARE

=========================================================

Please note that you do NOT require permission from The Contributors to distribute simulation content (e.g. missions) created with the Software.

However, The Contributors do ask that you credit the Software in any release documentation.

=======

CREDITS

=======

thanks to the community on BIS Forums for helping me to get my knowledge of Arma 2 scripting.

Share this post


Link to post
Share on other sites

UPDATE.

*fixed a missing error 30/11/2012

PLEASE REDOWNLOAD THE FILE

Share this post


Link to post
Share on other sites

Is there anyway to limit the number of tires and fuel cans a unit can carry? From the test mission, through the editor, I was able to obtain as many as I wanted, granting unlimited refuels / repairs. Well... I obtained 6 of each in any case.

Share this post


Link to post
Share on other sites

yeah there is a way to do this i just havent got around to it as yet ;).

IMPORTANT

thanks to Iceman77 HOG Mechanic v2 will be updated tomorrow with some excellent new features added by Iceman77 ill post details later when i get home.

Huge thanks to Iceman77 ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×