From 610bb7a1df1e292cd522c98117cfcc5a049847fc Mon Sep 17 00:00:00 2001 From: commy2 Date: Sun, 30 Aug 2015 13:10:25 +0200 Subject: [PATCH] better animation for spotting scope, fix #1638 --- addons/spottingscope/CfgMoves.hpp | 28 ++++++++++++++++++++ addons/spottingscope/CfgVehicles.hpp | 2 +- addons/spottingscope/config.cpp | 5 ++-- addons/spottingscope/data/spottingscope.p3d | Bin 1583477 -> 1585552 bytes 4 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 addons/spottingscope/CfgMoves.hpp diff --git a/addons/spottingscope/CfgMoves.hpp b/addons/spottingscope/CfgMoves.hpp new file mode 100644 index 0000000000..c7436801ee --- /dev/null +++ b/addons/spottingscope/CfgMoves.hpp @@ -0,0 +1,28 @@ + +class CfgMovesBasic { + class DefaultDie; + + class ManActions { + ACE_SpottingScope = "ACE_SpottingScope"; + }; +}; + +class CfgMovesMaleSdr: CfgMovesBasic { + class States { + class ACE_KIA_SpottingScope: DefaultDie { + actions = "DeadActions"; + file = "\A3\anims_f\Data\Anim\Sdr\dth\pne\stp\ras\Rfl\AdthPpneMstpSrasWrflDnon_1"; + speed = 1; + looped = "false"; + terminal = 1; + soundEnabled = 0; + connectTo[] = {"Unconscious",0.1}; + }; + + class Crew; + class ACE_SpottingScope: Crew { + file = "\A3\anims_f\Data\Anim\Sdr\Mov\pne\stp\non\non\AmovPpneMstpSnonWnonDnon"; + interpolateTo[] = {"ACE_KIA_SpottingScope",1}; + }; + }; +}; diff --git a/addons/spottingscope/CfgVehicles.hpp b/addons/spottingscope/CfgVehicles.hpp index b0b8bf9c77..2c8159fbb1 100644 --- a/addons/spottingscope/CfgVehicles.hpp +++ b/addons/spottingscope/CfgVehicles.hpp @@ -77,7 +77,7 @@ class CfgVehicles { gunnerOpticsEffect[] = {"OpticsCHAbera1","OpticsBlur2"}; gunnerOutOpticsShowCursor = 0; gunnerOpticsShowCursor = 0; - gunnerAction = "gunner_static_low01"; + gunnerAction = "ACE_SpottingScope"; gunnerGetInAction = "GetInLow"; gunnerGetOutAction = "GetOutLow"; gunnerForceOptics = 0; diff --git a/addons/spottingscope/config.cpp b/addons/spottingscope/config.cpp index a615e5da79..157e430868 100644 --- a/addons/spottingscope/config.cpp +++ b/addons/spottingscope/config.cpp @@ -6,11 +6,12 @@ class CfgPatches { weapons[] = {"ACE_SpottingScope"}; requiredVersion = REQUIRED_VERSION; requiredAddons[] = {"ace_apl", "ace_interaction"}; - author[] = {"Rocko", "Scubaman3D", "Ruthberg"}; + author[] = {"Rocko", "Scubaman3D", "Ruthberg", "commy2"}; VERSION_CONFIG; }; }; #include "CfgEventHandlers.hpp" #include "CfgVehicles.hpp" -#include "CfgWeapons.hpp" \ No newline at end of file +#include "CfgWeapons.hpp" +#include "CfgMoves.hpp" diff --git a/addons/spottingscope/data/spottingscope.p3d b/addons/spottingscope/data/spottingscope.p3d index c4e0363dcf124ff1181bf332bfe028297e309950..fba9d66b913cf18b1cfef9b7e191808ce19c91d3 100644 GIT binary patch delta 690 zcmex*DPh9ngbg2TRldxeW6!|Az_=i|-{wYYt$p7ND1X{+n=Rgr`yVxPI&8OH#kC<( zGObU;X6vtdd(-MK)+p@eyYt)c&S%_ycRtg~4_wN@sX3|1C8;UO+aJtee#kt%;fFB$ z^aopn`?t+xUc)?HUxtru`!;UALlWD4Rx)d@Aa66%0ZXOE|vu>B0$9D1- zaYk}ivgfGdF>=BJ_U#iEaEP8G&bX6#oLhwO7&onvbNjSLu4WD5j3W@{oA1s~y)=_ss7#9Th+uTU4wf9ef@~7>#+2Y-}KW^b0`|UZKxHcq8 zruJ#rZ2eVlZ(9Au8in0_cYgcb`Hb7|&SzTrVf#a2zGD*Gt2Z)ht|89!6R|8g9=J_! z_g%&U#H`zWm$99^MVygVjqEw5c2>rFA(zqF+UIs0I?ttgXD#QSOkbgfmm$&nrGq- zCM--$3=G>1q$PGU`w|nqpy^