Author Topic: "Electronics" tag  (Read 13329 times)

0 Members and 1 Guest are viewing this topic.

Offline phreak

  • Gun Phreak
  • 211
  • -1
ultra-:bump:

urgh there have been a few important changes to this code in the last week or so.  i may want to outline them

Firstly, the issue with the shockwaves have been resolved where the disruption effect wouldn't work at all if the weapon had a shockwave.

Secondly, the "randomness factor" has been made customizable.  previously, each disruption time was modified by ± 4 seconds.  specifying "+Randomness Time: {time in millseconds}" allows you to control this.  it is required if you do use the custom electronics parameter, but the default is 4000

Electronics weapons not using any electronics parameters default back to the original FS2 behavior, as this would break the balance with some campaigns that actually made use of these things before-hand.  You can also specify whether your weapon will use the original behavior with modifiable times or my new behavior.  The original behavior simply applies the disruption time to all ships, while my code scales the disruption time by an intensity value with a multiplier based on ship type.  The new code also allows for varying disruption times based on the subsystem type (engine, turret, beam turret, sensors).  The ship_type scale values for the new code have been modified as well

escape pod = 10.0
sentry gun = 10.0
fighter = 4.0 (down from 10.0)
bomber = 4.0 (down from 5.0)
support ship = 3.5 (up from 3.0)
transport = 2
freighter = 1.75
gas miner = 1.0 (down from 1.2)
cruiser = 0.9 (down from 1.0)
awacs = 0.8 (down from 0.9)
corvette = 0.333 (down from 0.4)
capital ship = 0.2
knossos device/comm node = 0.1
supercap = 0.075


here is the table to specify whether you're using a new or old style disruption effect.  values listed are default

Code: [Select]

$Electronics:
+Old Style: ;;required to use old-style disruption effect
+Lifetime: 6000
+Randomness Time: 4000


Code: [Select]

$Electronics:
+New Style: ;;required to use new-style disruption effect
+Intensity: 1
+Lifetime: 6000
+Engine Multiplier: 1.0
+Weapon Multiplier: 1.0
+Beam Turret Multiplier: 1.0
+Sensors Multiplier: 1.0
+Randomness Time: 4000
« Last Edit: February 02, 2005, 07:49:55 pm by 31 »
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
1) Where in a table entry would this entry go?

2) As I've asked before, what is the feasability of using the electronics flag on weapons other than secondaries... primaries, flak, beams, etc.?
The Trivial Psychic Strikes Again!

  

Offline phreak

  • Gun Phreak
  • 211
  • -1
1) At the end. edit: if you're doing this for beams though then it should go before the beam info, but after the impact explosion.

2) It should work, i haven't tested it though.
« Last Edit: February 02, 2005, 09:05:20 pm by 31 »
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline FireCrack

  • 210
  • meh...
Umm, according to what i'e seen of the formula on fsdoc intensity and lifetime are multiplied together. Doesnt this make one of them redundant?
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."

 

Offline terren

  • 27
Can we get a '$shields multiplier:' added to this?
Proud user of wings 3-D

                 
Mad? Oh yes quite mad.

 

Offline Woolie Wool

  • 211
  • Fire main batteries
Quote
Originally posted by PhReAk
ultra-:bump:


Damnit. I thought Galemp was back or something.
16:46   Quanto   ****, a mosquito somehow managed to bite the side of my palm
16:46   Quanto   it itches like hell
16:46   Woolie   !8ball does Quanto have malaria
16:46   BotenAnna   Woolie: The outlook is good.
16:47   Quanto   D:

"did they use anesthetic when they removed your sense of humor or did you have to weep and struggle like a tiny baby"
--General Battuta

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
He is back. Just very quiet.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
Quote
Originally posted by FireCrack
Umm, according to what i'e seen of the formula on fsdoc intensity and lifetime are multiplied together. Doesnt this make one of them redundant?


disruption time = intensity * ship_resistance (aka the "scale values" see above) * lifetime

usually intensity = 1/ship_resistance
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline FireCrack

  • 210
  • meh...
but the intensity and lifetime are multiplied. So doubling lifetime has the same effect as doubling intensity.
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
yea true.  its there to make things easier to balance though.
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Quote
Originally posted by karajorma
He is back. Just very quiet.


ssshhhh... :nervous:
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline Woolie Wool

  • 211
  • Fire main batteries
Too late!;7
16:46   Quanto   ****, a mosquito somehow managed to bite the side of my palm
16:46   Quanto   it itches like hell
16:46   Woolie   !8ball does Quanto have malaria
16:46   BotenAnna   Woolie: The outlook is good.
16:47   Quanto   D:

"did they use anesthetic when they removed your sense of humor or did you have to weep and struggle like a tiny baby"
--General Battuta