Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: General Battuta on October 12, 2010, 09:23:11 pm

Title: i'm such a n00blet (help me fix my table)
Post by: General Battuta on October 12, 2010, 09:23:11 pm
dear everyone,

why do i suck so much?

also why does this sentry gun not shoot  :shaking:

Code: [Select]
$Name:                          GTSG Alastor Bravo
$Short name: TSGun3
$Species:                       Terran
+Tech Description:
XSTR("The Bravo variant Alastor area defense system uses twin missile lanchers drawing from an ammunition storage derived from the Hygeia support ship.", -1)
$end_multi_text
$POF file:                      Platform2T-01.pof
$Detail distance: (0, 250, 500)
$Show damage: NO
$Density:                       1
$Damp:                          0.2
$Rotdamp:                       0.2
$Max Velocity: 0.0, 0.0, 0.0
$Rotation time: 20.0, 20.0, 20.0
$Rear Velocity: 0.0
$Forward accel: 0.0
$Forward decel: 0.0
$Slide accel: 0.0
$Slide decel: 0.0
$Expl inner rad: 0.0
$Expl outer rad: 0.0
$Expl damage: 0.0
$Expl blast: 0.0
$Expl Propagates: NO ;; If set to Yes, then when the ship dies, the explosion propagates through it.
$Shockwave Speed: 0.0 ;; speed shockwave expands at, 0 means no shockwave
$Default PBanks: ()
$Default SBanks: ()
$SBank Capacity: ()
$Shields:                       0
$Power Output: 0.0
$Max Oclk Speed: 0.0
$Max Weapon Eng: 0.0
$Hitpoints:                     250
$Armor Type: Light Armor 100
$Flags:                         ("sentrygun" "in tech database")
$AI Class:                      Captain
$Afterburner: NO
$Countermeasures: 0
$Scan time:                     2000
$EngineSnd: -1   ;; Engine sound of ship
$Closeup_pos: 0.0, 0.5, -14
$Closeup_zoom: 0.85
$Score: 9
$Subsystem:                     turret01a, 20, 1.0
$Default SBanks:        ( "Trebuchet" )
$SBank Capacity:        ( 5000 )
$Subsystem:                     turret02a, 20, 1.0
$Default SBanks:        ( "Trebuchet" )
$SBank Capacity:        ( 5000 )
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Solatar on October 12, 2010, 10:05:44 pm
I just tried it; and it works for me. I copied the table entry exactly, except that I replaced the Trebuchet with Phoenix V missiles (so I could throw it in my active MOD folder easier).

It fired upon me as expected. Maybe the problem is with the Treb somehow?
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Qent on October 12, 2010, 10:13:28 pm
Yeah, it works with Harpoons. I thought maybe the AI profile in BP2 wasn't being applied to turrets, but then I tried loading Trebs on an Ares and that didn't work either. Huh.
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Fury on October 12, 2010, 10:21:53 pm
Trebuchet has "huge" flag, hence turrets won't fire it on small ships. Smart secondary weapon selection does not apply to turrets.
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Droid803 on October 12, 2010, 10:48:15 pm
Does the "bomber+" flag also prevent it from firing at anything but bombers? (since smart selection doesn't apply?)
Title: Re: i'm such a n00blet (help me fix my table)
Post by: General Battuta on October 12, 2010, 11:06:20 pm
But I had a good-secondary-time.  :nervous: Is that not gonna do the trick?
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Droid803 on October 12, 2010, 11:14:03 pm
Don't think that applies to turrets, only regular gunbanks.
Don't quote me on that though.
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Hades on October 12, 2010, 11:18:52 pm
Don't think that applies to turrets, only regular gunbanks.
Don't quote me on that though.
Quoted for posterity.
>_>
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Qent on October 12, 2010, 11:28:24 pm
Does the "bomber+" flag also prevent it from firing at anything but bombers? (since smart selection doesn't apply?)
It fires fine at capships. Not sure if that's what you meant.
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Droid803 on October 12, 2010, 11:37:11 pm
oh ok.
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Shivan Hunter on October 12, 2010, 11:59:34 pm
have you modified the Platform2T-01 so it can actually carry secondaries? IIRC turrets have to have a secondary bank defined in the POF as well to fire missiles, unless that's changed.

Does it fire at anything at all? As in, put a bunch of hostile ships near it and see if it fires at any of them. You may have to make a version of the Treb that fires at small ships (without the "huge" flag).
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Hades on October 13, 2010, 12:01:50 am
have you modified the Platform2T-01 so it can actually carry secondaries? IIRC turrets have to have a secondary bank defined in the POF as well to fire missiles, unless that's changed.

Does it fire at anything at all? As in, put a bunch of hostile ships near it and see if it fires at any of them. You may have to make a version of the Treb that fires at small ships (without the "huge" flag).
It doesn't matter if the turret in the pof is defined as a primary or secondary turret, just what you put in the table matters.
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Fury on October 13, 2010, 02:02:52 am
But I had a good-secondary-time.  :nervous: Is that not gonna do the trick?
No, you need to create a copy of the weapon without "huge" and "bomber+" flags. Also, you don't need to set SBank capacity on turrets as they have unlimited ammo.

You may also want to ask Darius or someone else to put a shield mesh on sentries, they really should have shields by the time BP takes place.
Title: Re: i'm such a n00blet (help me fix my table)
Post by: General Battuta on October 13, 2010, 07:21:48 am
I guess I was just weirded out by the fact that fighter-launched Trebs are working fine. We'll need to make a Trebuchet#Turret or something.
Title: Re: i'm such a n00blet (help me fix my table)
Post by: mjn.mixael on October 13, 2010, 09:44:26 am
 :nervous:

Turrets with trebs?!

 :shaking:
Title: Re: i'm such a n00blet (help me fix my table)
Post by: General Battuta on October 13, 2010, 09:49:34 am
:nervous:

Turrets with trebs?!

 :shaking:


Of COURSE those big launchers on the Atreus have selectable loadouts!
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Droid803 on October 13, 2010, 06:20:07 pm
Those tiny sentry guns lobbing trebs looks pretty silly though :P
Title: Re: i'm such a n00blet (help me fix my table)
Post by: General Battuta on October 13, 2010, 06:51:26 pm
Those tiny sentry guns lobbing trebs looks pretty silly though :P

pffff don't worry about it it's all cool, i'm putting cargo containers next to them to be ammo boxes, and little spacesuits to fly around reloading them!
Title: Re: i'm such a n00blet (help me fix my table)
Post by: General Battuta on October 13, 2010, 07:06:53 pm
Actually, being srs here for a second, they look like they've got about as much room for ammo and **** as an Ares.   :wtf:
Title: Re: i'm such a n00blet (help me fix my table)
Post by: Droid803 on October 13, 2010, 07:10:46 pm
Hm...possibly.
But an Ares runs out of trebs fairly fast while turreted weapons have AMMO! UNLIMITED AMMO!!!!!