Fireforge 0 Posted July 7, 2008 heya folks - is there a script that would allow a player to repair vehicles? Share this post Link to post Share on other sites
BilOlson 0 Posted July 7, 2008 Ive had some success doing this for units in the config.cpp <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class sfEngineer: SoldierWSaboteurPipe { displayName="SF Engineer"; vehicleClass="ASP"; model = "\ca\characters\us_soldier_sabot.p3d"; // place the path to your model here scope = 2; enableGPS = 1; picture = "\Ca\characters\data\Ico\i_SF_CA.paa"; // picture of the unit as it appears in the commandbar Icon = "\Ca\characters\data\map_ico\i_komandos_CA.paa"; nameSound = "blackOp"; supplyRadius = 2.0; TransportRepair = 200000000; //repair ability canHideBodies = 1; canDeactivateMines = 1; nightVision = 1; weapons[]={"M4A1SD","M9SD","NVGoggles", "Binocular", "Throw","Put"}; magazines[]={"30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","HandGrenade","HandGrenade","SmokeShell","SmokeShell","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"}; class Wounds { tex[] = {}; mat[] = {"ca\characters\data\us_rukavy_sab_hhl.rvmat","ca\characters\data\us_rukavy_sab_hhl_wound1.rvmat","ca\characters\data\us_rukavy_sab_hhl_wound2.rvmat","ca\characters\data\us_soldier_sabot_body.rvmat","ca\characters\data\us_soldier_sabot_body_wound1.rvmat","ca\characters\data\us_soldier_sabot_body_wound2.rvmat"}; }; }; Code to check out in above code block is: supplyRadius = 2.0; transportRepair = 200000000; //repair ability from my ASP_SFunitsV2 link to SFunitsV2, so you can test it to see how it works.. Note:Works pretty well, does not allow you to repair while riding in a vehicle (Ex. BattleField2, etc). Unit has to exit vehicle and rendezvous with object that needs repairing, in order to repair it. Which is what I was after, a little more realistic imho. Share this post Link to post Share on other sites
luki 53 Posted July 8, 2008 There is a nice script pagage from Lester. Short Description from the technican section : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Skill: Technican If the Skill Technican is placed in the inventory of the Player he gain access to analyse the damage state of any vehicle and can if he owns a Material Packs repair it via Useraction. Is the type of the Material Pack is of the same side as the vehicle (independent of the actual owner !) he can repair the full amount of the Material Pack, on the other hand the Packs have a reduced 50% effectivity ! The player have to choice which type of a Material Pack he what to use if he owns Material Packs of different sides, it's a very thing to think about which Material Pack he uses. The Technican generates one Material Pack of his side every 500 seconds if a Pistol Magazine Slot is free (by Default). MAP SKILLS \Sgt.Ace Share this post Link to post Share on other sites