Moved models into data
fixed vehicle attach for certain angles
This commit is contained in:
Githawk 2016-02-02 15:45:57 +01:00
parent 5e103ba398
commit 4d403d21aa
14 changed files with 10 additions and 7 deletions

View File

@ -140,7 +140,7 @@ class CfgVehicles {
displayName = QGVAR(fuelNozzle);
scope = 1;
scopeCurator = 1;
model = PATHTOF(models\nozzle.p3d);
model = PATHTOF(data\nozzle.p3d);
};
class All;

Binary file not shown.

View File

@ -7,7 +7,7 @@ specularPower = 100;
PixelShaderID = "Super";
VertexShaderID = "Super";
class Stage1 {
texture = "z\ace\addons\refuel\models\nozzle_nohq.paa";
texture = "z\ace\addons\refuel\data\nozzle_nohq.paa";
uvSource = "tex";
class uvTransform {
aside[] = {1,0,0};
@ -37,7 +37,7 @@ class Stage3 {
};
};
class Stage4 {
texture = "z\ace\addons\refuel\models\nozzle_as.paa";
texture = "z\ace\addons\refuel\data\nozzle_as.paa";
uvSource = "tex";
class uvTransform {
aside[] = {1,0,0};
@ -47,7 +47,7 @@ class Stage4 {
};
};
class Stage5 {
texture = "z\ace\addons\refuel\models\nozzle_smdi.paa";
texture = "z\ace\addons\refuel\data\nozzle_smdi.paa";
uvSource = "tex";
class uvTransform {
aside[] = {1,0,0};

View File

Before

Width:  |  Height:  |  Size: 3.0 MiB

After

Width:  |  Height:  |  Size: 3.0 MiB

View File

Before

Width:  |  Height:  |  Size: 3.0 MiB

After

Width:  |  Height:  |  Size: 3.0 MiB

View File

Before

Width:  |  Height:  |  Size: 3.0 MiB

After

Width:  |  Height:  |  Size: 3.0 MiB

View File

Before

Width:  |  Height:  |  Size: 3.0 MiB

After

Width:  |  Height:  |  Size: 3.0 MiB

View File

@ -98,18 +98,21 @@ _endPosTestOffset set [2, (_startingOffset select 2)];
_rr params ["_x2", "_y2", ""];
private _c1 = _ll vectorCos _endPosTestOffset;
private _c2 = _ll vectorCos [_x1, _y2, 0];
private _cn = (_ll vectorCrossProduct [0, 0, 1]) vectorCos _endPosTestOffset;
private _dirAndUp = [[1, 0, 0],[0, 0, 1]];
if (_c1 > _c2 && (_x < 0)) then {
if (_c1 > _c2 && (_cn > 0)) then {
_dirAndUp = [[1, 0, 0.8],[0, 0, 1]];
} else {
_c1 = [_x1, _y2, 0] vectorCos _endPosTestOffset;
_c2 = [_x1, _y2, 0] vectorCos _rr;
if (_c1 > _c2 && (_y > 0)) then {
_cn = ([_x1, _y2, 0] vectorCrossProduct [0, 0, 1]) vectorCos _endPosTestOffset;
if (_c1 > _c2 && (_cn > 0)) then {
_dirAndUp = [[0, -1, 0.8],[0, 0, 1]];
} else {
_c1 = _rr vectorCos _endPosTestOffset;
_c2 = _rr vectorCos [_x2, _y1, 0];
if (_c1 > _c2 && (_x > 0)) then {
_cn = (_rr vectorCrossProduct [0, 0, 1]) vectorCos _endPosTestOffset;
if (_c1 > _c2 && (_cn > 0)) then {
_dirAndUp = [[-1, 0, 0.8],[0, 0, 1]];
} else {
_dirAndUp = [[0, 1, 0.8],[0, 0, 1]];

Binary file not shown.