Author Topic: Untargetable Turrets... is it possible?  (Read 1952 times)

0 Members and 1 Guest are viewing this topic.

Offline bigchunk1

  • bigchunk1 = Awesome²
  • 29
  • ...and by awesome I mean Jerk!
Untargetable Turrets... is it possible?
Let's say I have a capital ship. I want to have active turrets on that ship, but I don't want the player to be able to target them.

I went to tables first, looking for a possible flag or something that would disable targeting on turret subsystems. Note: '$Flags: ( "untargetable" )' under '$Subsystem:' does NOT work.

I have looked in FRED for a possible sexp, but I can't find one.

Anyone know a way I can get this to work? Or if it's even possible?

Edit(unrelated): While i'm at it... the armor.tbl does not seem to restrict shockwave damage, only impact weapon damage. Anyone have any insight as to why this could be, or how I can fix it?
« Last Edit: June 29, 2011, 12:34:37 am by bigchunk1 »
BP Multi
The Antagonist
Zacam: Uh. No, using an effect is okay. But you are literally using the TECHROOM ani as the weapon effect.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Untargetable Turrets... is it possible?
Did you assign $Shockwave Damage Type: to the weapon/ship with the shockwave damage that you want reduced?
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline bigchunk1

  • bigchunk1 = Awesome²
  • 29
  • ...and by awesome I mean Jerk!
Re: Untargetable Turrets... is it possible?
I got the armor table to block out area effect damage (+1 Spoon), but now I can't seem to figure out how to also block out shield and subsystem damage. The "ignore subsystem damage" flag won't work. I'm not exactly sure if it's what I want. :(

Also, the change-class sexp does not seem to be changing the armor values of the ships (as specified in the tables) when I use the sexp in game. I'm 75% sure I'm missing something here, but perhaps it's healthy to vent a little frustration. Anyone else try changing armor types in game? I'd prefer to use change-class over the set-armor-type sexp.

Lastly, I still haven't been able to resolve the turret targeting issue so if anyone knows that would be a :)
BP Multi
The Antagonist
Zacam: Uh. No, using an effect is okay. But you are literally using the TECHROOM ani as the weapon effect.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Untargetable Turrets... is it possible?
http://www.hard-light.net/wiki/index.php/Ships.tbl#.24Shield_Armor_Type:
And subsystems also need to be assigned armor  http://www.hard-light.net/wiki/index.php/Subsystem#.24Armor_Type:

Also, why can't you just use both change-class and set-armor-type sexps? It's not like they are mutually exclusive
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline IronBeer

  • 29
  • (Witty catchphrase)
Re: Untargetable Turrets... is it possible?
Also, why can't you just use both change-class and set-armor-type sexps? It's not like they are mutually exclusive
Shouldn't change-class invoke the proper set armor from the .tbl anyways? I know using set-armor alongside it shouldn't hurt, but isn't it redundant? (Based on what little I know about these SEXPs)
"I have approximate knowledge of many things."

Ridiculous, the Director's Cut

Starlancer Head Animations - Converted

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Untargetable Turrets... is it possible?
Also, why can't you just use both change-class and set-armor-type sexps? It's not like they are mutually exclusive
Shouldn't change-class invoke the proper set armor from the .tbl anyways? I know using set-armor alongside it shouldn't hurt, but isn't it redundant? (Based on what little I know about these SEXPs)
That's my initial thought as well but bigchunk1 is apparantly experiencing something else
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline bigchunk1

  • bigchunk1 = Awesome²
  • 29
  • ...and by awesome I mean Jerk!
Re: Untargetable Turrets... is it possible?
Armor classes work as intended now, thanks Spoon.

Also, why can't you just use both change-class and set-armor-type sexps? It's not like they are mutually exclusive
Shouldn't change-class invoke the proper set armor from the .tbl anyways? I know using set-armor alongside it shouldn't hurt, but isn't it redundant? (Based on what little I know about these SEXPs)

You're right in that the two sexps don't contradict, in fact it works when you use set-armor-type. I still would prefer not to do things this way since I am conducting the operation with roughly a dozen ships in a single event which has the possibility of triggering every 5 or so seconds, and like Ironbeer said it is redundant. Well, that is IF change-class would properly change armor types when triggered, which for me It does not.

I feel at least comfortable with the idea that it works, if in a slightly less efficient way that is slightly more cluttered.
BP Multi
The Antagonist
Zacam: Uh. No, using an effect is okay. But you are literally using the TECHROOM ani as the weapon effect.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Untargetable Turrets... is it possible?
I went to tables first, looking for a possible flag or something that would disable targeting on turret subsystems. Note: '$Flags: ( "untargetable" )' under '$Subsystem:' does NOT work
It's strange that "untargetable" flag doesn't work on turrets, because it should. Could you create a small mod with retail assets that would show this issue? It looks like a bug to me and if it's a bug, it needs to be fixed.

 

Offline bigchunk1

  • bigchunk1 = Awesome²
  • 29
  • ...and by awesome I mean Jerk!
Re: Untargetable Turrets... is it possible?
Hmm... ok. I guess the main reason I made this topic was to check if anyone else had any experience with this and some other way to do it was available. If there is not, I'll post a mantis within the next few days.
BP Multi
The Antagonist
Zacam: Uh. No, using an effect is okay. But you are literally using the TECHROOM ani as the weapon effect.

  

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Untargetable Turrets... is it possible?
It's strange that "untargetable" flag doesn't work on turrets, because it should. Could you create a small mod with retail assets that would show this issue? It looks like a bug to me and if it's a bug, it needs to be fixed.
What he said.