Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TrashMan on February 20, 2007, 04:17:38 pm

Title: Weapon wierdness????
Post by: TrashMan on February 20, 2007, 04:17:38 pm
I have experienced weapons acting funny in really simple missions (not the ones that push your hardware).

The first strange things is when I was testing the rebalanced shivan weapons. I gave them quite a bigger punch - the SF Aeshma has two Shivan Mega Lasers that do 82 damage each.

The thing is when they hit my heavy fighter, that is fully shielded, I loose about 20-25% of my hull, sometimes more!
And the bigger the damage of the weapon that shoots me, the more damage goes trough?!?!?
(In this mission, it was just my fighter, 5 friendly sentry guns and 6 enemy fighters)



The second wierd thing happened when I was texting a quick mission - 2 destroyers duke it out, each with a fighter wing as support. I flew my Lightbringer bomber (with a beam cannon).
Now since I rebalanced my ships destroyers have 180000-200000 Hp and a single hit from that bomber beam can do 3-4% damage. I destroy the enemy destroyer easily and then when I out of fun attacked mine I noticed something strange. The beam doesn't any damage to it! (ship was under 40% HP).
Now I'm stil ltesting things, maby I forgot some flag or something on the beam cannon, but I just though I mention it anyway...
Title: Re: Weapon wierdness????
Post by: phreak on February 20, 2007, 08:33:44 pm
friendly fire from beams is capped at a certain value depending on difficulty level.  The values go 0,5,10,20,30 points of damage (VE to insane).  Now since this is in "points" and not a percentage, the maximum your beam will ever do to friendlies is around 30 points of damage (about as much as a prometheus).  This method needs to stay since retail never did support beams on player ships.  Plus it prevents you from getting killed by friendly beams unless you're low on hull.
Title: Re: Weapon wierdness????
Post by: TrashMan on February 21, 2007, 04:18:58 pm
well, that explains problem no2, but what about the first one?

what good is a 1000hp shiled fighter is 90% of the damage gets trough?
Title: Re: Weapon wierdness????
Post by: TrashMan on February 23, 2007, 04:43:03 pm
Any clues on this yet?
Title: Re: Weapon wierdness????
Post by: Snail on February 23, 2007, 05:26:32 pm
Check your

$armor factor: and
$shield factor:

fields...
Title: Re: Weapon wierdness????
Post by: TrashMan on February 23, 2007, 06:11:50 pm
You think that's it?

Does it really matter what  I set the armor factor to if the shield factor is 1.0 and my shields are full?

consequently:

$Name:     Shivan Mega Laser
$Model File:                    none ;  laser1-1.pof
@Laser Bitmap:                     laserglow03
@Laser Glow:                     Alouqua_Glow
@Laser Color:                     0, 0, 200
@Laser Color2:                     91, 50, 00
@Laser Length:                     3.4
@Laser Head Radius:                  3.2
@Laser Tail Radius:                  3.2
$Mass:                                  0.3
$Velocity:                              400.0                           
$Fire Wait:                             0.75
$Damage:                                76
$Armor Factor:                  1.0
$Shield Factor:                 0.6
$Subsystem Factor:              1.0
$Lifetime:                              1.5
$Energy Consumed:               0.90                           
$Cargo Size:                    0.0                             
$Homing:                                        NO
$LaunchSnd:                             108                                     
$ImpactSnd:                             85                                     
$Flags:                                 ( "particle spew" )
$Trail:                                             
   +Start Width:                        0.2                                         
   +End Width:                           0.3                                         
   +Start Alpha:                        0.25
   +End Alpha:                           0.0
   +Max Life:                           0.1                                             
   +Bitmap:                           Alouqua_Trail
$Icon:                                  icongun05
$Anim:                                  LoadGun07
$Impact Explosion:                  Shivan_Impact01
$Impact Explosion Radius:            3.5
$Pspew:
+Count: 1
+Time: 9
+Vel: 0.31
+Radius: 0.25
+Life: 0.4
+Scale: 0.0 
+Bitmap: Shivan_Laser_Stream
$decal:
   +texture:   Medium_Decal
   +radius:   0.3
Title: Re: Weapon wierdness????
Post by: takashi on February 23, 2007, 11:44:59 pm
now im no pro....but i think i know whats going on.

