Medical Treatment - Add new Grave model (#9444)

* Added Grave model, swapped Grave classnames

* Change p3d name of Grave model

* Update addons/medical_treatment/CfgVehicles.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Updated grave model, textures, classname.

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
Marstruc 2023-10-01 13:48:31 +01:00 committed by GitHub
parent dbf288851e
commit a8bd08136e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 97 additions and 4 deletions

View File

@ -33,6 +33,15 @@ class CfgVehicles {
};
};
// Grave vehicle
class Land_Grave_dirt_F;
class ACE_Grave: Land_Grave_dirt_F {
model = QPATHTOF(data\ACE_grave.p3d);
hiddenSelections[] = {"camo"};
hiddenSelectionsTextures[] = {QPATHTOF(data\Grave_co.paa)};
};
// Medical litter classes
class Thing;
class ACE_MedicalLitterBase: Thing {

View File

@ -80,7 +80,7 @@ if (["ace_trenches"] call EFUNC(common,isModLoaded)) then {
[1.05, 0.02, 0.3] //position in centre of cross
] call EFUNC(interact_menu,createAction);
["Land_Grave_dirt_F", 0, [], _checkHeadstoneAction] call EFUNC(interact_menu,addActionToClass);
["ACE_Grave", 0, [], _checkHeadstoneAction] call EFUNC(interact_menu,addActionToClass);
};
if (isServer) then {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,82 @@
class StageTI
{
texture="a3\data_f\default_ti_ca.paa";
};
ambient[]={1,1,1,1};
diffuse[]={1,1,1,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={0.3,0.3,0.3,1};
specularPower=10;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1
{
texture="z\ace\addons\medical_treatment\data\grave_nohq.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
uvSource="tex";
class uvTransform
{
aside[]={0,9,0};
up[]={4.5,0,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0,0,0,0)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage4
{
texture="z\ace\addons\medical_treatment\data\grave_as.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage5
{
texture="z\ace\addons\medical_treatment\data\grave_smdi.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage6
{
texture="#(ai,64,64,1)fresnel(3.21,4.01)";
uvSource="none";
};
class Stage7
{
texture="a3\data_f\env_land_co.paa";
uvSource="none";
};

View File

@ -58,6 +58,8 @@ class CfgModels {
class IVBag_500ml: IVBagBase {};
class IVBag_1000ml: IVBagBase {};
class ACE_grave: IVBagBase {};
class littergeneric: Default {};
class littergeneric_adenosine: Default {};
class littergeneric_atropine: Default {};

View File

@ -23,9 +23,9 @@ if ((alive _patient) && {GVAR(allowGraveDigging) < 2}) exitWith {
[LSTRING(bodybagWhileStillAlive)] call EFUNC(common,displayTextStructured);
};
private _graveClassname = missionNameSpace getVariable [QGVAR(graveClassname), "Land_Grave_dirt_F"];
// Land_Grave_dirt_F needs to be rotated 90 degrees to line up with the body
private _graveRotation = missionNameSpace getVariable [QGVAR(graveRotation), 90];
private _graveClassname = missionNameSpace getVariable [QGVAR(graveClassname), "ACE_Grave"];
private _graveRotation = missionNameSpace getVariable [QGVAR(graveRotation), 0];
[_this, _graveClassname, [0,0,0], _graveRotation] call FUNC(placeInBodyBagOrGrave);