Author Topic: My first ballistic weapon table  (Read 2488 times)

0 Members and 1 Guest are viewing this topic.

Offline Dysko

My first ballistic weapon table
Having nothing to do, I tried to table a ballistic weapon. I made a powerful cannon with a range of 2500 meters, used to destroy turrets and subsystems of capital ships from distance. Since it could destroy a fighter with a single shot (and I didn't want it to be used on fighters, only against major ships), the shield damage factor is very low and the bolt is slow moving. Only bombers can carry this weapon, and they can carry only a limited amount of ammo (30 shots for the Ursa, 10 for the Artemis, for example).

Copy this in a xxx-wep.tbm to insert the cannon in the game:
Code: [Select]
#Primary Weapons
$Name: GAU-73 Annihilator
 +Title: XSTR("GTW GAU-73 Annihilator", -1)
 +Description: XSTR(
"Ballistic cannon
Level 5 Hull Damage
Level 1 Shield Damage", -1)
$end_multi_text
 +Tech Title: XSTR("GAU-73 Annihilator", -1)
 +Tech Anim: Tech_Subach_HL-7
 +Tech Description: XSTR("The GAU-73 Annihilator is a projectile weapon, firing a 50mm depleted uranium shell encircled by a plasma bolt. This cannon has a very limited ammo and is usually used to destroy subsystem at very long range. It is almost useless against shields.", -1)
$end_multi_text
$Model File: none
@Laser Bitmap: newglo3
@Laser Glow: 2_laserglow03
@Laser Color: 120, 120, 30
@Laser Color2: 120, 120, 30
@Laser Length: 10.0
@Laser Head Radius: 1.0
@Laser Tail Radius: 1.0
$Mass: 0.2
$Velocity: 350.0
$Fire Wait: 20.0
$Damage: 130
$Armor Factor: 3.0
$Shield Factor: 0.01
$Subsystem Factor: 2.8
$Lifetime: 7.0
$Energy Consumed: 0.0
$Cargo Size: 0.0
$Homing: NO
$LaunchSnd: 76
$ImpactSnd: 85
$Flags: ("in tech database" "player allowed" "stream" "ballistic" "shudder")
$Icon: iconPromS
$Anim: PromS
$Impact Explosion: none
#End

And add this in a xxx-shp.tbm to use the cannon with default FS2 Terran bombers:
Code: [Select]
#Ship Classes
$Name: GTB Zeus
 +nocreate
$Allowed PBanks: ( "GAU-73 Annihilator" )
$PBank Capacity: ( 15 )
$Flags: ( "ballistic primaries" )

$Name: GTB Artemis
 +nocreate
$Allowed PBanks: ( "GAU-73 Annihilator" )
$PBank Capacity: ( 10 )
$Flags: ( "ballistic primaries" )

$Name: GTB Artemis D.H.
 +nocreate
$Allowed PBanks: ( "GAU-73 Annihilator" )
$PBank Capacity: ( 10 )
$Flags: ( "ballistic primaries" )

$Name: GTB Medusa
 +nocreate
$Allowed PBanks: ( "GAU-73 Annihilator" )
$PBank Capacity: ( 20 )
$Flags: ( "ballistic primaries" )

$Name: GTB Ursa
 +nocreate
$Allowed PBanks: ( "GAU-73 Annihilator" )
$PBank Capacity: ( 30 )
$Flags: ( "ballistic primaries" )

$Name: GTB Boanerges
 +nocreate
$Allowed PBanks: ( "GAU-73 Annihilator" )
$PBank Capacity: ( 25 )
$Flags: ( "ballistic primaries" )
#End

Could be useful or I wasted my time only to create a piece of crap?

EDIT: added the "ballistic primaries" flag... :rolleyes:
EDIT2: added the "+nocreate" line
« Last Edit: December 05, 2006, 06:42:19 am by Darth DySkO »
My aviation photography website: GolfVictorSpotting.it

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: My first ballistic weapon table
That's a really good weapon. :yes:

I like it. I'll modify it and add to Earth Defence's weapons.

I'm making tables for a long time and I can say: You're on a good way ;)
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: My first ballistic weapon table
Will Earth Defense have Vasudans in it, if so, I've got a nice weapon you could use. It's called Hemsut and it can rip most fighters to shreds easily. Fast refire rate, low energy usage but with lower damage (which surmounts to be devastating). It looks cool, too.
« Last Edit: December 02, 2006, 10:23:04 am by Snail »

 

Offline Dysko

Re: My first ballistic weapon table
Uhm... I just noticed I forgot to put the "ballistic primary" flag to the bombers... I didn't notice that when I tested the weapon because I inserted the flag previously in the tbl itself. Don't worry, I'll have that fixed in no time.
My aviation photography website: GolfVictorSpotting.it

 
Re: My first ballistic weapon table
Any pictures of the model? for the weapon? or am i being stupid again and is this a cannon
Sig nuked! New one coming soon!

 

Offline Dysko

Re: My first ballistic weapon table
Any pictures of the model? for the weapon? or am i being stupid again and is this a cannon
It just fires the bolt of the Morning Star. For the weapon selection screen, I used the Prometheus S icon and animation.
My aviation photography website: GolfVictorSpotting.it

 
Re: My first ballistic weapon table
ok
Sig nuked! New one coming soon!

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: My first ballistic weapon table
Hey,DySkO,hai dimenticato il +nocreate nel shp-tbm.

Hey DySkO,you forgot the +nocreate in the shp.tbm.





The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline Dysko

Re: My first ballistic weapon table
Hey,DySkO,hai dimenticato il +nocreate nel shp-tbm.
Hey DySkO,you forgot the +nocreate in the shp.tbm.
Another time the translation :nervous:
It shouldn't be necessary to do that line. It should work anyways (at least, on my PC it works). Any suggestion?
My aviation photography website: GolfVictorSpotting.it

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: My first ballistic weapon table
Without the +nocreate FreeSpace creates another entry inSTEAD :lol: updating the old one...
Or not?
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline Dysko

Re: My first ballistic weapon table
inSTEAD
:doubt:

Without the +nocreate FreeSpace creates another entry instead of updating the old one...
Or not?
I've read that in the FS Wiki. If I understood correctly, without the "+nocreate" line, I should have 2 Ursa, 2 Artemis and so on (one that cannot use the cannon, and the other one that can use the cannon, right?). Well, I have only 1 bomber per entry, and it can use the cannon. What should I do?

Wow... a "Spell Check" button... It comes very useful!
My aviation photography website: GolfVictorSpotting.it

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: My first ballistic weapon table
The nocreate option means that if the Ursa doesn't already exist an entry for it won't be added.

That means that at the moment you can only use your .tbm file with any campaign which has all the FS2 bombers. If a single one has been removed from that campaigns tables the game will crash because you'll end up with an entry for that bomber which has no information other than what was in your .tbm. So the second that the game tries to access say it's top speed it will find it has no data for that and crash.

If you add +nocreate you could stick your tables in any mod and it still wouldn't cause a problem because it would be completely ignored if the ship in question wasn't in the tables.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline Dysko

Re: My first ballistic weapon table
Thank you karajorma! I'll add the "+nocreate" line in every .tbm now (well... obviously not in the tbms in which I have to add something new :rolleyes:).
And BTW, fixed it in the tbm above.
My aviation photography website: GolfVictorSpotting.it