if you make it do so much damage...dont you think its punching straight through your shields? weaken a ship to nothing but 1% shield s and shoot it with a powerful weapon (like the prometheus S, or since you delight in table edits, the shivan mega laser). tell me if the same thing happens.
Title: Re: Weapon wierdness????
Post by: Bobboau on February 24, 2007, 05:34:20 am
if you kill the shields the left over damage is applied to the hull, I think there is also some code that lets a small amount of damage leak in, but I'm not sure about that.
Title: Re: Weapon wierdness????
Post by: takashi on February 24, 2007, 02:51:51 pm
thats what i said. :wtf:
Title: Re: Weapon wierdness????
Post by: TrashMan on February 24, 2007, 04:20:49 pm
But the shields were at 100%....
Title: Re: Weapon wierdness????
Post by: takashi on February 25, 2007, 08:40:32 pm
you must have a rely sooped up weapon then.
Title: Re: Weapon wierdness????
Post by: TrashMan on February 26, 2007, 05:14:08 am
Weapon entry is written above. (76 damage per shot)
The fighter has 500 shields and 275 hull.

I'm killed in 4-6 shots

I liek it when the shivans are dangerous, but the shields should do something.. IT's liek they're not even there...
Title: Re: Weapon wierdness????
Post by: phreak on February 26, 2007, 08:52:51 am
Weapon entry is written above. (76 damage per shot)
The fighter has 500 shields and 275 hull.

I'm killed in 4-6 shots

I liek it when the shivans are dangerous, but the shields should do something.. IT's liek they're not even there...

That 500 shields is the total shield amount when added up over the 4 quadrants.  In reality you only have 125 shields per quadrant
Title: Re: Weapon wierdness????
Post by: TrashMan on February 26, 2007, 04:24:37 pm
But why does the FIRST shot get my hull to 86%?

In theory, that should get my rear shield down to 49...

Maby I'm jsut imagining things... I'm gonna play the mission again.
Title: Re: Weapon wierdness????
Post by: takashi on February 26, 2007, 09:50:05 pm
power down your weapon. SML's should never be that powerful...exept maybe on insane mode.
Title: Re: Weapon wierdness????
Post by: TrashMan on February 28, 2007, 02:55:35 pm
Just tested it agin - my shields aren't even scratched! EVERYTHING goes right trough them!

Strange thing is - other weapons (ship turrets, Subachs, flak...) work normally. I think this might be a strange bug..
Title: Re: Weapon wierdness????
Post by: TrashMan on March 01, 2007, 04:12:42 pm
LOL...even stranger - this only happens for the test model of my HTL Phoenix fighter. It's like it doesn't have shields at all!
Title: Re: Weapon wierdness????
Post by: Turey on March 01, 2007, 04:43:17 pm
LOL...even stranger - this only happens for the test model of my HTL Phoenix fighter. It's like it doesn't have shields at all!

Which begs the (quite obvious) question, "Does it have shields?"
Title: Re: Weapon wierdness????
Post by: TrashMan on March 01, 2007, 04:50:51 pm
 :lol:

I just checked.. I forgot to import the shield from the previous version :o!

How the hell could I have missed somethnig so OBVIOUS when I was making the pof? :lol:  :nervous:
Title: Re: Weapon wierdness????
Post by: takashi on March 02, 2007, 05:18:26 pm
or just do what other modders do.

Code: [Select]
$flags: ( "surface shields" "player ship" generate icon" )
Title: Re: Weapon wierdness????
Post by: Turey on March 02, 2007, 05:20:44 pm
or just do what other modders do.

Code: [Select]
$flags: ( "surface shields" "player ship" generate icon" )

No.

Surface shields don't have the same feel as a real shield.
Title: Re: Weapon wierdness????
Post by: takashi on March 02, 2007, 10:57:20 pm
1)get PCS.
2)get VP mage
3)extract "models" from sparky_fs2.vp.
4)import shield data.
5)keep surface shields incase something goes wrong.
6)power down shivan mega laser.

if you followed these steps any sensible person would follow to get decent shields, then you are "cured"! otherwise, if problems persist, wait for 3.7, which comes with new feutures and new fixes. be aware that the later takes a few years.