Raised This Month: $51 Target: $400
 12% 

[REQ] TFC, get_user_flag


  
 
 
Thread Tools Display Modes
Author Message
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 05-07-2006 , 11:59   [REQ] TFC, get_user_flag
#1

Hello, i need a functin for tfcx module :
get_user_flag(index,hasflag,team)

Index = The current player
Hasflag = If user has a flag (true / false)
Team = From witch team is the flag, that is caried. (Optional)

Thanks,
Ramon.
__________________
Um, hi.
Ramono is offline
BAILOPAN
Join Date: Jan 2004
Old 05-16-2006 , 17:46  
#2

FYI, I believe Damaged Soul is looking into implementing this. However, it is probable you won't see it in 1.75.
__________________
egg
BAILOPAN is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 06-04-2006 , 03:21  
#3

Hmm, yes, I don't see this making it into the 1.75 release unless someone already knows the offsets and how to decode the data at those offsets. I'm still working on this. It's likely going to be expanded a bit into something called get_user_objectiveitem or something like that though.

Anyways, I've found the offset for determining if a player is holding any objective item, such as the flag or the keycard in the rock2 map. But then there is another offset that holds data that is obviously a bitmask which I would think gives more information on what type of objective item a player is holding. I'm not 100% certain this particular offset is the correct one to look at, but it sure seems like.

(If anyone wants to help me out on this: Offset #26 is set to 1 whenever a player is holding an objective item and set to 0 if not. The other offset that needs to be figured out is #260)
__________________
エル・プサイ・コングルゥ
DS is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 08-22-2006 , 18:02   Re: [REQ] TFC, get_user_flag
#4

This has finally been added to SVN revision 2963.

Code:
native tfc_get_user_goalitem(index, &team)
I used "goalitem" because it isn't exclusive to flags. It can be use for any goal related item such as the keycards in rock2. Team is a byref parameter that will hold the team(s) that own the goal item.
__________________
エル・プサイ・コングルゥ
DS is offline
 



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 19:29.


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