• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Weapons Object DP

kwb737

Charter Member
Does anyone have the time to explain what these numbers are and what they control in a Weapons Object DP file 500 LB Bomb? Thanks.

[BOXES]
box.0=%box_name.0%,-1.26,-0.08,-2.74,1.26,5.76,2.74

[SYSTEMS]
system.0=%system_name.0%,2000,21

[BOXMAPS.0]
; Box = bomb_0
boxmap.0=100,21

[EFFECTS.0]
; System = bomb
effect.0=10,LIBRARY,fx_fuelleak_s,
effect.1=30,LIBRARY,fx_oilleak_m,
effect.2=50,LIBRARY,fx_fuelleak_m,
effect.3=95,LIBRARY,fx_airexpl_s,
effect.4=100,BOMB,,

[GUNSTATIONS]
gunstation.0=3,21,8,0.00,0,0,0,0,0,0,1d1*5000,0,0,0,0,0,0,0,0,0,0,8000

[guns.0]
gun.0=1,0,0,0,0,0,0



[MISC_DATA]
unit_family=4
category=37
max_weight=227
weapon_type=2

[STRINGS]
"box_name.0"=bomb_0
"system_name.0"=Bomb
 
So Many Tiny Bits.....

Copy this and save it somewhere - It's all good info scraped from past discussions. Some extrapolation will be necessary for you to understand how the other sections interact - I'm going to show the info for bomb ratings here:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
One thing to remember when working with bombs in CFS2;
CFS2 creates bomb damage in two very different ways.

1. If the bomb strikes the targets' DP Boxes, the hit point number in the Bombs DP is applied to the target.

In case 1 the damage value in the bombs DP Gunstation section is used.

A 1000lb bomb looks like this:

([GUNSTATIONS]
gunstation.0=3,21,8,0.00,0,0,0,0,0,0,1d1*10000,0,0 ,0,0,0,0,0,0,0,0,16000

It delivers 10,000 Hit Points to the directly to the DP of the object it hits. Pretty simple and straight forward so far. If the bomb/rocket makes a direct hit, it acts just like a bullet as far as the target DP is concerned.

2. If the bomb strikes the ground next to the target, CFS2 uses 3 different FX's depending on the weapon_type in the bombs DP.

This is where things get messy. First off, there are 4 different “weapon_type”s that cover all of the different bombs:

Type 1 is the lightest, like the 30 & 60kg and 250Lb’ers.
Type 2 covers the 250kg and 500lb bombs.
Type 3 is for the 1,000lb bomb
Type 4 is used by the 800kg and 2,000lb bombs.

Now that that’s clear, let’s make mud.

When a bomb strikes the ground in CFS2 the program selects one of 3, yes 3 and not 4 FX to trigger.

You’d think there would be 4 FX, since there are 4 different weapons types, right?

Nope. Here’s how things work out. The 3 Effects are the fx_gndexpl_s, m & l. Type 1 bombs use the “s” FX. Type 2 uses the “m” FX and Types 3 & 4 both use the “l” FX.

And that is how CFS2 Damages ground objects with Bombs!
~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Back
Top