View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 02-13-2011 , 13:08   Re: Like Open Source? Help Develop the TF2 Freeze Tag SM Extension!
Reply With Quote #33

Yes I know this is a necropost but I don't care.
Quote:
Originally Posted by Thraka View Post
Doh! It was m_fFlags. I fixed it but it didn't work

Here is my code when a person was frozen:
Code:
new flags = GetEntityFlags(player);
if (!(flags & FL_NOTARGET))
{
	flags &= FL_NOTARGET;
	SetEntProp(player, Prop_Data, "m_fFlags", flags);
}
It turns out that the define for FL_NOTARGET is incorrect in the sdk/smapi on the ep2v (tf2/css/etc.) engine. The flag got bumped by one.

Try using (1<<16) for it. It seems like it will work.
psychonic is offline