|
|||||||
| PR Community Modding : Discussion on PR community mod projects. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 |
![]() Join Date: Sep 2007
Location: calgary,ab,canada
Posts: 982
|
[Question] destroyable statics?
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? |
|
|
|
#2 |
|
PR Developer
![]() Join Date: May 2006
CanadaLocation: Alliston
Posts: 3,359
|
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 |
|
|
|
|
|
#3 |
![]() Join Date: Apr 2007
United KingdomLocation: Peterhouse college, Cambridge
Posts: 2,679
|
The wrecks do have health, I am sure about the vehicle wrecks anyway.
Perhaps splitting the file by importing code might work, like the common code for projectiles? 2 stage destruction would be really worth it. You could flatten the buildings on Al Basrah and have different stages of destruction for cars. |
|
Ballistics + Zeroing !!!Nedlands1 for [R-CON]!!! (Done) !!!Nedlands1 for [R-DEV]!!!
|
|
|
|
|
#4 |
![]() Join Date: Aug 2007
NetherlandsLocation: Groningen
Posts: 1,546
|
and midair explosions on jets choppers
|
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| destroyable, question, statics |
| Thread Tools | |
| Display Modes | |
|
|