From 7a64ccb7a5defe4b83a50fe2eb443603d0d1d115 Mon Sep 17 00:00:00 2001 From: Samuel Deutsch Date: Wed, 17 Aug 2022 04:00:54 -0700 Subject: [PATCH] Refuel - Improved fuel hose texture (#8983) * Added custom fuel hose * Fixed indentation * Added model config for hose * Added model config for hose --- addons/refuel/CfgVehicles.hpp | 20 ++++++++++++++++++++ addons/refuel/data/hose.cfg | 7 +++++++ addons/refuel/data/hose.p3d | Bin 0 -> 13867 bytes addons/refuel/functions/fnc_takeNozzle.sqf | 2 +- 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 addons/refuel/data/hose.cfg create mode 100644 addons/refuel/data/hose.p3d diff --git a/addons/refuel/CfgVehicles.hpp b/addons/refuel/CfgVehicles.hpp index 41c4f12625..6745469a2a 100644 --- a/addons/refuel/CfgVehicles.hpp +++ b/addons/refuel/CfgVehicles.hpp @@ -42,6 +42,18 @@ class CBA_Extended_EventHandlers; +class CfgNonAIVehicles { + class GVAR(fuelHoseSegment) { + access = 0; + scope = 2; + displayName = "Fuel Hose"; + simulation = "ropesegment"; + autocenter = 0; + animated = 0; + model = QPATHTOF(data\hose.p3d); + }; +}; + class CfgVehicles { class ACE_Module; class ACE_moduleRefuelSettings: ACE_Module { @@ -82,6 +94,14 @@ class CfgVehicles { model = QPATHTOF(data\nozzle.p3d); destrType = "DestructNo"; }; + + class Rope; + class GVAR(fuelHose): Rope { + hiddenSelections[] = {"rope"}; + hiddenSelectionsTextures[] = {"#(argb,8,8,3)color(0.009,0.009,0.009,1.0,co)"}; + segmentType = QGVAR(fuelHoseSegment); + model = QPATHTOF(data\hose.p3d); + }; class All; class Static: All {}; diff --git a/addons/refuel/data/hose.cfg b/addons/refuel/data/hose.cfg new file mode 100644 index 0000000000..a49123a444 --- /dev/null +++ b/addons/refuel/data/hose.cfg @@ -0,0 +1,7 @@ +class CfgModels { + class hose { + sectionsInherit = ""; + sections[] = {"rope"}; + skeletonName = ""; + }; +}; \ No newline at end of file diff --git a/addons/refuel/data/hose.p3d b/addons/refuel/data/hose.p3d new file mode 100644 index 0000000000000000000000000000000000000000..cc233eacf611c2a83d3dd80d42f1213458ee30c7 GIT binary patch literal 13867 zcmeI2TZ~>+701t4MDfPOOIv!8mXE@ePRq2T77*qXI&BqNW~42mqBzW@V9R{N%n(}w z*aV(2BpN9(jUis*8&TdUl*AW827S=PC$G`e7ZV?NFhs2Dx6b~5XZM`hGxIfHj1RLX z>#Vi*-e;|~_u6OewZA(fEX#)b2M??>oEiTKL&prRgOAEP?;W~L?2D&P z4TxVe`tIkbKQ`R!?eMgVAAJ5Uum9^y&v-w0+Qsh2SG-s1KSTSuh)4e4gZ=cUUHrOIzK;_= z$ans!ou^;t{psT~XH)d6YlqI#XZ4AdXH#^Ro%B9G{>Q)iQ}mfqPM)HVm-gf-`stmg z2e7Agd?ruPudN-*gUxx0Haoo!{nE6z`PjT$7-vk|SX|B;o1YXdJ0G)oPSHVT+otp9 zzg?qKK8ov8K8ov8K8ov8K8ov8K8ou#-v5=qY~I@bO3@l;?8l|jvCK~8#P7y*BU)E6 z-HH6v+KcPui;G={W>0NRE@j=)$Hu$pyZ?#$#B}Q2xIVTmrfojkdgJ=}=u6B_+h#&3 z-dhpsCMG73MR(D+e<_s*YZKgk*A~EYY@if zv%SvvU(U_lZYXE$>&x~oX~l=1G6-6X%Cc+x`NLlr%JKOI16g5Yt#s~J*62o;vn&76 z)KfWryw+gr^OxpF|9!7(Z5sd2zpTv%@4mcCVkw4&vP zQmV(?9^(}uiHH`m#dk?7YxKraYDR?IVi4l6$K~FV?~+!uY%QgFOx|XEh=3lKZz}mN zY32LuE2Vm*-)_7jB&%&l$#+RBaoCO~Z7oE|PaA{?=yCZoCEq2jX!&d@)pvrO#w$Yd zCEZ-|UD8S%zNM7v`^&AyD^?MkIPNMg8(AxzM+w$2hf2j+z9d2+ad@{y1-@st0n3{P z9{A3RE{zqbg{VR*5ptKo)3zHBi-^;A7`(9Q=eKn?`rjEzWyW_0o`{Iw2Mx3*8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P5C5b2f18${d-kfs zaavxaAFzPX{dXl+lS T6YZ~q9E(yrH2v(s(fj`kG7!pD literal 0 HcmV?d00001 diff --git a/addons/refuel/functions/fnc_takeNozzle.sqf b/addons/refuel/functions/fnc_takeNozzle.sqf index 7ce0a9d808..efb0256654 100644 --- a/addons/refuel/functions/fnc_takeNozzle.sqf +++ b/addons/refuel/functions/fnc_takeNozzle.sqf @@ -69,7 +69,7 @@ params [ _attachPos = _attachPos select (_hookDistances find selectMin _hookDistances); }; private _hoseLength = _source getVariable [QGVAR(hoseLength), GVAR(hoseLength)]; - private _rope = ropeCreate [_ropeTarget, _attachPos, _nozzle, [0, -0.20, 0.12], _hoseLength]; + private _rope = ropeCreate [_ropeTarget, _attachPos, _nozzle, [0, -0.20, 0.12], _hoseLength, [], [], QGVAR(fuelHose)]; _nozzle setVariable [QGVAR(rope), _rope, true]; _nozzle setVariable [QGVAR(attachPos), _attachPos, true]; _nozzle setVariable [QGVAR(source), _source, true];