func_statics with constructibles 1/2 work...


(hummer) #1

So, I’m building some MG42 nests. Everything runs great… the misc_gamemodels for the crates, flag, and sandbags all construct deconstruct properly, as goes the mg42. The entites are set up correctly, as far as I can tell.

The problem is, when the map is first loaded, the func_static which makes up the clipping on the construction materials, as well as the flag pole do not work. The pole shows up, but you can walk through the clipping, as well as the pole. If you hit it right, the screen starts to vibrate violently, but you can still walk out. Also, when you shoot the clipping, bullets ricochet off… in the right places… the clippig just doesn clip.

The entity can still be constructed. When it is, the sandbags, mg42, and clipping for the sandbags show up properly.

The part that gets me, is when I blow the mg42 nest… the clipping on the boxes works and is now solid. So, it only doesnt work initially.

So, I’m not really sure what’s happening here… looking at the fueldump bsp, there’s misc_constructiblemarkers, which serve as func_statics, although they appear to be unsupported (or become func_statics) in the documentation.

The func statics have origin brushes ala the documentation. The clip boxes are made of wood weap clip, and the pole is made of a wood texture.

here is the script section regarding the mg42

alliedmg42
{
	spawn
	{
		wait 200

		constructible_class 2
		
		setstate alliedmg42gun invisible
		setstate alliedmg42crates default
	}

	buildstart final
	{
		setstate alliedmg42gun  underconstruction
	}

	built final
	{
		setstate alliedmg42gun default
		setstate alliedmg42crates invisible

		// Some kind of UI pop-up to alert players
		wm_announce	"Allied team has constructed the Ridge MG Nest!"
	}

	decayed final
	{
		setstate alliedmg42gun  invisible
		setstate alliedmg42crates default
	}

	death
	{
		setstate alliedmg42gun  invisible
		setstate alliedmg42crates default
		repairmg42 alliedmg42gun

		// Some kind of UI pop-up to alert players
		wm_announce	"Axis team has destroyed the Ridge MG Nest!"
	}
}

The clips, box models, and flag all have targetname of alliedmg42crates, the gun, sandbags have targetname alliedmg42gun. The sandbag clipping is the func_constructible.

Anyone have a clue what might be going on? I’m sure it’s something small…


(digibob) #2

Use script_movers instead of func_statics, we always had problems with them.


(hummer) #3

Ah… perfect… thanks djbob!


(diaper eater) #4

im also having the problem hummer is, could you explain a lil more, do i simply change it from func_static to script_mover, or are there other things to do on top of that to make it work


(hummer) #5

Read the sticky thread above on documentation errors… it’s explained there.


(diaper eater) #6

gracias