Jump to content
Sign in to follow this  
SejtanPL

My destroyed building doesn't work

Recommended Posts

Hi everyone.

This is the fragment of my config.cpp with my building pack:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class DestructionEffects

{

class Smoke1

{

simulation = "particles";

type = "HouseDestructionSmoke";

position = "destructionEffect1";

intensity = 0.15;

interval = 1;

lifeTime = 0.05;

};

class Smoke2

{

simulation = "particles";

type = "HouseDestructionSmoke2";

position = "destructionEffect1";

intensity = 0.15;

interval = 1;

lifeTime = 0.01;

};

class Smoke3

{

simulation = "particles";

type = "HouseDestructionSmoke3";

position = "destructionEffect1";

intensity = 0.15;

interval = 1;

lifeTime = 0.01;

};

class Smoke4

{

simulation = "particles";

type = "HouseDestructionSmoke4";

position = "destructionEffect1";

intensity = 0.15;

interval = 1;

lifeTime = 0.01;

};

class HouseDestr

{

simulation = "destroy";

type = "DelayedDestruction";

position = "";

intensity = 1;

interval = 1;

lifeTime = 1;

};

};

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class WM_dom1: House

{

scope = 2;

DisplayName = "Dom 01";

model = "\WM_buildings\WM_dom1.p3d";

vehicleClass = "WM_buildings";

armor = 200;

accuracy = 1000;

mapSize = 2;

destrType = DESTRUCTBUILDING;

class DestructionEffects : DestructionEffects

{

class Ruin1

{

simulation = "ruin";

type = "\WM_buildings\ruiny\WM_dom1_ruina.p3d";

position = "";

intensity = 1;

interval = 1;

lifeTime = 1;

};

};

};

Everything is ok..., but. The destroyed model of WM_dom1 doesn't work in game. I thinking it's a bad cfg, but when I change in cfg my custom ruin model to BI ruin model, like that: "type = "\ca\buildings\ruins\kasarna_ruins.p3d";" everything is ok. help.gif

PS: Sorry for my english :P

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  

×