Jump to content
Sign in to follow this  
DaSquade

Unit replacements cfgs + island check

Recommended Posts

Not sure where to post it as i didn't wanted to mess up other topics, but feel free to merg it into the replacement tutorial topic if that would be better (mods).

So i had this dream....

Nah, well with the release of Johns marines pack i was wondering if it is possible to somehow use his 2 styles.

What i mean is, would it be possible to have 'something' in a replacement cfg or side cfg so before loading a mission it checks what island it is. So if the island is mainly woods it would replace stock units with the woodland marpat camo units...if it is mainly desert island it would use the desert marpat units.

Like some sort of 'checkWorld' command or something in the lines of that with a list of worlds. So you user define all islands (Sahrani, porto and custom maps) in a list or group.

I suppose it isn't possible (noob here when it comes to scripting and cfg codes), but would be a nice addition aswell then we would be able to get twice as much candy.

Just wondering...

Share this post


Link to post
Share on other sites
@ Jan. 07 2008,17:12)]
edit: would it be possible for you to put in a global variable that will change the effects so its suitable for northern or southern sahrani? Then you can change the effect accordingly to the mission or by scripting/triggers?

There is a scripting function that checks surface type (snow/rock/sand/water) in given location. This would be easy to implement.

http://www.ofpec.com/COMREF....r=s#789

Just found this, but dont know if it applicable to replacement configs huh.gif

Share this post


Link to post
Share on other sites

It is possible - very complicated and many hacks need.

forget the idea. wink_o.gif

Share this post


Link to post
Share on other sites

I already dreamt of this...

I remember that in OFP, someone released a pack of rebels with random skins, with a setobjecttexture command.

So, I do believe that it is possible, technically speaking. But it would mean having a correctly configured addon, with a model able to change texture according to specific conditions.

What do you think ?

Malick

Share this post


Link to post
Share on other sites

Instead of making it switching automatically to the fitting textures, why not make a config that allows to use the different camos by the player. Right before starting a mission?

Perfectly it would even have a preview screen showing the camo you have chosen.

This would be a little breakthrough. But I'm not capable to do it. Maybe a top scripter is.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×