Jump to content
WTRAdmin

"Hit Boxes" on custom objects - not being recognized

Recommended Posts

Gents / All,

 

Could use a little help.  On a few custom models, when weapons such as bombs, rockets, etc. strike the model, the game is not registering a "hit".  And therefore, not displaying the destroyed .lod file.  We have set the armorvalue and damagepoints to 0 and used a stock destroyed .lod to validate, but the destroyed .lod never appears.  Any ideas on why that would be happening? 

Share this post


Link to post
Share on other sites

Does the model_DATA.ini have:

 

[GroundObjectData]
DamagedModel=
DestroyedModel=Tank_Destroyed.LOD     <---------- This entry
DestroyedEffect=VehicleFireEffect

 

or

 

Is the model in the terrain_types.ini?

 

[TargetType001]
Name=barrack1
FullName=Barrack
ModelName=barrack1.lod
TargetType=BUILDING
ActiveYear=0
TargetValue=20
UseGroundObject=FALSE
DamagePoint=10.0
ArmorValue=0.0
ArmorType=0
RepairRate=0.150
StartDetectChance=0
StartIdentifiedChance=0
IncreaseDetectChanceKey=0
MaxVisibleDist=8000.0
DamagedModel=
DestroyedEffect=MediumShortStructureCollapse
DestroyedModel=barrack1_destroyed                   <---------- This entry
SecondaryChance=25
SecondaryEffect=SmallExplosionEffect

Share this post


Link to post
Share on other sites

im assuming you have set collision co-ords and min max extents also...?

 

from my mig21 data.INI...

 

MinExtentPosition=-0.60,-6.12,-0.66
MaxExtentPosition= 0.60, 0.19, 1.06
CollisionPoint[001]= 0.00, 0.74, 1.06
CollisionPoint[002]= 0.00, 0.74,-0.60
CollisionPoint[003]= 0.60, 0.74, 0.00
CollisionPoint[004]=-0.60, 0.74, 0.00
CollisionPoint[005]= 0.00,-6.12,-0.49
CollisionPoint[006]= 0.00,-6.12, 0.49
CollisionPoint[007]= 0.49,-6.12, 0.00
CollisionPoint[008]=-0.49,-6.12, 0.00

Share this post


Link to post
Share on other sites

Don't forget that after SF2: North Atlantic came out naval objects need a collision LOD. 

 

From the ThirdWire California Class cruiser. 

 

 [GroundObjectData]

DamagedModel=
DestroyedModel=
DestroyedEffect=ShipDestroyedEffect
DamageEffect=ShipFireEffect
SystemDamageEffect=ShipSystemFireEffect
CollisionMesh=CGN-36_COL.LOD                   <---------- Needed for weapons to impact the object.
SinkTime=63.0
EmptyMass=11501120.0
Component[001]=Hull
Component[002]=Superstructure

Share this post


Link to post
Share on other sites

Appreciate you taking time out to offer your suggestions!  This was for a terrain_types.ini building/factory object.  I believe we have resolved the error, but just need to run a few more tests to confirm.  Strangely enough, it appears to have been related to a DamagePoint entry being set too high...but still need to validate!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..