project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
09 Sep 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2014-11-26, 19:02   #11
Rhino
Retired PR Developer
Supporting Member

Rhino's Avatar
Default Re: [?] Help Exporting a Rocket / Missile Projectile

Quote:
Originally Posted by Grober View Post
How many tris is it out of interest and can we see an edged frame pic from a few angles? Also what rez are the textures saved at etc?

Quote:
Originally Posted by Grober View Post
if your could take a look at .con and .tweak that i have created i give me some feadback and check it
Ye, first of all the projectile shouldn't be a "SimpleObject" (which is what the dummy should be), it instead should be a "GenericProjectile", which you can set inside 3DsMax to stop it overwriting that kinda setting every time you export the object if you where to set it by hand in the code, by suffixing the name of each LOD with "__GenericProjectile", then the .con will create the object as a "GenericProjectile", but you will need to manually edit the .tweak file.



Edits in Red, also made some notes here and there and some things to check/redo are in Orange:

s24.con
Code:
GeometryTemplate.create BundledMesh s24
CollisionManager.createTemplate s24

ObjectTemplate.create GenericProjectile s24
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.creator DANIEL-PC:Daniel
ObjectTemplate.collisionMesh s24
ObjectTemplate.mapMaterial 0 metal 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType 3
ObjectTemplate.geometry s24

include s24.tweak
s24.tweak
Code:
rem *** Generated with Bf2Editor.exe [created: 2014/5/28 23:34]
GeometryTemplate.setSubGeometryLodDistance 1 0 80
GeometryTemplate.setSubGeometryLodDistance 1 1 150 - These need to be setup correctly, check this tut here: https://www.realitymod.com/forum/f18...distances.html
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.activeSafe GenericProjectile s24
ObjectTemplate.creator DANIEL-PC:Daniel
ObjectTemplate.modifiedByUser "Daniel"
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 9 - Same as tut above
rem ---BeginComp:Armor --- Been Removed
rem ---EndComp ---
rem ---BeginComp:DefaultCollisionComp ---
ObjectTemplate.createComponent DefaultCollisionComp
ObjectTemplate.collision.hasCollisionEffect 1
rem ---EndComp ---
rem ---BeginComp:DefaultDetonationComp ---
ObjectTemplate.createComponent DefaultDetonationComp
ObjectTemplate.detonation.explosionMaterial 70 - Have you checked though this mat, Explosion_blastwave (70), to ensure it has the kinda settings you want? Our Rockets tend to use Material 179 - PR_HYDRA_AIRTOGROUND for their exp material
ObjectTemplate.detonation.explosionRadius 80
ObjectTemplate.detonation.explosionForce 30
ObjectTemplate.detonation.explosionDamage 115
ObjectTemplate.detonation.endEffectTemplate e_exp_bomb - Have you checked this effect to ensure its correct? This is used by 500lb bombs, and this has a warhead of just 271lbs so might be a bit OTT? Might want to ask Bruno if he thinks its worth making a new effect and if so, if he can?
ObjectTemplate.detonation.useMMOnEndEffect 1
ObjectTemplate.detonation.detectionRadius 0
ObjectTemplate.detonation.maxDepthForExplosion 2
rem ---EndComp ---
rem ---BeginComp:DefaultProjSoundComp ---
ObjectTemplate.createComponent DefaultProjSoundComp
rem ---EndComp ---
rem ---BeginComp:SeekClosestTargetComp ---
ObjectTemplate.createComponent SeekClosestTargetComp
ObjectTemplate.seek.targetType TTUnique
ObjectTemplate.seek.trackingDelay 0
ObjectTemplate.seek.maxAngleLock 180
ObjectTemplate.seek.maxDistLock 3000
ObjectTemplate.seek.reLockTime 0
rem ---EndComp ---
rem ---BeginComp:DefaultFollowComp ---
ObjectTemplate.createComponent DefaultFollowComp
ObjectTemplate.follow.maxYaw 0
ObjectTemplate.follow.maxPitch 0
ObjectTemplate.follow.changePitch 0
ObjectTemplate.follow.changeYaw 0
ObjectTemplate.follow.minDist 0
rem ---EndComp ---
rem ---BeginComp:DefaultPenetrateComp ---
ObjectTemplate.createComponent DefaultPenetrateComp
ObjectTemplate.penetrate.allowSolidPenetration 0
ObjectTemplate.penetrate.allowLiquidPenetration 0
rem ---EndComp ---
ObjectTemplate.geometry s24
ObjectTemplate.setCollisionMesh s24
ObjectTemplate.mapMaterial 0 metal 32
ObjectTemplate.mass 235
ObjectTemplate.gravityModifier 0.66
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Point
ObjectTemplate.collisionGroups 8
rem -------------------------------------
ObjectTemplate.addTemplate e_missile_trail - Might want a different trail effect
ObjectTemplate.setPosition 0/0/-0.7 - you will need to place yours correctly.
rem -------------------------------------
ObjectTemplate.material 56 - This mat is used by Anti-Tank ATG missiles such as the hellfire to control direct contact with a vehicle/object damage, but this rocket is pretty large so dose sound about right
ObjectTemplate.damage *** - you will need to work out the correct amount of contact damage from the above material for this rocket.
ObjectTemplate.hasOnTimeEffect 1
ObjectTemplate.tracerSizeModifier 0
ObjectTemplate.acceleration 792.2 - You will need to work this out
ObjectTemplate.maxSpeed 740 - And this.
s24_dummy.con
Code:
GeometryTemplate.create BundledMesh s24_dummy
CollisionManager.createTemplate s24_dummy

ObjectTemplate.create SimpleObject s24_dummy
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.collisionMesh s24_dummy - You will need to make one as per my above post
ObjectTemplate.mapMaterial 0 col_metal 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType 3
ObjectTemplate.geometry s24

include s24_dummy.tweak

s24_dummy.tweak
Code:
GeometryTemplate.setSubGeometryLodDistance 0 0 *** - Need distances as per above tut
GeometryTemplate.setSubGeometryLodDistance 0 1 ***
GeometryTemplate.setSubGeometryLodDistance 0 2 ***
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.castsDynamicShadow 1
ObjectTemplate.activeSafe SimpleObject s24_dummy
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale *** - Needs cull distance as per above tut
ObjectTemplate.geometry s24
ObjectTemplate.setCollisionMesh s24_dummy - Needs making
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
ObjectTemplate.mapMaterial 0 metal 32

Rhino is offline Reply With Quote
Old 2018-02-01, 11:42   #12
DogACTUAL

DogACTUAL's Avatar
Default Re: [?] Help Exporting a Rocket / Missile Projectile

Any update on this project? Was this model of the rocket abandoned?
DogACTUAL is offline Reply With Quote
Reply


Tags
bomb, dummy, exporting, missile, projectile, questions, rocket, rocket or missile

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



All times are GMT. The time now is 12:27.