[CF-Devel] Ingame map customisation / building
crossfire-devel at archives.real-time.com
crossfire-devel at archives.real-time.com
Sun Nov 9 15:33:52 CST 2003
Nicolas Weeger wrote:
>
Hello.
>
>
I went on implementing ingame map customisation/building (if anyone
>
wants patches to test, just ask).
>
It works correctly in most cases, but still has some glitches (like door
>
sometimes seen as wall -> wall face is incorrect)
>
>
The issue i'm running into is to correctly see if something is a wall, a
>
gate, where buildable is acceptable, and so on.
>
So here's what i plan on doing, for maps, or more precisely squares, you
>
could build on:
>
* for walls & floors, set the type as FLOOR or WALL (easiest way to
>
correctly check if it's really a floor or a wall)
for floors, the FLAG_IS_FLOOR should already be set for all floor objects, so
it shouldn't be necessary to change the type to floor. But if you want to, not
a big deal I suppose.
>
* for walls, floors, buttons/pedestals, doors, gates (all items you
>
could build/remove), use a subtype of for instance 1 (i think subtype is
>
not used currently for those items)
Please don't do that. While subtype may not be used right now, that doesn't
mean it might not have a more useful purpose in the future. If you want to use
it as a flag, add a new flag field.
>
Of course, it'd be even more easy to have a 'buildable' flag, but i can
>
survive without :)
If that's what you want, add that field to the archs.
_______________________________________________
crossfire-devel mailing list
crossfire-devel at lists.real-time.com
https://mailman.real-time.com/mailman/listinfo/crossfire-devel
More information about the crossfire
mailing list