mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
dbf288851e
commit
a8bd08136e
@ -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 {
|
||||
|
@ -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 {
|
||||
|
BIN
addons/medical_treatment/data/ACE_grave.p3d
Normal file
BIN
addons/medical_treatment/data/ACE_grave.p3d
Normal file
Binary file not shown.
BIN
addons/medical_treatment/data/Grave_as.paa
Normal file
BIN
addons/medical_treatment/data/Grave_as.paa
Normal file
Binary file not shown.
BIN
addons/medical_treatment/data/Grave_co.paa
Normal file
BIN
addons/medical_treatment/data/Grave_co.paa
Normal file
Binary file not shown.
BIN
addons/medical_treatment/data/Grave_nohq.paa
Normal file
BIN
addons/medical_treatment/data/Grave_nohq.paa
Normal file
Binary file not shown.
BIN
addons/medical_treatment/data/Grave_smdi.paa
Normal file
BIN
addons/medical_treatment/data/Grave_smdi.paa
Normal file
Binary file not shown.
82
addons/medical_treatment/data/grave.rvmat
Normal file
82
addons/medical_treatment/data/grave.rvmat
Normal 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";
|
||||
};
|
@ -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 {};
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user