Attach Static Object to PCO?

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Attach Static Object to PCO?

Post by Swaffy »

I'd like to make a tank and add wooden planks on the sides of it to block projectiles. They would act as "junkyard armor" (supplemental armor).
In short, if a player hits the extra armor, no direct damage will be dealt. But if they hit the tank body, normal damage will be dealt.

Would this have to be on the same 3D model file with different material IDs, or can I just add a [solid] static object to the PCO?

I think I remember someone asking this before, so that's why I'm asking. (And yes, I am actually trying this.)
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
archer
Posts: 54
Joined: Fri Feb 05, 2010 4:40 pm
Location: Übertów
Contact:

Re: Attach Static Object to PCO?

Post by archer »

Both ways work. You can make the armour a simpleobject with mobile, collision and response physics, then attach it to the vehicle's Complex bundle by AddTemplate. The armour needs to have a material ID that does not take any damage when hit. You can also also add the armour to your vehicle's mesh. As long as it has the proper material ID, the vehicle will not take damage when hit.
dzn.battlefield.pl - my Bf1942 modding website
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Attach Static Object to PCO?

Post by Swaffy »

I'm talking about a static object that you can shoot, but that's it. You know ... how static objects can get hit all they want but don't move or get damaged.

Hmm. I'll add wooden planks to the vehicle and see what happens.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: Attach Static Object to PCO?

Post by Dennis|8749236 »

The static object attached to the vehicle take no damage from any projectiles..
I tested it b4..
What is the meaning of Life?? (Don't think about it!)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Attach Static Object to PCO?

Post by Swaffy »

I made a video:



(link) http://www.youtube.com/watch?v=M6HAMSqeNEk

Thanks for clearing that up.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply