Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New Feature: drag people & corpses
Re: New Feature: drag people & corpses[message #360684 is a reply to message #360680]
|
Sat, 25 July 2020 15:20
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
Kitty wrote on Fri, 24 July 2020 19:40
Quote:... structure that is not a wall/roof/light/switch/person/corpse/vehicle/cavewall/fence ...
On which definition is this exclusion based ? Is it jsd-Flags? Or based on Index-Nr in ja2setdat.xml ? Or something completly different?
It's the flags from the jsd, yes.
These flags correspond to the structure flags:
Toggle Spoiler
// NOT used in DB structures!
#define STRUCTURE_BASE_TILE 0x00000001
#define STRUCTURE_OPEN 0x00000002
#define STRUCTURE_OPENABLE 0x00000004
// synonyms for STRUCTURE_OPENABLE
#define STRUCTURE_CLOSEABLE 0x00000004
#define STRUCTURE_SEARCHABLE 0x00000004
#define STRUCTURE_HIDDEN 0x00000008
#define STRUCTURE_MOBILE 0x00000010
// STRUCTURE_PASSABLE is set for each structure instance where
// the tile flag TILE_PASSABLE is set
#define STRUCTURE_PASSABLE 0x00000020
#define STRUCTURE_EXPLOSIVE 0x00000040
#define STRUCTURE_TRANSPARENT 0x00000080
#define STRUCTURE_GENERIC 0x00000100
#define STRUCTURE_TREE 0x00000200
#define STRUCTURE_FENCE 0x00000400
#define STRUCTURE_WIREFENCE 0x00000800
#define STRUCTURE_HASITEMONTOP 0x00001000 // ATE: HASITEM: struct has item on top of it
#define STRUCTURE_SPECIAL 0x00002000
#define STRUCTURE_LIGHTSOURCE 0x00004000
#define STRUCTURE_VEHICLE 0x00008000
#define STRUCTURE_WALL 0x00010000
#define STRUCTURE_WALLNWINDOW 0x00020000
#define STRUCTURE_SLIDINGDOOR 0x00040000
#define STRUCTURE_DOOR 0x00080000
// a "multi" structure (as opposed to multitiled) is composed of multiple graphics & structures
#define STRUCTURE_MULTI 0x00100000
#define STRUCTURE_CAVEWALL 0x00200000
#define STRUCTURE_DDOOR_LEFT 0x00400000
#define STRUCTURE_DDOOR_RIGHT 0x00800000
#define STRUCTURE_NORMAL_ROOF 0x01000000
#define STRUCTURE_SLANTED_ROOF 0x02000000
#define STRUCTURE_TALL_ROOF 0x04000000
#define STRUCTURE_SWITCH 0x08000000
#define STRUCTURE_ON_LEFT_WALL 0x10000000
#define STRUCTURE_ON_RIGHT_WALL 0x20000000
#define STRUCTURE_CORPSE 0x40000000
#define STRUCTURE_PERSON 0x80000000
// COMBINATION FLAGS
#define STRUCTURE_ANYFENCE 0x00000C00
#define STRUCTURE_ANYDOOR 0x00CC0000
#define STRUCTURE_OBSTACLE 0x00008F00
#define STRUCTURE_WALLSTUFF 0x00CF0000
#define STRUCTURE_BLOCKSMOVES 0x00208F00
#define STRUCTURE_TYPE_DEFINED 0x8FEF8F00
#define STRUCTURE_ROOF 0x07000000
and I'm excluding any structure with these flags:
if ( pCurrent->fFlags & ( STRUCTURE_CORPSE | STRUCTURE_PERSON | STRUCTURE_ROOF | STRUCTURE_SWITCH | STRUCTURE_WALLSTUFF | STRUCTURE_MULTI | STRUCTURE_CAVEWALL | STRUCTURE_LIGHTSOURCE | STRUCTURE_VEHICLE | STRUCTURE_ANYFENCE | STRUCTURE_TREE ) )
{
pCurrent = pCurrent->pNext;
continue;
}
Kitty wrote on Fri, 24 July 2020 19:40
So, if I don't want a vehicle to be moved, is it enough that it is bigger then 1 tile, or is the jsd-flag vehicle required?
Or, if using WireFence instead of fence in jsd-flags, would this result in moveable Wirefences?
See above. I'm exluding both flags.
Kitty wrote on Fri, 24 July 2020 19:40
And as for names, do I understand it correctly, that
<STRUCTURESLIST>
<STRUCTURE><!-- -->
<szTileSetDisplayName>Gas cylinder</szTileSetDisplayName>
<szTileSetName>ASTUFF1.sti</szTileSetName>
<allowedtile>0</allowedtile>
</STRUCTURE>
<STRUCTURE><!-- -->
<szTileSetDisplayName>Gas Barrel</szTileSetDisplayName>
<szTileSetName>ASTUFF1.sti</szTileSetName>
<allowedtile>1</allowedtile>
</STRUCTURE>
would result in different names (Gas cylinder / Gas Barrel) for content of the same .sti ?
Yes. Exactly like that.
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
|
|
New Feature: drag people & corpses
By: Flugente on Sun, 17 September 2017 00:16
|
|
|
Re: New Feature: drag people & corpses
|
|
|
Re: New Feature: drag people & corpses
By: Someone64 on Sun, 17 September 2017 15:42
|
|
|
Re: New Feature: drag people & corpses
By: Panzer on Sun, 17 September 2017 23:04
|
|
|
Re: New Feature: drag people & corpses
By: Flugente on Mon, 18 September 2017 01:33
|
|
|
Re: New Feature: drag people & corpses
By: Thor on Mon, 18 September 2017 11:28
|
|
|
Re: New Feature: drag people & corpses
By: Deleted. on Wed, 25 March 2020 21:56
|
|
|
Re: New Feature: drag people & corpses
|
|
|
Re: New Feature: drag people & corpses
|
|
|
Re: New Feature: drag people & corpses
By: Hawkeye on Fri, 24 July 2020 05:49
|
|
|
Re: New Feature: drag people & corpses
|
|
|
Re: New Feature: drag people & corpses
|
|
|
Re: New Feature: drag people & corpses
By: Kitty on Fri, 24 July 2020 22:40
|
|
|
Re: New Feature: drag people & corpses
By: Hawkeye on Sat, 25 July 2020 08:22
|
|
|
Re: New Feature: drag people & corpses
|
|
|
Re: New Feature: drag people & corpses
By: Kitty on Sat, 25 July 2020 23:25
|
|
|
Re: New Feature: drag people & corpses
|
|
|
Re: New Feature: drag people & corpses
By: Deleted. on Sat, 01 August 2020 19:18
|
Goto Forum:
Current Time: Tue Dec 03 14:31:25 GMT+2 2024
Total time taken to generate the page: 0.01378 seconds
|