Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Wanderer on December 08, 2005, 08:40:51 am

Title: Minor request conserning shockwaves
Post by: Wanderer on December 08, 2005, 08:40:51 am
I have had some little problems with SoL mods shockwaves recently but i got them finally sorted out by looking code rather closely. So at the moment:

weapons.cpp:
"$Shockwave Model:" sci->name
"$Shockwave Name:" sci->pof_name

ship.cpp:
"$Shockwave Model:" sci->pof_name
"$Shockwave Name:" sci->name

I really do not care which one means which but it would be nice to have the same type of entry in different type of tables (ships.tbl and weapopns.tbl respectively) to function in a similar manner. I'm no coder but for me there seems to be a minor error in there.
Title: Re: Minor request conserning shockwaves
Post by: FireCrack on December 08, 2005, 09:24:11 am
Yeah, seems a bit off here...
Title: Re: Minor request conserning shockwaves
Post by: taylor on December 08, 2005, 09:28:53 am
Hmm, it used to be correct...

Looks like WMCoolmon changed it with the 2.142 commit.  I'll go ahead and fix that but WMC may have intended something else to go there so it may change again when he gets the chance to look it over.
Title: Re: Minor request conserning shockwaves
Post by: WMCoolmon on December 09, 2005, 01:24:29 am
My bad. :)

The only thing I wanted to do with that section of code was use the parse_shockwave() function for both, but apparently the order in ships and weapons tables are different. :-/