Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: HotSnoJ on January 27, 2005, 02:16:44 am

Title: Flag Order?
Post by: HotSnoJ on January 27, 2005, 02:16:44 am
I'm inquirying if ship and weapon table flags are to go in some sort of order and what that order would be.

Maybe this should have gone in the SCP forum, but oh well.



Any help given would be much appreciated! :D
Title: Flag Order?
Post by: WMCoolmon on January 27, 2005, 02:25:48 am
It doesn't matter what order they're in, but here's the order they're defined in the code:

no_collide
player_ship
default_player_ship
repair_rearm
cargo
fighter
bomber
transport
freighter
capital
supercap
drydock
cruiser
navbuoy
sentrygun
escapepod
no type
ship copy
in tech database
in tech database multi
dont collide invisible
big damage
corvette
gas miner
awacs
knossos
no_fred
ballistic primaries
flash
surface shields
show ship
Title: Flag Order?
Post by: Nuke on January 27, 2005, 02:28:22 am
whats flash do?
and can you list the weapon flag order too?
Title: Flag Order?
Post by: HotSnoJ on January 27, 2005, 02:59:35 am
Hm, not exactly what I was looking for WMCoolmon. I'm looking for the order of these kinds of flags (http://www.hard-light.net/forums/index.php/topic,17779.0.html).
Title: Flag Order?
Post by: HotSnoJ on January 27, 2005, 09:16:20 pm
For those interested: See line 1813 in ship.cpp and line 1086 in weapon.cpp for the order of ship and weapon property tags.

Soon my friends, soon will you know my intensions.
Title: Flag Order?
Post by: WMCoolmon on January 27, 2005, 09:17:31 pm
Those are variables, not flags. :p
Title: Flag Order?
Post by: NGTM-1R on January 27, 2005, 09:22:32 pm
Perhaps while we're here somebody could explain why most of the time the "in tech database" flag doesn't work properly?
Title: Flag Order?
Post by: HotSnoJ on January 27, 2005, 09:26:26 pm
Quote
Originally posted by WMCoolmon
Those are variables, not flags. :p
And I'd know what they were called if it was called the same thing all the time. :P
Title: Flag Order?
Post by: Goober5000 on January 27, 2005, 09:27:28 pm
It works all of the time.  You just need to reset the tech database between mods. :p

In other words, either use the reset-tech-database sexp, check the Uses Custom Tech Database flag in the campaign editor, or create a new pilot.
Title: Flag Order?
Post by: WMCoolmon on January 27, 2005, 09:54:33 pm
Are you sure reset-tech-database is in CVS?
Title: Flag Order?
Post by: Goober5000 on January 27, 2005, 09:56:59 pm
Yup.
Title: Flag Order?
Post by: phreak on January 27, 2005, 10:11:06 pm
flash? *checks code*

:wtf:  When was that committed?
Title: Flag Order?
Post by: WMCoolmon on January 28, 2005, 12:11:09 am
Oops. Go down one floor. (Double post)
Title: Flag Order?
Post by: WMCoolmon on January 28, 2005, 12:11:44 am
It makes the ship make a really big explosion flash! :D

At least that's what the function says:
Code: [Select]
big_explosion_flash(intensity);
Title: Flag Order?
Post by: NGTM-1R on January 28, 2005, 01:05:24 am
Quote
Originally posted by Goober5000
It works all of the time.  You just need to reset the tech database between mods. :p

In other words, either use the reset-tech-database sexp, check the Uses Custom Tech Database flag in the campaign editor, or create a new pilot.


Umm, no.

This is the table file itself, not a campaign-related one. And a new pilot does not help. Standard beginning-of-Main-Campaign ships.tbl with flags added to the ships that didn't originally have them. In the tables folder of the data folder of my FS2 root directory. Not all of the ships flagged show. Most of them, in fact, don't show.
Title: Flag Order?
Post by: Starman01 on January 28, 2005, 11:11:22 am
Quote
Originally posted by PhReAk
flash? *checks code*

:wtf:  When was that committed?


That is something Bobboau tried to implement for us. According to him it was already in the code, just not active  from volition's side.

It's function should be, that when a ship with this flag explodes, a big bright explosion-flash should be emitted, just like in original  WingCommander-Games.

But it didn't worked like that when I first tested, and due to the lack of time I made no further tests with it. But if someone could make it running properly, I would surely appreciate that :D
Title: Flag Order?
Post by: Grimloq on January 28, 2005, 01:54:15 pm
flash? huh, sounds cool...
Title: Flag Order?
Post by: Woolie Wool on January 28, 2005, 02:58:35 pm
Quote
Originally posted by WMCoolmon
It makes the ship make a really big explosion flash! :D

At least that's what the function says:
Code: [Select]
big_explosion_flash(intensity); [/B]


Any screenshots of what that looks like?