Author Topic: Capital Ship Mission - Need Help EMPing Myself!  (Read 2270 times)

0 Members and 1 Guest are viewing this topic.

Capital Ship Mission - Need Help EMPing Myself!
So, I'm building a mission where the player flies a capital ship. Using keypress-triggered SEXP's, the player can overtax the ship's powergrid in various ways to improve performance. All of that actually works great and is awesome!

One of the bad things that can happen is a system malfunction, which I want to use EMP to simulate. So made this weapon:

Code: [Select]
$Name: MG-EMP
$Model File: none
$Velocity: 20
$Fire Wait: 1
$Damage: 1
$Damage Type: HugeWeapon
$Blast Force: 2000.0
$Inner Radius: 10.0
$Outer Radius: 20.0
$Armor Factor: 1
$Shield Factor: 1
$Subsystem Factor: 0
$Lifetime: 0.1
$Energy Consumed: 0.0
$Cargo Size: 1
$Homing: NO
$Rearm Rate: 0.05
$Flags: ( "EMP" )
$EMP Intensity: 375.0
$EMP Time:                             3.0

...and then set up this SEXP to trigger its creation...

Code: [Select]
$Formula: ( every-time
   ( and
      ( >=
         ( mission-time-msecs )
         ( + @Last-Overload-Effect[0] 3000 )
      )
      ( >= @Overload-State[0] 50 )
      ( < @Overload-State[0] 75 )
   )
   ( weapon-create
      "<none>"
      "MG-EMP"
      ( get-object-x "Alpha 1" )
      ( get-object-y "Alpha 1" )
      ( get-object-z "Alpha 1" )
   )
   ( modify-variable
      @Last-Overload-Effect[0]
      ( mission-time-msecs )
   )
)
+Name: OverloadEMP
+Repeat Count: 1
+Interval: 1

The view visibly shakes, and I get the 'BLAST' warning on the UI every 3 seconds, so I am pretty sure the weapon is being properly generated, lasting for 0.1 seconds, exploding inside my ship, and hitting me. The issue is, it is not causing any kind of EMP effect.
"Obviously the meson bomb is a form of cat-toast-device, with the buttered toast inverted, so that the cat and toast both fly in the direction of gravity much faster than expected. By introducing artificial gravity, a pair of cat-toast perpetual motion accelerator units can be made to collide with one another, and they produce an unimaginably devastating explosion. Both cats are named 'Meson'."

 - Wikileaks 2383

 

Offline JSRNerdo

  • [`_`]/
  • 29
  • Gone!
Re: Capital Ship Mission - Need Help EMPing Myself!
Try either replacing the EMP with an electronics (d-missile) effect or adding a shockwave to the EMP weapon. IIRC EMP and electronics weapons have some odd behaviour with blasts and shockwaves.
Former Inferno lead, BTA fredder-ish and DE fredder. Driven out by ordinary fascists the_e, aesaar and general battuta. Will return if they're ever removed.

 
Re: Capital Ship Mission - Need Help EMPing Myself!
I would like to go with an EMP effect instead of an electronics effect. I added primary and secondary firepoints to the capship, and it does have some fantastically powerful missiles, all of which require aspect lock to fire. When EMP'ed, those missiles will not be usable.

Adding a shockwave back to the EMP weapon...
« Last Edit: May 16, 2018, 04:00:40 pm by Erebus Alpha »
"Obviously the meson bomb is a form of cat-toast-device, with the buttered toast inverted, so that the cat and toast both fly in the direction of gravity much faster than expected. By introducing artificial gravity, a pair of cat-toast perpetual motion accelerator units can be made to collide with one another, and they produce an unimaginably devastating explosion. Both cats are named 'Meson'."

 - Wikileaks 2383

 
Re: Capital Ship Mission - Need Help EMPing Myself!
Then make 2 weapons- 1 for the EMP to killed the target lock of the missiles, 1 to disable the player ship.

 

Offline JSRNerdo

  • [`_`]/
  • 29
  • Gone!
Re: Capital Ship Mission - Need Help EMPing Myself!
I would like to go with an EMP effect instead of an electronics effect. I added primary and secondary firepoints to the capship, and it does have some fantastically powerful missiles, all of which require aspect lock to fire. When EMP'ed, those missiles will not be usable.

