Added shadow LOD

This commit is contained in:
Tklama
2024-04-15 23:19:40 +02:00
parent 962476766d
commit c32caf78d9
41 changed files with 227 additions and 10 deletions

View File

@@ -22,4 +22,39 @@ class CfgAnimationSourceSounds {
trigger = "direction";
};
};
class close {
class close_1 {
loop = 0;
terminate = 0;
sound0[] = {QPATHTOF(TBD_M119\sounds\close.ogg), 3, 1, 20};
sound1[] = {QPATHTOF(TBD_M119\sounds\close.ogg), 3, 1, 20};
sound[] = {"sound0", 1};
trigger = "direction * (phase factor [0.01,0.02])";
};
class close_2 {
loop = 0;
terminate = 0;
sound0[] = {QPATHTOF(TBD_M119\sounds\close.ogg), 3, 1, 20};
sound1[] = {QPATHTOF(TBD_M119\sounds\close.ogg), 3, 1, 20};
sound[] = {"sound0", 1};
trigger = "(1 - direction) * (phase factor [0.1,0.09])";
};
};
class reload {
class reload_1 {
loop = 0;
terminate = 1;
sound0[] = {QPATHTOF(TBD_M119\sounds\reload.ogg), 5, 1, 20};
sound1[] = {QPATHTOF(TBD_M119\sounds\reload.ogg), 5, 1, 20};
sound[] = {"sound0", 1};
trigger = "direction";
};
};
};

View File

@@ -128,6 +128,11 @@ class CfgVehicles {
initPhase = 0;
animPeriod = 1;
};
class trigger_source {
source = "user";
initPhase = 0;
animPeriod = 1;
};
class recoil_rest_source {
source = "user";
initPhase = 0;
@@ -138,15 +143,29 @@ class CfgVehicles {
initPhase = 0;
animPeriod = 1;
};
class open_breach_source {
source = "user";
initPhase = 0;
animPeriod = 1;
sound = "close";
soundPosition = "konec_hlavne";
};
class close_breach_source {
source = "user";
initPhase = 1;
animPeriod = 1;
sound = "close";
soundPosition = "konec_hlavne";
};
class handle_breach_source {
source = "user";
initPhase = 0;
animPeriod = 1;
};
class hydraulics_source {
source = "user";
@@ -163,6 +182,9 @@ class CfgVehicles {
source = "user";
initPhase = 0;
animPeriod = 0.5;
sound = "reload";
soundPosition = "konec_hlavne";
};
class magazine_hide_source {

View File

@@ -30,7 +30,7 @@ class CfgWeapons {
{QPATHTOF(TBD_M119\sounds\reload.ogg), 3, 1, 50};
reloadTime=0.35;
artilleryDispersion=1.9;
artilleryCharge = 1;
artilleryCharge = 0.14;
aiRateOfFire=1;
aiRateOfFireDistance=10;
minRange=0;
@@ -40,5 +40,34 @@ class CfgWeapons {
maxRange=2;
maxRangeProbab=0.0099999998;
};
class Single2: Single1 {
displayName="105mm howitzer charge 2";
artilleryCharge = 0.28;
};
class Single3: Single1 {
displayName="105mm howitzer charge 3";
artilleryCharge = 0.42;
};
class Single4: Single1 {
displayName="105mm howitzer charge 4";
artilleryCharge = 0.56;
};
class Single5: Single1 {
displayName="105mm howitzer charge 5";
artilleryCharge = 0.70;
};
class Single6: Single1 {
displayName="105mm howitzer charge 6";
artilleryCharge = 0.84;
};
class Single7: Single1 {
displayName="105mm howitzer charge 7";
artilleryCharge = 1;
};
};
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -12,7 +12,7 @@ diffuse[] = { 0.5, 0.5, 0.5, 0.5 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 100;
specularPower = 30;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -12,7 +12,7 @@ diffuse[] = { 0.5, 0.5, 0.5, 0.5 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 100;
specularPower = 30;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -12,7 +12,7 @@ diffuse[] = { 0.5, 0.5, 0.5, 0.5 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 50;
specularPower = 30;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -0,0 +1,104 @@
////////////////////////////////////////////////////////////////////
//DeRap: Produced from mikero's Dos Tools Dll version 5.52
//'now' is Fri Feb 09 09:45:35 2018 : 'file' last modified on Fri Feb 09 09:45:35 2018
//http://dev-heaven.net/projects/list_files/mikero-pbodll
////////////////////////////////////////////////////////////////////
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.5, 0.5, 0.5, 0.5 };
diffuse[] = { 0.5, 0.5, 0.5, 0.5 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
PixelShaderID = "Super";
VertexShaderID = "Super";
class Stage1
{
texture="x\TBD_M119\addons\M119\tbd_m119\data\scope_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,0.5,DT)";
uvSource = "tex";
class uvTransform
{
aside[] = {1,0,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="x\TBD_M119\addons\M119\tbd_m119\data\scope_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="x\TBD_M119\addons\M119\tbd_m119\data\scope_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(1.5,0.45)";
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 not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -12,7 +12,7 @@ diffuse[] = { 0.5, 0.5, 0.5, 0.5 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 100;
specularPower = 30;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -12,7 +12,7 @@ diffuse[] = { 0.5, 0.5, 0.5, 0.5 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 100;
specularPower = 30;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -12,7 +12,7 @@ diffuse[] = { 0.5, 0.5, 0.5, 0.5 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 100;
specularPower = 30;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -12,7 +12,7 @@ diffuse[] = { 0.5, 0.5, 0.5, 0.5 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 100;
specularPower = 30;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -23,6 +23,7 @@ class CfgSkeletons
"small_wheel", "otocvez",
"handle_vertical", "otocvez",
"barrel", "otochlaven",
"trigger", "otochlaven",
"magazine_translation_bone", "otochlaven",
"magazine", "magazine_translation_bone",
"hydraulics", "otocvez",
@@ -113,6 +114,18 @@ class Animations
memory = 1;
};
class trigger_rotation {
type = "rotation";
source = "trigger_rotation_source";
selection = "trigger";
axis = "axis_trigger";
minValue = "0";
maxValue = "1";
angle0 = "rad 0";
angle1 = "rad +30";
memory = 1;
};
class rotation_handle_vertical {
type = "rotation";
source = "mainGun";
@@ -175,6 +188,20 @@ class Animations
offset1 = "-2";
animPeriod = 10;
};
class close_breach
{
type="translation";
source="close_breach_source";
selection="breach";
axis="axis_breach";
minValue=0.0;
maxValue=20;
offset0 = "0.0";
offset1 = "-2";
animPeriod = 10;
};
class handle_breach
{
type="rotation";
@@ -197,8 +224,8 @@ class Animations
axis="axis_hydraulics";
minValue = "rad -309";
maxValue = "rad +309";
angle0 = "rad -360";
angle1 = "rad +360";
angle0 = "rad +360";
angle1 = "rad -360";
memory = 1;
};

Binary file not shown.