Raised This Month: $ Target: $400
 0% 

[How To] Set Client m_fFlags...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
UserFriendly
BANNED
Join Date: Dec 2010
Old 12-19-2010 , 06:53   [How To] Set Client m_fFlags...
Reply With Quote #1

how do i set the clients flags when they are on the ground to null. in other words when a player is on the ground how do i set there flags to not be on the ground
UserFriendly is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 12-19-2010 , 07:43   Re: [How To] Set Client m_fFlags...
Reply With Quote #2

SetEntProp.
__________________
FaTony is offline
UserFriendly
BANNED
Join Date: Dec 2010
Old 12-19-2010 , 09:02   Re: [How To] Set Client m_fFlags...
Reply With Quote #3

this?

SetEndProp(Client, , Prop_Data, "m_fFlags", ??);
UserFriendly is offline
Andersso
Member
Join Date: Nov 2009
Location: E8 2A 2A 2A 2A
Old 12-19-2010 , 10:15   Re: [How To] Set Client m_fFlags...
Reply With Quote #4

SetEntProp(client, Prop_Send, "m_fFlags", value)

or

SetEntData(client, FindSendPropOffs("CBasePlayer", "m_fFlags"), value)

..If this is a send prop
Andersso is offline
UserFriendly
BANNED
Join Date: Dec 2010
Old 12-19-2010 , 10:17   Re: [How To] Set Client m_fFlags...
Reply With Quote #5

yes but what would the value be?
UserFriendly is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 12-19-2010 , 12:08   Re: [How To] Set Client m_fFlags...
Reply With Quote #6

http://docs.sourcemod.net/api/index....ad=file&id=47&

fl_ are what you need.
blodia is offline
UserFriendly
BANNED
Join Date: Dec 2010
Old 12-19-2010 , 14:25   Re: [How To] Set Client m_fFlags...
Reply With Quote #7

"FL_ONGROUND" or "(1 << 0)"??

like this?

SetEntData(client, FindSendPropOffs("CBasePlayer", "m_fFlags"), (1 << 0))
UserFriendly is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-19-2010 , 14:38   Re: [How To] Set Client m_fFlags...
Reply With Quote #8

If you want to remove only the FL_ONGROUND flag, do:
Code:
SetEntProp(client, Prop_Data, "m_fFlags", (GetEntProp(client, Prop_Data, "m_fFlags") & ~FL_ONGROUND))
psychonic is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode