problem with a custom spawning object -1 reply

Please wait...

benseras

:-)

50 XP

3rd June 2005

0 Uploads

266 Posts

0 Threads

#1 13 years ago

My Problem: in my Map there is comming spawning artillery fire from above - the object looks nice - its a modificated kubelwagen with a addtemplate but when it falls to ground there appears nothing! -->it should have this nice explosion when the howitzer bullet hits the ground-->that big dirt - i dont know the real name of the effect.

I think interesting are these lines:

rem *** Kubelwagen *** ObjectTemplate.create PlayerControlObject Kubelwagen_z ObjectTemplate.setNetworkableInfo KubelwagenBodyInfo ObjectTemplate.saveInSeparateFile 1 objectTemplate.cullRadiusScale 2.5 ObjectTemplate.hasMobilePhysics 1 ObjectTemplate.hasDynamicShadow 1 ObjectTemplate.explosionRadius 20 ObjectTemplate.explosionDamage 20 ObjectTemplate.drag 1.5 ObjectTemplate.mass 5000 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.hasResponsePhysics 1 ObjectTemplate.damageFromWater 1 ObjectTemplate.hasArmor 1 ObjectTemplate.speedMod 1 ObjectTemplate.exitTimer 0.75 ObjectTemplate.hitpoints 3 ObjectTemplate.maxhitpoints3 ObjectTemplate.material 45 ObjectTemplate.criticalDamage 2 ObjectTemplate.explosionForceMod 40 ObjectTemplate.hpLostWhileCriticalDamage 2 ObjectTemplate.hpLostWhileUpSideDown 5 ObjectTemplate.hpLostWhileDamageFromWater 5 ObjectTemplate.addArmorEffect 25 e_Kubeldamage 0/1.2/0 ObjectTemplate.addArmorEffect 6 e_KubelFire 0/1.2/0 ObjectTemplate.addArmorEffect 0 e_scrapmetal_willy 0/0/0 ObjectTemplate.addArmorEffect 0 e_ExplGas 0/1.2/0 ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0 ObjectTemplate.aiTemplate Kubelwagen ---------------------

the only one effect i need is the Kubelfire,the others do not fit - but whenn i change for example e_scrapmetal -->nothing appears! Hope here are some coder ace´s:)




CamelNele

Norwegian Resistance

50 XP

21st May 2005

0 Uploads

27 Posts

0 Threads

#2 13 years ago

What ? Someone called for a coder ? :naughty: Well, do you want the KubelFire-effect all the time ? Since you have only 3 hitpoints, but the effect starts at 6, it would allways be there. Is this a map for FH ? The problem here might be, that you have the wrong MaterialID in the code and on the model. Forgotten Hope uses an own MatID-system with totally different numbers. But maybe you don't have a collision at all, because i can't see any model here. You should list all of the code for this object first, else i can never talk precisely. winkx.gif (I also allways "rem"-out the aiTemplate-lines. You never know, they can cause serious problems.) ________ Edit: Oh, and there is an "autobomb" in the Norwegian Resistance-AddOn for FH, which i coded. It looks like a bomb, but is based on the same (willi-)code.)




benseras

:-)

50 XP

3rd June 2005

0 Uploads

266 Posts

0 Threads

#3 13 years ago

