bhoptimer icon indicating copy to clipboard operation
bhoptimer copied to clipboard

[ "Feature" ] Touching wall check

Open Nairdaa opened this issue 2 years ago • 2 comments

Please add that to the API.

"istouchingwall", just like on scroll "isonground".

eg:

public Action OnTouch(int client, int entity)
{
	if ((GetEntProp(entity, Prop_Data, "m_usSolidFlags") & 12) == 0)
	{
		g_bTouchesWall[client] = true;
	}
}

Nairdaa avatar May 21 '23 23:05 Nairdaa

What would this be used for?

rtldg avatar May 22 '23 16:05 rtldg

to check if a player is touching the wall

Nairdaa avatar May 28 '23 16:05 Nairdaa