mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Test model
This commit is contained in:
parent
3a9fb5cc2a
commit
e23d59c2d3
@ -1,6 +1,5 @@
|
|||||||
#c:\arma\arma3\addons\static_f_gamma.pbo C:\dev\ace3\extensions\tests\AT_01.txt
|
#c:\arma\arma3\addons\static_f_gamma.pbo C:\dev\ace3\extensions\tests\AT_01.txt
|
||||||
init:
|
init:
|
||||||
debug_render:
|
debug_render:
|
||||||
register_vehicle:\A3\Static_F_gamma\AT_01\AT_01.p3d,0,4050.18;3802.55;5.075
|
register_vehicle:\z\ace\test\anim_test.p3d,0,4050.18;3802.55;5.075
|
||||||
#set_animation_state:0, MainTurret, 0, MainGun, 0, MainTurret_destructX, 0, MainTurret_destructY, 0, MainTurret_destructZ, 0, MainGun_destructX, 0, MainGun_destructY, 0, MainGun_destructZ, 0, magazine_destruct, 0, ammo_belt_destruct, 0, bolt_destruct, 0, charging_handle_destruct, 0, damagehideVez_destruct, 0, damagehideHlaven_destruct, 0, damagehideRecoil_destruct, 0, Turret_shake, 0, Turret_shake_aside, 0, Magazine_hide, 0, Ammo_belt_hide, 0, muzzleFlash, 0, AddAutonomous_unhide, 0, bullet001_reload_hide, 0, bullet002_reload_hide, 0, bullet003_reload_hide, 0, bullet004_reload_hide, 0, bullet005_reload_hide, 0, bullet006_reload_hide, 0, bullet007_reload_hide, 0, bullet008_reload_hide, 0
|
set_animation_state:0, turret, 2.00, rotation_drum, 2, barrel_recoil, 2
|
||||||
set_animation_state:0, MainTurret, -0, MainGun, 1, MainTurret_destructX, 0, MainTurret_destructY, 0, MainTurret_destructZ, 0, MainGun_destructX, 0, MainGun_destructY, 0, MainGun_destructZ, 0, magazine_destruct, 0, ammo_belt_destruct, 0, bolt_destruct, 0, charging_handle_destruct, 0, damagehideVez_destruct, 0, damagehideHlaven_destruct, 0, damagehideRecoil_destruct, 0, Turret_shake, 0, Turret_shake_aside, 0, Magazine_hide, 0, Ammo_belt_hide, 0, muzzleFlash, 0, AddAutonomous_unhide, 0, bullet001_reload_hide, 0, bullet002_reload_hide, 0, bullet003_reload_hide, 0, bullet004_reload_hide, 0, bullet005_reload_hide, 0, bullet006_reload_hide, 0, bullet007_reload_hide, 0, bullet008_reload_hide, 0
|
|
6
extensions/tests/anim_test/$PBOPREFIX$.txt
Normal file
6
extensions/tests/anim_test/$PBOPREFIX$.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
///////<HEADER>///////
|
||||||
|
prefix=z\ace\test
|
||||||
|
Mikero=DePbo.dll
|
||||||
|
Pbo Type is: Arma Addon
|
||||||
|
Sha: 'B57F52A263D29E93AC869A50E7058065B93F97D5'
|
||||||
|
//////</HEADER>//////
|
BIN
extensions/tests/anim_test/anim_test.p3d
Normal file
BIN
extensions/tests/anim_test/anim_test.p3d
Normal file
Binary file not shown.
61
extensions/tests/anim_test/config.cpp
Normal file
61
extensions/tests/anim_test/config.cpp
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
//config.cpp
|
||||||
|
|
||||||
|
class CfgPatches
|
||||||
|
{
|
||||||
|
class nou_sys_snow
|
||||||
|
{
|
||||||
|
units[] = {};
|
||||||
|
weapons[] = {};
|
||||||
|
requiredVersion = 0.1;
|
||||||
|
requiredAddons[] = {"A3_Data_F"};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
class CfgVehicles {
|
||||||
|
class House;
|
||||||
|
class nou_test_model: House
|
||||||
|
{
|
||||||
|
author = "Nou";
|
||||||
|
_generalMacro = "nou_snow_2x2";
|
||||||
|
scope = 2;
|
||||||
|
model = "\x\nou\addons\test_model\test.p3d";
|
||||||
|
vehicleClass = "Structures";
|
||||||
|
cost = 50000;
|
||||||
|
replaceDamagedLimit = 0.99999;
|
||||||
|
class AnimationSources {
|
||||||
|
class box1
|
||||||
|
{
|
||||||
|
source = "user";
|
||||||
|
animPeriod = 0.0001;
|
||||||
|
initPhase = 0;
|
||||||
|
minValue = 0;
|
||||||
|
maxValue = 3;
|
||||||
|
};
|
||||||
|
class box2
|
||||||
|
{
|
||||||
|
source = "user";
|
||||||
|
animPeriod = 0.0001;
|
||||||
|
initPhase = 0;
|
||||||
|
minValue = -1;
|
||||||
|
maxValue = 1;
|
||||||
|
};
|
||||||
|
class box3_translate
|
||||||
|
{
|
||||||
|
source = "user";
|
||||||
|
animPeriod = 0.0001;
|
||||||
|
initPhase = 0;
|
||||||
|
minValue = -10;
|
||||||
|
maxValue = 10;
|
||||||
|
};
|
||||||
|
class box3_rotate
|
||||||
|
{
|
||||||
|
source = "user";
|
||||||
|
animPeriod = 0.0001;
|
||||||
|
initPhase = 0;
|
||||||
|
minValue = 0;
|
||||||
|
maxValue = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
83
extensions/tests/anim_test/model.cfg
Normal file
83
extensions/tests/anim_test/model.cfg
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
//model.cfg
|
||||||
|
|
||||||
|
class CfgSkeletons
|
||||||
|
{
|
||||||
|
class Default
|
||||||
|
{
|
||||||
|
isDiscrete = 1;
|
||||||
|
skeletonInherit = "";
|
||||||
|
skeletonBones[] = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
class test_anim_skeleton : Default {
|
||||||
|
skeletonBones[] =
|
||||||
|
{
|
||||||
|
"pedestal","",
|
||||||
|
"turret","pedestal",
|
||||||
|
"rotation_drum","turret",
|
||||||
|
"barrel","rotation_drum"
|
||||||
|
};
|
||||||
|
pivotsModel = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
class CfgModels
|
||||||
|
{
|
||||||
|
class Default
|
||||||
|
{
|
||||||
|
sectionsInherit = "";
|
||||||
|
sections[] = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
class anim_test : Default {
|
||||||
|
sectionsInherit = "";
|
||||||
|
sections[] =
|
||||||
|
{
|
||||||
|
};
|
||||||
|
skeletonName = "test_anim_skeleton";
|
||||||
|
|
||||||
|
class Animations
|
||||||
|
{
|
||||||
|
class turret
|
||||||
|
{
|
||||||
|
type = "rotationY";
|
||||||
|
axis = "turret_rotation_axis";
|
||||||
|
source = "turret";
|
||||||
|
selection = "turret";
|
||||||
|
animPeriod = 0.0001;
|
||||||
|
minValue = "rad -360";
|
||||||
|
maxValue = "rad 360";
|
||||||
|
angle0 = "rad -360";
|
||||||
|
angle1 = "rad 360";
|
||||||
|
sourceAddress = "loop";
|
||||||
|
};
|
||||||
|
|
||||||
|
class rotation_drum {
|
||||||
|
type = "rotationX";
|
||||||
|
source = "rotation_drum";
|
||||||
|
selection = "rotation_drum";
|
||||||
|
axis = "barrel_elevation_axis";
|
||||||
|
animPeriod = 0.0001;
|
||||||
|
minValue = "rad -360";
|
||||||
|
maxValue = "rad 360";
|
||||||
|
angle0 = "rad -360";
|
||||||
|
angle1 = "rad 360";
|
||||||
|
sourceAddress = "loop";
|
||||||
|
};
|
||||||
|
class barrel_recoil
|
||||||
|
{
|
||||||
|
type = "translation";
|
||||||
|
source = "barrel_recoil";
|
||||||
|
selection = "barrel";
|
||||||
|
axis = "barrel_recoil_axis";
|
||||||
|
offset0 = 0;
|
||||||
|
offset1 = -2;
|
||||||
|
animPeriod = 0.0001;
|
||||||
|
minValue = -1;
|
||||||
|
maxValue = 1;
|
||||||
|
sourceAddress = "mirror";
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user