PDA

View Full Version : Static Object Config



POPKA
Aug 22 2007, 21:16
Edit: Ok I learnt how to get a static object working, with help from OFPEC. Things are done a slightly bit differnet than in OFP configs

Basically once you've done your model and what not you create a config that looks a little like this say if you were creating a Crate:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgPatches
{
class MyCrate
{
units&#91;&#93; = {};
weapons&#91;&#93; = {};
requiredVersion = 0.10;
requiredAddons&#91;&#93; = {};
};
};

class CfgVehicleClasses
{
class MyObjects
{
displayName = &#34;My Objects&#34;;
};
};

class CfgVehicles
{
class nonstrategic;
class MyCrate&#58; nonstrategic
{
model=&#34;&#92;MyCrate&#92;Crate&#34;;
vehicleclass=&#34;MyObjects&#34;;
armor=15000;
scope=2;
displayname=&#34;My Crate Addon&#34;;
};
};
[/QUOTE]

And then the crate should look a bit like this if all the models done properly:

http://img214.imageshack.us/img214/4887/firstcrateqn2.jpg

StryDa
Aug 23 2007, 09:46
Thank you so much this will come in VERY handy&#33; As i don&#39;t know much about scripting and configs...

POPKA
Aug 23 2007, 10:22
I&#39;d also recommend taking a look at Linker split&#39;s tutorial on Normal Mapping to make your textures look better:

ftp://www.armedassault.info/armad....ial.pdf (ftp://www.armedassault.info/armad/other/LS_Normal_Specular_Mapping_Tutorial.pdf)