|
|
The Object File
The Object-file describes an object that can be placed anywhere in the Airfix Villa.
This ranges from the Aircraft that you fly to the roll of carpet that you have to avoid in the garage.
The files are divided into four Categories: Static, Dynamic, Units and Aircraft.
They can be found in subfolders of that name in: Airfix Dogfighter\Game\Objects\Subfolder.
=> The Static folder contains files for inert objects like chairs, tables, etc.:
things that can't move, be blown up or damaged.
=> The Dynamic folder contains files for all Breakables and Flammables:
objects that can't move, but can break or burn.
=> The Units folder contains files for all models like Ships, Tanks, Gunforts etc.,
anything but the Aircraft you fly in the original game.
=> The Aircrafts folder finally contains files for the Aircraft that you can fly in the original game.
Please note:You CAN fly other aircraft like the B17 and Lancaster Bombers, see below.
|
3: The MESH-Block
In the two examples above, the last block in the file is the MESH-block and it has the same value in both:
MESH 0C 00 00 00
thirdperson 00
But this is not always the case...
Below are a few objects whose files have a different ending:
ÿ r>
The HIDE and GRAV-blocks will be explained below.
The value of the MESH-attribute is dependent on the type of object:
4: The HIDE-Block
In the first two entries and the last one in the examples above there is an extra Block-header: the HIDE-block.
The first entry, IaBottledHellcat, is the Hellcat enclosed in a beerglass that you encounter in one of the
Allied Missions. The second one, the Zeppelin, is a bit more mysterious: the thing will show up in Allied Mission 10 and in self-made
missions allright, but only in the Front Yard/Garden. All efforts to make it visible in other rooms have so far been fruitless:
it just won't show up. As a test, I modified the object-file by first changing the values in this HIDE-block,
then deleting it alltogether, but to no avail: the Zeppelin will only appear in the Front Garden, nowhere else.
More to the point, it appears that no matter WHERE you place it in the Front Garden, it always spawns in the same
place: exactly where it spawns in AlliedMission10....
The Objects that have the HIDE-factor in their files:
Notice that it includes all Arrows except the Yellow one. Yet you can't see the Yellow Arrow
(the Player Start Position) when you start any Map or Mission. So what this HIDE-block actually does is not
very clear at the moment, and remains to be worked out.
5: The GRAV-Block
Entries 3,4 ,5 and 6 include another Block: the GRAV-Block, and this undoubtedly has to do with Gravitation:
Notice the difference between the file for WuEnterprise and the one for IaWallClock:
both have 12 positions after the LENGTH-field, but whereas in the case of the Enterprise all positions are
NULL's , in the case of the WallClock the last two positions are 80 3F.
In fact, there are a lot of .object-files that have the 80 3F-ending,
and in case you need a clue, they include all pictures as well as the Wallclock and the Hanging Basket...
Didn't get it? Well, all pictures, the Clock and the hanging Basket gravitate Horizontally rather than Vertically. If you place them
in the House Editor and rotate them, you will see a white patch on the wall where, once released, they will gravitate towards.
The Yellow Arrow has a GRAV-block as follows:
GRAV 0C 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00.
If we change this to:GRAV 0C 00 00 00
00 00 00 00 00 00 00 00 00 00 80 3F then something interesting happens: if you place this
modified Yellow Arrow on a map, there will be a white patch on the wall where the arrow points to, and on release it will
gravitate towards that patch:
However, when you save the level and start a server with it in Multiplayer Mode, you will still start at the location you
originally placed the Arrow.
There are 56 Objects that have the GRAV-Block in their files:
Of these, all have the 80 3F-ending, except the Ships and the Arrows.
ÿ td?
|