Raised This Month: $ Target: $400
 0% 

Hammer: Using PlayerFlags in MapLogic?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BrainInBlack
Junior Member
Join Date: Aug 2012
Old 08-11-2012 , 00:20   Hammer: Using PlayerFlags in MapLogic?
Reply With Quote #1

Hi there, is there an easy way to get access to the player flags, directly over the map logic? For example: A player steps in a trigger_multiple, but the player has to have the "b"-flag to actually trigger anything.

Thank for your help ;)
BrainInBlack is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-11-2012 , 00:32   Re: Hammer: Using PlayerFlags in MapLogic?
Reply With Quote #2

I doubt it's possible, the map wouldn't have access to that information. The easiest method would be a plugin for the specific map that hooks the trigger_multiple entities with SDKHook_OnStartTouch / SDKHook_OnEndTouch and checks if the touching client has the necessary privileges, then activating whatever you had in mind. Granted it's late and I may be wrong, so do look out for other replies.
__________________
thetwistedpanda is offline
BrainInBlack
Junior Member
Join Date: Aug 2012
Old 08-11-2012 , 00:33   Re: Hammer: Using PlayerFlags in MapLogic?
Reply With Quote #3

yeah, thanks anyway
BrainInBlack is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 08-11-2012 , 00:36   Re: Hammer: Using PlayerFlags in MapLogic?
Reply With Quote #4

To the best of my knowledge, twisted panda is correct, I haven't seen any other method.
necavi is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-11-2012 , 01:11   Re: Hammer: Using PlayerFlags in MapLogic?
Reply With Quote #5

Quote:
Originally Posted by thetwistedpanda View Post
I doubt it's possible, the map wouldn't have access to that information. The easiest method would be a plugin for the specific map that hooks the trigger_multiple entities with SDKHook_OnStartTouch / SDKHook_OnEndTouch and checks if the touching client has the necessary privileges, then activating whatever you had in mind. Granted it's late and I may be wrong, so do look out for other replies.
That's a similar method i use.
Mitchell is offline
BrainInBlack
Junior Member
Join Date: Aug 2012
Old 08-11-2012 , 01:14   Re: Hammer: Using PlayerFlags in MapLogic?
Reply With Quote #6

So i have to go with a custom plugin... well, on to the docs and learning stuff xD
BrainInBlack 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 04:28.


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