Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: how to make projectiles pierce through things?  (Read 1237 times)

JohnVicres

  • Lieutenant
  • **
  • Posts: 56
    • View Profile
how to make projectiles pierce through things?
« on: December 02, 2020, 08:01:32 PM »

I searched around the API and forum (and game files), found out beams can do it (apparently, haven't seen or tested that because nah), but "only" the vanilla Plasma Cannon has some semblance of a piercing, or bleed-through-capable, projectile against fighters.
So how does it achieve that? I saw the "collisionClass" and "pierceSet" thingos are stored in the projectile.proj for "ballistic" weapons, but then I got really confused with gray stuff like "BALLISTIC_AS_BEAM". Is it the "RAY"/"PROJECTILE" thingy? Is it tied to the spawn type thingy?
Logged

JohnVicres

  • Lieutenant
  • **
  • Posts: 56
    • View Profile
Re: how to make projectiles pierce through things?
« Reply #1 on: December 02, 2020, 08:02:29 PM »

sh. I double posted, sorry
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: how to make projectiles pierce through things?
« Reply #2 on: December 02, 2020, 08:55:32 PM »

It is hardcoded to the PLASMA type iirc.

So the weapon has to be a PLASMA weapon to have passthrough which will limit how the projectile can look. Granted I didn't mess with this that much and other mods probably use scripts to get around this I'd imagine.

But as far as your question is concerned, that is the only way to do it afaik.
Logged

Yubbin

  • Lieutenant
  • **
  • Posts: 68
  • i just play mods
    • View Profile
Re: how to make projectiles pierce through things?
« Reply #3 on: December 03, 2020, 06:41:13 AM »

You could look at the SRA capital Mimir, it's main weapon projectile pierces.
Logged