Author Topic: Scripting Question  (Read 1352 times)

Offline Worf359Alpha

  • Master HardPointer, Novice Scripter!
  • Posts: 131
  • Cookies: 14
  • Peace Thru Superior Firepower
Scripting Question
« on: October 09, 2010, 12:52:15 AM »
Can any one tell me where to find the script that controls the weapon impact aganst a unsheilded ship, that is to say when a phaser or pulse or torpedo strikes a ship and then the ship reacts from the impact by rolling or changing heading, I have some torpedo scripts like my Quantum Torpedos set with a pretty high damage rating and some ships take a hit and then do a 360, i have tried setting the ships mass higher but this does not help much and i would like to tone this down a bit, any help would be greatfullt appreciated! Thx!
500+ HardPointed Ships and counting! Man where do i find the time!

Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: Scripting Question
« Reply #1 on: October 09, 2010, 08:21:45 AM »
Should be controlled by scripts\Custom\NanoFXv2\ExplosionFX\ExpFX.py

particularly this part

Code: [Select]
       ### Add Rotational Spin to Ship From Torp Explosion 25% Chance##
        if (App.g_kSystemWrapper.GetRandomNumber(100) < 25):
            if (pEvent.GetDamage() >= 200):

The second line determines the chance a rotation will occur and the third how much damage has to be done to the ship to trigger the effect.

PS: You can disable rotations completely by turning off "Critical Hit Rotations"/"RotationFX" in the NanoFX config panel.

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Scripting Question
« Reply #2 on: October 09, 2010, 12:35:18 PM »
where have you BEEN, man?!
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet

Offline tiqhud

  • BCFiles File Poster
  • Posts: 1763
  • Cookies: 1067
  • San Francisco Shipyards (HPer) file manuiplater
Re: Scripting Question
« Reply #3 on: October 09, 2010, 04:09:08 PM »
I wonder if we can make it ship specific, doubt it, so I will not try YET.
TiqHud
you sir, are unable to strike, the port or starboard parts of hull , of a bovine storage facility.
Canon , what people argue exists, that doesn't really  exist.
It is all the little details, that cause headaches.
"Never judge wealth with Money"
'Intelligence has Nothing to do with Politics'
it is Late, Do you know where your Towel is?

Offline Worf359Alpha

  • Master HardPointer, Novice Scripter!
  • Posts: 131
  • Cookies: 14
  • Peace Thru Superior Firepower
Re: Scripting Question
« Reply #4 on: October 09, 2010, 10:53:30 PM »
Teleguy, Thanks So much !!! Cookie for you!

Hey king, ive been here there and almost everywhere, ive been taking a break from BC but now im back and i have been cannonizing my fleet, how bout you?

Tiq: That would be awsome!
500+ HardPointed Ships and counting! Man where do i find the time!