Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2   Go Down

Author Topic: Hooks  (Read 5684 times)

0 Members and 1 Guest are viewing this topic.

mac1

  • Modder
  • member
  • Offline Offline
  • Posts: 738
Hooks
« on: March 08, 2011, 12:08:09 PM »

Does anyone know what the following hooks do:

_ExternalRock01 <BASE> WingLMid_D0 HK

_ExternalDev01 <BASE> WingLMid_D0 HK

Cheers guys :D

The "rock" ones arent weapons hard points by any chance?
Logged

Lisek

  • Aviator Mod Team
  • Modder
  • member
  • Offline Offline
  • Posts: 334
Re: Hooks
« Reply #1 on: March 08, 2011, 12:12:00 PM »

_ExternalRockXX - rockets
_ExternalDevXX - fuel tanks, rocket rails, bomb racks etc
_ExternalBombXX - bombs

Hope that helps  :)
Logged

mac1

  • Modder
  • member
  • Offline Offline
  • Posts: 738
Re: Hooks
« Reply #2 on: March 08, 2011, 12:15:59 PM »

yes lovely thanks:D And the Clip ones?
Logged

Lisek

  • Aviator Mod Team
  • Modder
  • member
  • Offline Offline
  • Posts: 334
Re: Hooks
« Reply #3 on: March 08, 2011, 12:18:52 PM »

Allright here are the ones I know what do they do:

_Clip01 to 04 - they are responsible for plane's flight direction, best place them in propeller mesh. Those hooks must be implemented, otherwise plane won't load during the mission

_Clip05 onwards: place it in all bigger meshes, I am not really sure what do they do, but I think they are responsible for ground collision. There is a limit for them (~60), but normally it won't go above 40 per plane

_ExternalBail01 - this is the place where pilot bails out. When there are more crew you have to place also 02, 03 etc.

_Tank1Burn and _Tank1Leak: place them inside fuel tank, when plane is damaged from this place it will be smoking

_Engine1Smoke and _Engine1Oil: like for fuel tanks, but for engine 

_Engine1ES_01 and _Engine1EF_01: smoke and fire during engine start

_ClipRGear and _ClipCGear and _ClipLGear: ground level for aicraft standing on wheels. Should be placed in Gear meshes

_MGUN01: fire while shooting

_WingTipR and _WingTipL: smoke from wingtips

_NavLightXX and _LandingLightXX: navlights

For internals there are other hooks, but I don't know them too well.
To be honest, the best thing you can do is to import similar thing to the stuff you'll be exporting and compare hooks and collisions. This is the way I learnt allmost all this stuff
Logged

mac1

  • Modder
  • member
  • Offline Offline
  • Posts: 738
Re: Hooks
« Reply #4 on: March 08, 2011, 12:21:51 PM »

Cheers man! It'd be nice to make a sticky out of all of them. Thanks :D
Logged

Lisek

  • Aviator Mod Team
  • Modder
  • member
  • Offline Offline
  • Posts: 334
Re: Hooks
« Reply #5 on: March 08, 2011, 12:24:03 PM »

No worries  :)
Good luck with Heinkel now  :D
Logged

mac1

  • Modder
  • member
  • Offline Offline
  • Posts: 738
Re: Hooks
« Reply #6 on: March 08, 2011, 12:47:29 PM »

;)
Logged

Birdman

  • SAS Honourable Member
  • member
  • Offline Offline
  • Posts: 1626
Re: Hooks
« Reply #7 on: March 08, 2011, 01:51:02 PM »

The _Clip hooks are actually responsible for ground collisions. They must start from _Clip00 and next one must always have the next number, if you skip one number all the rest with bigger number won't work. If you have two with the same name, then one of them won't work. For example, if you comment out _Clip hooks of a wingtip mesh, then that wingtip will go into ground or water without colliding, and all other parts with bigger _Clip numbers will go into ground too. Once there was a version of Me-262 with _Clip00-03 removed from prop meshes, and the result was that plane loaded and flew OK but managed to fly under ground and though mountains without any damage as long as altitude was non-negative.

You should just place _Clip00-03 to edges of propellor (_Clip00-01 to Prop1 and _Clip02-02 to Prop2 in a twin engine plane), see this A6M prop as example:
[Hooks]
_Clip00 <BASE>
_Clip01 <BASE>
_Clip02 <BASE>
_Clip03 <BASE>

[HookLoc]
1 0 0 0 -1 0 0 0 -1 0.009 -0.013 1.512     //tip of first prop blade
1 0 0 0 -1 0 0 0 -1 -1.312 -0.013 -0.749  //tip of second prop blade
1 0 0 0 -1 0 0 0 -1 1.304 -0.013 -0.762   //tip of third prop blade
1 0 0 0 -1 0 0 0 -1 0 0.415 0                  //tip of spinner

Then you should place _Clip hooks to every edge of main parts that might collide with ground, like tips of each wing section, tail surface, nose, CF and tail. One good example is that when you nose over in take-off or landing in stock Fiat G.55, your nose will sink into ground since engine has no _Clip hooks. Then you can check my fix with three next _Clip hooks after largest number in stock plane added to tip of engine mesh that stop nose from sinking into ground.
Logged

Lisek

  • Aviator Mod Team
  • Modder
  • member
  • Offline Offline
  • Posts: 334
Re: Hooks
« Reply #8 on: March 08, 2011, 01:56:11 PM »

When I removed some of the 00 - 04 Clips I received "cannot load plane - missing hook" error so I thought that they simply must be there. Thanks for explanation Birdman  :)
Logged

Verhängnis

  • Unofficial Heinkel Fan
  • Modder
  • member
  • Offline Offline
  • Posts: 1494
Re: Hooks
« Reply #9 on: March 10, 2011, 01:39:49 AM »

I always wondered why such good informtion like this was never in a guide to start with, then I figured that people dont have the time or effort, and seeming as the above info is not really a tutorial it fits perfectly into my "Explanation" Guide, so can I add the info in with your credit? Think it would really help some in the later stages of modding.
Logged

tedeschene

  • Modder
  • member
  • Offline Offline
  • Posts: 58
  • Toujours vers l'avant
Re: Hooks
« Reply #10 on: March 17, 2011, 10:51:53 PM »

Thank you,the Rolland DII and Airco DH2 both have collision problems.
Logged

dhtsword

  • member
  • Offline Offline
  • Posts: 31
Re: Hooks
« Reply #11 on: July 28, 2012, 02:17:52 PM »

The Hook _Engine1Smoke is used by Enginesinterface (and the Schemes) to calculate the point the forces created by the engine are exerted. So please don't move this hook around, instead create a separate one !!!!!
Logged
Pages: [1] 2   Go Up
 

Page created in 0.046 seconds with 28 queries.