![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]()
I have made separated thread ...
![]() *** После моих тестов сделанных год назад (in 2008 use HexEditor) и полного неумения изъясняться по английски я всё таки решился и S3D by skwasjer поможет мне: I offer to your attention the method of management of any animations of 3D objects using a system of behavior control of the crew of the human submarine. Also, I'm offering the sample of the code for implementation of my method for creating mods... and I'm publishing some additional crew commands that are not in Command_ *.cfg, but these crew commands are very usefull for use in my method. It is especially easy to make for the looped (and not looped) animations using Crew Commands... For example, DF antenna - raising/lowering and rotation, Flag on Turm - appearance/play/disappearance, fan rotation - play/stop, CR-RR hatch open/close, animation of the diesel engine - play/stop and so on for human submarine... ... Attention, this material is for skilled modders... ************************************************** ****************** First, additional crew commands: Maneuver_officer_end Navigation_officer_end Weapons_officer_end Watch_officer_end Radio_operator_end Sonar_operator_end Example in Command_*.cfg: [Cmd450] Name=Radio_operator Ctxt=1 Key0=0x56,Cs,"Shift+V" GoBack=Radar_view ... [Cmd470] ; additional crew command Name=Radio_operator_end Ctxt=1 Key0=0x56,Cc,"Ctrl+V" ************************************************** ****** Now I'll show you a picture with the sequence of the actions and the code for the mod DF antenna raising / lowering... in more detail with the code, you can acquaint in the DFant_subFlag mod or in other recent mods. Also edit Command_*.cfg file: [Cmd450] Name=Radio_operator Ctxt=1 Key0=0x56,Cs,"Shift+V" GoBack=Radar_view ... [Cmd470] ; additional crew command Name=Radio_operator_end Ctxt=1 Key0=0x56,Cc,"Ctrl+V" ************************************************** ******************** DFa_UpDnRotSMC_1.1, DFa_UpDnRot_Flags, FM30_UpDownSMC mods are outdated and I have no them, so I recommend to study detailed code in the recent mods - FM30_UpDown_final, DFant_subFlag_2010, GWX_DFa-Flag & Pens_2010, LSH3-5_DFa-Flag & Penns_2010... ***************************************** P.S. Attention. If you use this method for animations managment in your published mods, I remind don't forget to give corresponding credits to author Anvart with the correct formulation of the method.
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 04-30-18 at 08:10 AM. |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|