SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-06-09, 11:16 AM   #1
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
wolf_howl15 State Machine ... some thoughts ...

I have made separated thread ... ... as have asked...
*** После моих тестов сделанных год назад (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.
Anvart is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.