Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vial PR v2 #477

Open
wants to merge 20 commits into
base: dev-Tomcat
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
583 changes: 507 additions & 76 deletions addons/pharma/CfgVehicles.hpp

Large diffs are not rendered by default.

315 changes: 297 additions & 18 deletions addons/pharma/CfgWeapons.hpp

Large diffs are not rendered by default.

144 changes: 79 additions & 65 deletions addons/pharma/config.cpp
Original file line number Diff line number Diff line change
@@ -1,65 +1,79 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
requiredVersion = REQUIRED_VERSION;
units[] = {
"kat_PainkillerItem",
"kat_X_AEDItem"
};
weapons[] = {
"kat_Painkiller",
"kat_PainkillerItem",
"kat_IV_16",
"kat_IO_FAST",
"kat_Carbonate",
"kat_CarbonateItem",
"kat_naloxone",
"kat_EACA",
"kat_TXA",
"kat_X_AED",
"kat_norepinephrine",
"kat_phenylephrine",
"kat_nitroglycerin",
"kat_amiodarone",
"kat_lidocane",
"kat_atropine",
"kat_ketamine",
"kat_fentanyl",
"kat_nalbuphine",
"kat_flumazenil",
"kat_lorazepam",
"kat_etomidate"
};
magazines[] = { };
requiredAddons[] = {
"ace_medical",
"ace_medical_ai",
"ace_medical_blood",
"ace_medical_damage",
"ace_medical_engine",
"ace_medical_feedback",
"ace_medical_gui",
"ace_medical_statemachine",
"ace_medical_status",
"ace_medical_treatment",
"ace_medical_vitals",
"ace_dogtags",
"cba_settings"
};
author = "Katalam";
authors[] = {"Katalam", "2LT.Mazinski", "MiszczuZPolski"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

#include "CfgEventHandlers.hpp"
#include "CfgSounds.hpp"
#include "CfgWeapons.hpp"
#include "CfgMagazines.hpp"
#include "CfgVehicles.hpp"
#include "CfgFunctions.hpp"
#include "ACE_Medical_Treatment.hpp"
#include "ACE_Medical_Treatment_Actions.hpp"
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
requiredVersion = REQUIRED_VERSION;
units[] = {
"kat_PainkillerItem",
"kat_X_AEDItem",
"kat_EACAItem",
"kat_TXAItem",
"kat_norepinephrineItem",
"kat_phenylephrineItem",
"kat_nitroglycerinItem",
"kat_amiodaroneItem",
"kat_lidocaineItem",
"kat_atropineItem",
"kat_ketamineItem",
"kat_fentanylItem",
"kat_nalbuphineItem",
"kat_flumazenilItem",
"kat_lorazepamItem",
"kat_etomidateItem"
};
weapons[] = {
"kat_Painkiller",
"kat_PainkillerItem",
"kat_IV_16",
"kat_IO_FAST",
"kat_Carbonate",
"kat_CarbonateItem",
"kat_naloxone",
"kat_EACA",
"kat_TXA",
"kat_X_AED",
"kat_norepinephrine",
"kat_phenylephrine",
"kat_nitroglycerin",
"kat_amiodarone",
"kat_lidocane",
"kat_atropine",
"kat_ketamine",
"kat_fentanyl",
"kat_nalbuphine",
"kat_flumazenil",
"kat_lorazepam",
"kat_etomidate"
};
magazines[] = { };
requiredAddons[] = {
"ace_medical",
"ace_medical_ai",
"ace_medical_blood",
"ace_medical_damage",
"ace_medical_engine",
"ace_medical_feedback",
"ace_medical_gui",
"ace_medical_statemachine",
"ace_medical_status",
"ace_medical_treatment",
"ace_medical_vitals",
"ace_dogtags",
"cba_settings"
};
author = "Katalam";
authors[] = {"Katalam", "2LT.Mazinski", "MiszczuZPolski"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

#include "CfgEventHandlers.hpp"
#include "CfgSounds.hpp"
#include "CfgWeapons.hpp"
#include "CfgMagazines.hpp"
#include "CfgVehicles.hpp"
#include "CfgFunctions.hpp"
#include "ACE_Medical_Treatment.hpp"
#include "ACE_Medical_Treatment_Actions.hpp"
43 changes: 43 additions & 0 deletions addons/pharma/models/vial/model.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
class CfgSkeletons
{
class Default
{
isDiscrete = 1;
skeletonInherit = "";
skeletonBones[] = {};
};
};

class CfgModels
{
class Default
{
sectionsInherit="";
sections[] = {};
skeletonName = "";
};
class vial_01: Default
{
skeletonName = "Default";
sectionsInherit = "";
sections[] =
{
"camo1",
"camo2",
"label_amiodarone",
"label_atropine",
"label_EACA",
"label_etomidate",
"label_fentanyl",
"label_flumazenil",
"label_ketamine",
"label_lidocaine",
"label_lorazepam",
"label_nalbuphine",
"label_nitroglycerin",
"label_Norepinephrine",
"label_phenylephrine",
"label_TXA"
};
};
};
86 changes: 86 additions & 0 deletions addons/pharma/models/vial/vial.rvmat
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/*
Generated on https://jdtools.dev/
Made by John Doe
*/
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.09, 0.09, 0.09, 1 };
specularPower = 35;
PixelShaderID = "Super";
VertexShaderID = "Super";
class Stage1 {
texture = "#(argb,8,8,3)color(0.5,0.5,1,1,NOHQ)";
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[] = { 1, 1, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 0 };
pos[] = { 0, 0, 0 };
};
};
class Stage3 {
texture = "#(argb,8,8,3)color(0,0,0,0,mc)";
uvSource = "tex";
class uvTransform {
aside[] = { 1, 0, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 0 };
pos[] = { 0, 0, 0 };
};
};
class Stage4 {
texture = "#(argb,8,8,3)color(1,1,1,1,AS)";
uvSource = "tex";
class uvTransform {
aside[] = { 1, 0, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 1 };
pos[] = { 0, 0, 1 };
};
};
class Stage5 {
texture = "#(argb,8,8,3)color(1,1,1,1,SMDI)";
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(1.5,1.22)";
uvSource = "tex";
class uvTransform {
aside[] = { 1, 0, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 1 };
pos[] = { 0, 0, 0 };
};
};
class Stage7 {
texture = "a3\data_f\env_land_ca.paa";
useWorldEnvMap = "true";
uvSource = "tex";
class uvTransform {
aside[] = { 1, 0, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 1 };
pos[] = { 0, 0, 0 };
};
};
class StageTI {
texture = "a3\data_f\default_vehicle_ti_ca.paa";
};
Binary file added addons/pharma/models/vial/vial_01.p3d
Binary file not shown.
Binary file added addons/pharma/models/vial/vial_ca.paa
Binary file not shown.
86 changes: 86 additions & 0 deletions addons/pharma/models/vial/vial_glass.rvmat
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/*
Generated on https://jdtools.dev/
Made by John Doe
*/
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 1, 1, 1, 1 };
specularPower = 800;
PixelShaderID = "Super";
VertexShaderID = "Super";
class Stage1 {
texture = "#(argb,8,8,3)color(0.5,0.5,1,1,NOHQ)";
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[] = { 1, 1, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 0 };
pos[] = { 0, 0, 0 };
};
};
class Stage3 {
texture = "#(argb,8,8,3)color(0,0,0,0,mc)";
uvSource = "tex";
class uvTransform {
aside[] = { 1, 0, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 0 };
pos[] = { 0, 0, 0 };
};
};
class Stage4 {
texture = "#(argb,8,8,3)color(1,1,1,1,AS)";
uvSource = "tex";
class uvTransform {
aside[] = { 1, 0, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 1 };
pos[] = { 0, 0, 1 };
};
};
class Stage5 {
texture = "#(argb,8,8,3)color(1,1,1,1,SMDI)";
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(1.1,0.4)";
uvSource = "tex";
class uvTransform {
aside[] = { 1, 0, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 1 };
pos[] = { 0, 0, 0 };
};
};
class Stage7 {
texture = "a3\data_f\env_land_ca.paa";
useWorldEnvMap = "true";
uvSource = "tex";
class uvTransform {
aside[] = { 1, 0, 0 };
up[] = { 0, 1, 0 };
dir[] = { 0, 0, 1 };
pos[] = { 0, 0, 0 };
};
};
class StageTI {
texture = "a3\data_f\default_vehicle_ti_ca.paa";
};