.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old November 1st, 2006, 07:09 PM

Devnullicus Devnullicus is offline
Sergeant
 
Join Date: Feb 2001
Location: Belmont, CA USA
Posts: 285
Thanks: 0
Thanked 0 Times in 0 Posts
Devnullicus is on a distinguished road
Default Re: Component Data Weirdness

I'm kind of figuring that the Shield Imploder and Alloy Burner Missile are typos, so I've decided to use the following algorithm:

Code:

public WeaponInfo.FiringType GetFiringType()
{
if( Type.Equals( "Direct Fire" )
|| Type.Equals( "Point-Defense" ) )
{
if( DeliveryType.Equals( "Energy Beam" ) )
{
return FiringType.BEAM;
}
else if( DeliveryType.Equals( "Energy Bolt" )
|| DeliveryType.Equals( "Missile" )
|| DeliveryType.Equals( "Projectile" ) )
{
return FiringType.BOLT;
}
}
else if( Type.Equals( "Seeking" ) )
{
if( DeliveryType.Equals( "Missile" ) )
{
return FiringType.SEEKER;
}
}
else if( Type.Equals( "Warhead" ) )
{
if( DeliveryType.Equals( "Warhead" ) )
{
return FiringType.BEAM;
}
}

return FiringType.NONE;
}



In addition, "Weapon Beam Speed" and "Seeker Turn Rate" seem to be optional data.
__________________
How's my Programming? Call 1-800-DEV-NULL
Get the Space Empires V Editor and DevnullMod at http://www.devnullsoftware.com/se5
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:01 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.