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 Go to previous messageGo to previous message
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.
https://i.imgur.com/b1Kdx2C.png
These flags correspond to the structure flags:
Toggle Spoiler

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

Captain

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New feature: Improved trade menu
Next Topic: New feature: exploration
Goto Forum:
  


Current Time: Tue Dec 03 14:31:25 GMT+2 2024

Total time taken to generate the page: 0.01378 seconds