zhlt_noclip blockes bullets? Created 8 years ago2016-11-01 22:41:31 UTC by kruk kruk

Created 8 years ago2016-11-01 22:41:31 UTC by kruk kruk

Posted 8 years ago2016-11-01 22:43:37 UTC Post #332189
I needed to make func_tank not solid and i achiwed it by adding zhlt_noclip 1 but still to my suprise the brush blockes bullets and shows bullet decals :(

I use Vluzacn's ZHLT v34
Posted 8 years ago2016-11-02 13:56:40 UTC Post #332192
THX
Oh, shame it needs code editing :(
Eh XD i dont like to edit the code since im a bit of a noob with it
(just doing minor editing) ;p
usualy i end up with some bugs ect ...

But yeah did do as you suggested with a minor difference

#define SF_TANK_PASSABLE 8
if ( FBitSet (pev->spawnflags, SF_TANK_PASSABLE) )
	pev->solid		= SOLID_NOT;
else
	pev->solid		= SOLID_BSP;
in FGD

@BaseClass base(Targetname, Target, RenderFields, Global, Angles) = BaseTank
[
spawnflags(flags) =
[
	1 : "Active" : 0
	8 : "Not Solid" : 0
	16: "Only Direct" : 0
	32: "Controllable" : 0
]
Since might need to be solid sometimes i made it switchable.

Im not sure... if its the right way? but seems to wrok ;] ..or will it? XD
You must be logged in to post a response.