An electronics effect with weapons/sensors/etc multipliers set to a non-zero number does in fact shut down your weapons and prevent you from firing them, basically giving the same effect as an EMP. Source: Made a capship command mission with a special ability ehitting you with electronics as part of a backblast thing
Former Inferno lead, BTA fredder-ish and DE fredder. Driven out by ordinary fascists the_e, aesaar and general battuta. Will return if they're ever removed.

 
Re: Capital Ship Mission - Need Help EMPing Myself!
Adding a shockwave did not work. I am going to try spawning the weapon on the outside of the ship, aimed at the ship. It may be an issue with collision, and it may be failing to apply EMP because the inside of the ship might be transparent & noncolliding.

Capships are big and slow, I shouldn't have any problems hitting myself with a really fast missile.

As for electronics-effects disabling a ship's weapons, can they be set to disable only secondaries? I want the primaries to still be usable, right up until the ship blows itself apart. (Yay, self-destruct SEXP!)
"Obviously the meson bomb is a form of cat-toast-device, with the buttered toast inverted, so that the cat and toast both fly in the direction of gravity much faster than expected. By introducing artificial gravity, a pair of cat-toast perpetual motion accelerator units can be made to collide with one another, and they produce an unimaginably devastating explosion. Both cats are named 'Meson'."

 - Wikileaks 2383

 
Re: Capital Ship Mission - Need Help EMPing Myself!
I don't think it's possible, atleast I'd use turret-lock instead.

 

Offline JSRNerdo

  • [`_`]/
  • 29
  • Gone!
Re: Capital Ship Mission - Need Help EMPing Myself!
As for electronics-effects disabling a ship's weapons, can they be set to disable only secondaries? I want the primaries to still be usable, right up until the ship blows itself apart

Maybe if you had the secondaries set to no dumbfire and made the electronics EMP your sensors and not your weapons? That, or have a seperate event to lock-secondary-weapons Alpha 1.
Former Inferno lead, BTA fredder-ish and DE fredder. Driven out by ordinary fascists the_e, aesaar and general battuta. Will return if they're ever removed.

 
Re: Capital Ship Mission - Need Help EMPing Myself!
Ok, just tried it. Capital ships seem to be wholly immune to EMP.



I installed a grey trail for testing purposes, so that I would be able to see the 'missile' which is supposed to be generating EMP. It's spawning behind me properly, colliding, and exploding. But with none of the EMP goodness.

I initially thought this might have been a FREDing issue, but it probably belongs in the modding forum instead.

Modified weapon:
Code: [Select]
$Name: MG-EMP
$Model File: none
$Velocity: 10000
$Fire Wait: 1
$Damage: 1
$Damage Type: HugeWeapon
$Blast Force: 2000.0
$Inner Radius: 50.0
$Outer Radius: 100.0
$Shockwave Speed: 80
$Shockwave name:        shockwave01
$Armor Factor: 1
$Shield Factor: 1
$Subsystem Factor: 0
$Lifetime: 0.5
$Energy Consumed: 0.0
$Flags: ( "EMP" )
$Trail:
+Start Width: 100
+End Width: 100
+Start Alpha: 1
+End Alpha: 0
+Max Life: 10
+Bitmap: MissileTrail101

$EMP Intensity: 375.0
$EMP Time:                             3.0
« Last Edit: May 16, 2018, 04:52:26 pm by Erebus Alpha »
"Obviously the meson bomb is a form of cat-toast-device, with the buttered toast inverted, so that the cat and toast both fly in the direction of gravity much faster than expected. By introducing artificial gravity, a pair of cat-toast perpetual motion accelerator units can be made to collide with one another, and they produce an unimaginably devastating explosion. Both cats are named 'Meson'."

 - Wikileaks 2383

 
Re: Capital Ship Mission - Need Help EMPing Myself!
EMP intensity too low? Enter something really high for testing, to see if it works.

 
Re: Capital Ship Mission - Need Help EMPing Myself!
Increasing EMP intensity to 375 million had no effect.

I also thought EMP time might be measured in milliseconds instead of seconds, so I tried setting it to 3000. No effect.
"Obviously the meson bomb is a form of cat-toast-device, with the buttered toast inverted, so that the cat and toast both fly in the direction of gravity much faster than expected. By introducing artificial gravity, a pair of cat-toast perpetual motion accelerator units can be made to collide with one another, and they produce an unimaginably devastating explosion. Both cats are named 'Meson'."

 - Wikileaks 2383