Penetrable objects

Discuss the future of Warzone 2100 with us.
Post Reply
User avatar
Tiuz
Rookie
Rookie
Posts: 30
Joined: 06 Jul 2008, 00:17

Penetrable objects

Post by Tiuz »

Hello Warzone Community,

For a small modding project i need a new object, that can be runed over by vehicles.
This could be a structure or a feature, but it must not disappear if a vehicle touch it like oil drums or an artefacts behave. Generally spoken an object without any collison features. Is there any possibility to add this to the game without alterating the source code?

Thank you for reply,

Tiuz.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Penetrable objects

Post by DevUrandom »

"GENERIC ARTEFACT", "BUILDING WRECK" and "OIL DRUM" are the feature types which do not block movement.
User avatar
Tiuz
Rookie
Rookie
Posts: 30
Joined: 06 Jul 2008, 00:17

Re: Penetrable objects

Post by Tiuz »

Hello DevUrandom,

Thank you for your reply. Unfortunately it does not solve my problem completely:

- Features of types "GENERIC ARTEFACTS" or "OIL DRUM" disapear if a unit touchs them. Can i disable this function anyway?
- I did not found any features of type "BUILDING WRECK" in the "features.txt" file. If i declare a feature as this type, it explodes without leaving any structure.

Regards, Tiuz.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Penetrable objects

Post by DevUrandom »

I am sorry, but I guess it is not possible to have that without a code change then. :(
User avatar
Tiuz
Rookie
Rookie
Posts: 30
Joined: 06 Jul 2008, 00:17

Re: Penetrable objects

Post by Tiuz »

A possible work around is to set baseWidth and baseBreadth of a structure to zero. However this modified structure can not be build up by construction droids or destroyed by waepons. Only way to create or remove it is to use script functions.

Tiuz.
Post Reply