mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
add spare wheel and spare track objects
This commit is contained in:
parent
d07e74b118
commit
c442703a13
6
addons/repair/CfgVehicleClasses.hpp
Normal file
6
addons/repair/CfgVehicleClasses.hpp
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
class CfgVehicleClasses {
|
||||
class GVAR(items) {
|
||||
displayName = "ACE REPAIR ITEMS";
|
||||
};
|
||||
};
|
@ -3,7 +3,7 @@
|
||||
class ACE_Actions { \
|
||||
class ACE_MainActions { \
|
||||
class GVAR(Repair) { \
|
||||
displayName = "$STR_AGM_Repair_Repair"; \
|
||||
displayName = "$STR_ACE_Repair_Repair"; \
|
||||
condition = QUOTE([ARR_2(_player, _target)] call DFUNC(actionCanRepair)); \
|
||||
statement = QUOTE([ARR_2(_player, _target)] call DFUNC(actionRepair);); \
|
||||
showDisabled = 0; \
|
||||
@ -37,4 +37,28 @@ class CfgVehicles {
|
||||
class Ship_F: Ship {
|
||||
MACRO_REPAIRVEHICLE
|
||||
};
|
||||
|
||||
class ThingX;
|
||||
class ACE_RepairItem_Base: ThingX {
|
||||
icon = "iconObject_circle";
|
||||
mapSize = 0.7;
|
||||
accuracy = 0.2;
|
||||
vehicleClass = QGVAR(items);
|
||||
destrType = "DesturctNo";
|
||||
};
|
||||
|
||||
class ACE_Track: ACE_RepairItem_Base {
|
||||
author = "Hawkins";
|
||||
scope = 2;
|
||||
model = QUOTE(PATHTOF(ace_track.p3d));
|
||||
displayName = "$STR_ACE_Repair_SpareTrack";
|
||||
};
|
||||
|
||||
class ACE_Wheel: ACE_RepairItem_Base {
|
||||
author = "Hawkins";
|
||||
scope = 2;
|
||||
model = QUOTE(PATHTOF(ace_wheel.p3d));
|
||||
displayName = "$STR_ACE_Repair_SpareWheel";
|
||||
picture = QUOTE(PATHTOF(ui\tire_ca.paa));
|
||||
};
|
||||
};
|
||||
|
BIN
addons/repair/ace_track.p3d
Normal file
BIN
addons/repair/ace_track.p3d
Normal file
Binary file not shown.
BIN
addons/repair/ace_wheel.p3d
Normal file
BIN
addons/repair/ace_wheel.p3d
Normal file
Binary file not shown.
@ -13,6 +13,8 @@ class CfgPatches {
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
|
||||
#include "CfgVehicleClasses.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
|
||||
class ACE_Settings {
|
||||
|
BIN
addons/repair/data/default_as.paa
Normal file
BIN
addons/repair/data/default_as.paa
Normal file
Binary file not shown.
BIN
addons/repair/data/default_nohq.paa
Normal file
BIN
addons/repair/data/default_nohq.paa
Normal file
Binary file not shown.
BIN
addons/repair/data/default_smdi.paa
Normal file
BIN
addons/repair/data/default_smdi.paa
Normal file
Binary file not shown.
92
addons/repair/data/track.rvmat
Normal file
92
addons/repair/data/track.rvmat
Normal file
@ -0,0 +1,92 @@
|
||||
ambient[]={1,1,1,1};
|
||||
diffuse[]={1,1,1,1};
|
||||
forcedDiffuse[]={0,0,0,0};
|
||||
emmisive[]={0,0,0,1};
|
||||
specular[]={0.0099999998,0.0099999998,0.0099999998,1};
|
||||
specularPower=500;
|
||||
PixelShaderID="Super";
|
||||
VertexShaderID="Super";
|
||||
class Stage1
|
||||
{
|
||||
texture="C:\dev\ace\addons\repair\data\default_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[]={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="C:\dev\ace\addons\repair\data\default_as.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,1};
|
||||
pos[]={0,0,1};
|
||||
};
|
||||
};
|
||||
class Stage5
|
||||
{
|
||||
texture="C:\dev\ace\addons\repair\data\default_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(4.7,1.2)";
|
||||
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";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,1};
|
||||
pos[]={0,0,0};
|
||||
};
|
||||
};
|
BIN
addons/repair/data/track_co.paa
Normal file
BIN
addons/repair/data/track_co.paa
Normal file
Binary file not shown.
92
addons/repair/data/wheel.rvmat
Normal file
92
addons/repair/data/wheel.rvmat
Normal file
@ -0,0 +1,92 @@
|
||||
ambient[]={1,1,1,1};
|
||||
diffuse[]={1,1,1,1};
|
||||
forcedDiffuse[]={0,0,0,0};
|
||||
emmisive[]={0,0,0,1};
|
||||
specular[]={0.0099999998,0.0099999998,0.0099999998,1};
|
||||
specularPower=500;
|
||||
PixelShaderID="Super";
|
||||
VertexShaderID="Super";
|
||||
class Stage1
|
||||
{
|
||||
texture="C:\dev\ace\addons\repair\data\wheel_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[]={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="C:\dev\ace\addons\repair\data\default_as.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,1};
|
||||
pos[]={0,0,1};
|
||||
};
|
||||
};
|
||||
class Stage5
|
||||
{
|
||||
texture="C:\dev\ace\addons\repair\data\default_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(4.7,1.2)";
|
||||
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";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,1};
|
||||
pos[]={0,0,0};
|
||||
};
|
||||
};
|
BIN
addons/repair/data/wheel_co.paa
Normal file
BIN
addons/repair/data/wheel_co.paa
Normal file
Binary file not shown.
BIN
addons/repair/data/wheel_nohq.paa
Normal file
BIN
addons/repair/data/wheel_nohq.paa
Normal file
Binary file not shown.
@ -2,7 +2,32 @@
|
||||
<!-- Edited with tabler - 2014-12-21 -->
|
||||
<Project name="ACE">
|
||||
<Package name="repair">
|
||||
<Key ID="STR_AGM_Repair_Repair">
|
||||
<Key ID="STR_ACE_Repair_SpareTrack">
|
||||
<English>Spare Track</English>
|
||||
<German>Ersatzkette</German>
|
||||
<Spanish>Cadena de repuesto</Spanish>
|
||||
<French>Chenille de réserve</French>
|
||||
<Polish>Zapasowa gąsienica</Polish>
|
||||
<Czech>Náhradní pásy</Czech>
|
||||
<Portuguese>Lagarta Reserva</Portuguese>
|
||||
<Italian>Cingolo di scorta</Italian>
|
||||
<Hungarian>Pót lánctalp</Hungarian>
|
||||
<Russian>Запасная гусеница</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_SpareWheel">
|
||||
<English>Spare Wheel</English>
|
||||
<German>Ersatzreifen</German>
|
||||
<Spanish>Rueda de repuesto</Spanish>
|
||||
<French>Roue de secours</French>
|
||||
<Polish>Zapasowe koło</Polish>
|
||||
<Czech>Náhradní Kolo</Czech>
|
||||
<Portuguese>Roda Reserva</Portuguese>
|
||||
<Italian>Ruota di scorta</Italian>
|
||||
<Hungarian>Pótkerék</Hungarian>
|
||||
<Russian>Запасное колесо</Russian>
|
||||
</Key>
|
||||
|
||||
<Key ID="STR_ACE_Repair_Repair">
|
||||
<English>Repair >></English>
|
||||
<German>Reparieren >></German>
|
||||
<Spanish>Reparación >></Spanish>
|
||||
|
BIN
addons/repair/ui/tire_ca.paa
Normal file
BIN
addons/repair/ui/tire_ca.paa
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user