thank u for comming close to my problem:) You are right -it´s an object for a FH-Map and when it´s a bit funny that it was the kubelwagen - but u dont see something of the car parts at all;) Yey - the fire should be there all the time when it is coming down - but the other effects don´t fit. I thought that it has something to do with the material code - but i don´t know how i have to do it. Should i really list all the code? OK here we go:) : the physic.con --------------- rem *** KubelwagenEngine *** ObjectTemplate.create Engine KubelwagenEngine ObjectTemplate.setNetworkableInfo KubelwagenEngineInfo ObjectTemplate.setAttachToListener 1 ObjectTemplate.loadSoundScript Sounds/KubelwagenEngine.ssc ObjectTemplate.hasMobilePhysics 1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.hasResponsePhysics 1 rem ------------------------------------- ObjectTemplate.addTemplate KubelwagenFrontWheelL ObjectTemplate.setPosition -0.627/-0.007/1.2 ObjectTemplate.addTemplate KubelwagenFrontWheelR ObjectTemplate.setPosition 0.628/-0.007/1.2 ObjectTemplate.addTemplate KubelwagenBackSpringR ObjectTemplate.setPosition 0.628/-0.423/-1.230 ObjectTemplate.addTemplate KubelwagenBackSpringL ObjectTemplate.setPosition -0.627/-0.423/-1.230 rem ------------------------------------- ObjectTemplate.setMinRotation -1/0/-1 ObjectTemplate.setMaxRotation 1/0/1 ObjectTemplate.setMaxSpeed 10/0/10 ObjectTemplate.setAcceleration 10/0/10 ObjectTemplate.setInputToYaw c_PIYaw ObjectTemplate.setInputToRoll c_PIThrottle ObjectTemplate.setAutomaticReset 1 ObjectTemplate.setEngineType c_ETCar ObjectTemplate.setTorque 10.5 ObjectTemplate.setDifferential 7 ObjectTemplate.setNumberOfGears 5 ObjectTemplate.setGearUp 0.95 ObjectTemplate.setGearDown 0.4 ObjectTemplate.setGearChangeTime 0.05 rem *** KubelwagenFrontSpringL *** ObjectTemplate.create Spring KubelwagenFrontSpringL ObjectTemplate.setNetworkableInfo SpringInfo ObjectTemplate.geometry Kubelwagen_WheelL_M1 ObjectTemplate.hasMobilePhysics 1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.hasResponsePhysics 1 ObjectTemplate.Grip c_PGFRollGrip rem ------------------------------------- ObjectTemplate.addTemplate e_wdustWheelFL ObjectTemplate.addTemplate e_wdustWheelF ObjectTemplate.addTemplate e_wdirtWheel rem ------------------------------------- ObjectTemplate.setStrength 25 ObjectTemplate.setDamping 5 rem *** KubelwagenFrontSpringR *** ObjectTemplate.create Spring KubelwagenFrontSpringR ObjectTemplate.setNetworkableInfo SpringInfo ObjectTemplate.geometry Kubelwagen_WheelR_M1 ObjectTemplate.hasMobilePhysics 1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.hasResponsePhysics 1 ObjectTemplate.Grip c_PGFRollGrip rem ------------------------------------- ObjectTemplate.addTemplate e_wdustWheelFL ObjectTemplate.addTemplate e_wdustWheelF ObjectTemplate.addTemplate e_wdirtWheel rem ------------------------------------- ObjectTemplate.setStrength 25 ObjectTemplate.setDamping 5 rem *** KubelwagenBackSpringR *** ObjectTemplate.create Spring KubelwagenBackSpringR ObjectTemplate.setNetworkableInfo SpringInfo ObjectTemplate.geometry Kubelwagen_WheelR_M1 ObjectTemplate.hasMobilePhysics 1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.hasResponsePhysics 1 ObjectTemplate.Grip c_PGFEngineGrip rem ------------------------------------- ObjectTemplate.addTemplate e_wdustWheelFL ObjectTemplate.addTemplate e_wdustWheelF ObjectTemplate.addTemplate e_wdirtWheel rem ------------------------------------- ObjectTemplate.setStrength 25 ObjectTemplate.setDamping 5 rem *** KubelwagenBackSpringL *** ObjectTemplate.create Spring KubelwagenBackSpringL ObjectTemplate.setNetworkableInfo SpringInfo ObjectTemplate.geometry Kubelwagen_WheelL_M1 ObjectTemplate.hasMobilePhysics 1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.hasResponsePhysics 1 ObjectTemplate.Grip c_PGFEngineGrip rem ------------------------------------- ObjectTemplate.addTemplate e_wdustWheelFL ObjectTemplate.addTemplate e_wdustWheelF ObjectTemplate.addTemplate e_wdirtWheel rem ------------------------------------- ObjectTemplate.setStrength 25 ObjectTemplate.setDamping 5 --------------------- but i think that u dont see anything of what is listed here... the geometries.con: ------------- GeometryTemplate.create StandardMesh projectile GeometryTemplate.file ../bf1942/levels/XXX/standardmesh/projectile_m1 GeometryTemplate.hasDynamicShadow 1 GeometryTemplate.setLodDistance 0 0 GeometryTemplate.setLodDistance 1 10 GeometryTemplate.setLodDistance 2 20 GeometryTemplate.setLodDistance 3 50 GeometryTemplate.setLodDistance 4 100 GeometryTemplate.setLodDistance 5 200 ------------- that was all...when u tell me my mistake i will thank u so much - i must say that the object looks nice- it looks like an artillery grenade but it falls through the ground - notice:when it hits a tank - it makes some damage to it - but at the groung nothing happens:uhm: greetings :beer: Gerade gesehen - wir können ja auch auf deutsch - was dagegen wenn ich dich ma im icq anschreibe...