Go Back   Project Reality Forums > Project Reality Mod Forums > PR Community Modding
PR Community Modding : Discussion on PR community mod projects.

Welcome to the Project Reality Forums! Join the Project Reality forums! Contact Us


Reply
 
LinkBack Thread Tools Display Modes
Old 01-28-2008, 02:46 PM   #1

zangoo's Avatar
[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?
zangoo is offline Reply With Quote
Old 01-28-2008, 07:39 PM   #2
PR Developer

[R-DEV]IronTaxi's Avatar
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

[R-DEV]IronTaxi is offline Reply With Quote
Old 01-29-2008, 11:53 AM   #3
Gameserver Moderator

Jonny's Avatar
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]!!!
Jonny is offline Reply With Quote
Old 01-29-2008, 01:33 PM   #4

Mora's Avatar
and midair explosions on jets choppers

Mora is offline Reply With Quote
Reply


Bookmarks

Tags
destroyable, question, statics
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 08:33 AM.


Powered by: vBulletin. ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO.
All Content Copyright ©2004 - 2008, Project Reality.