[Question] destroyable statics?

Making or wanting help making your own asset? Check in here
Post Reply
zangoo
Posts: 978
Joined: 2007-09-01 03:42

[Question] destroyable statics?

Post by zangoo »

ok i am just wondering a few things about destroyable. like how does the destroyable static tell the engine what wreck to use? the wreck for a large bunker has almost the same code, it is just missing

ObjectTemplate.setNetworkableInfo BasicInfo

ObjectTemplate.activeSafe DestroyableObject

ObjectTemplate.isDestructable 1

and

rem ---BeginComp:Armor ---
ObjectTemplate.createComponent Armor
ObjectTemplate.armor.maxHitPoints 100
ObjectTemplate.armor.hitPoints 100
ObjectTemplate.armor.defaultMaterial 78
ObjectTemplate.armor.waterLevel -0.3
ObjectTemplate.armor.explosionDamage 1
ObjectTemplate.armor.explosionMaterial 78
ObjectTemplate.armor.wreckExplosionMaterial 78
ObjectTemplate.armor.wreckHitPoints 100
ObjectTemplate.armor.timeToStayAsWreck -1
ObjectTemplate.armor.timeToStayAfterDestroyed -1
ObjectTemplate.armor.wreckDelay 0.05
ObjectTemplate.armor.canBeDestroyed 0
ObjectTemplate.armor.showDamageAsDirt 500
ObjectTemplate.armor.addArmorEffect 0 e_mexp_m_prbuilding -0.046982/1.36782/0.058744 0/0/0
rem ---EndComp ---

so if you were to give the wreck the same code could you make the wreck destroyable too? i am guessing the wreck has no networkable info cus it has no health, right?
IronTaxi
Retired PR Developer
Posts: 4925
Joined: 2006-05-31 12:56

Post by IronTaxi »

if you wanted the wreck to be destroyable (which im not exactly sure why) you would need a 3rd geometry which would be the completely detroyed state..

Geom 0 - intact
Geom 1 - destroyed
Geom 2 - gone...

not sure why you would want to do this
Mora
Posts: 2933
Joined: 2007-08-21 12:37

Post by Mora »

and midair explosions on jets choppers :)
Post Reply

Return to “PR:BF2 Community Modding”