[?] Coding Modular Veichles?

Making or wanting help making your own asset? Check in here
Post Reply
Ekalbs
Posts: 21
Joined: 2009-07-05 16:47

[?] Coding Modular Veichles?

Post by Ekalbs »

Hi there! I am making a few models for the bf2 engine and am wondering if its possible to have vehicle be damaged in only certain parts. For example a hostage rescue in a real ship(one that functions like a vehicle), so there's a door that can be blow open, and then inside more doors, and then you lets say have to plant bombs in the engine room to destroy it. Or another example turrets on a destroyer being destroyed without effecting the rest of the ship? And the only way the ship can be destroyed is by bomb in amou cash? If so how, Thanks and keep up the good work.

Ekalbs, hope i did that right and made it understandable.
Smegburt_funkledink
Posts: 4080
Joined: 2007-11-29 00:29

Re: [?][Veichle][Codeing] Modular Veichles

Post by Smegburt_funkledink »

Vehicles such as MBTs in PR have a kinda randomized damage system. Eg, the vehicles 'health' goes below a certain percentage, causing either the turret to stop working or the tracks to break. It's not possible to have the tracks disable specifically by being hit in the tracks themselves. This is what I've heard, I have no BF2 coding knowledge.

I'm not sure how 'child objects' work though. If the destructable sections in question arent operational objects, it's worth looking into that, if any of what I've said is correct.
[R-Div]Robbi "There's nothing more skanky than eating out of a tub of hummus with a screwdriver."
[R-DEV]Matrox "CHINAAAAAAA!!!"
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [?][Veichle][Codeing] Modular Veichles

Post by Rhino »

destructible children are not possible in bf2.

the only way that would be possible is to have your ship as a staticmesh made up of many separate statics, some being destroyable some not, but as its a static it would not be able to move.
Image
Ekalbs
Posts: 21
Joined: 2009-07-05 16:47

Re: [?][Veichle][Codeing] Modular Veichles

Post by Ekalbs »

[R-DEV]Rhino wrote:destructible children are not possible in bf2.

the only way that would be possible is to have your ship as a staticmesh made up of many separate statics, some being destroyable some not, but as its a static it would not be able to move.
ahh i c thanks rhino
e-Gor
Retired PR Developer
Posts: 3752
Joined: 2006-03-06 22:40

Re: [?] Coding Modular Veichles?

Post by e-Gor »

I spent a while experimenting with something similar back in the early days of BF2 - long before I joined PR. You could try playing around with object spawners using 'holdobject', but from what I remember that wasn't exactly glitch free, and I'm not sure I ever got it working on a dedicated server.
Post Reply

Return to “PR:BF2 Community Modding”