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

[REQ-TFCX] is_team_ally


  
 
 
Thread Tools Display Modes
Author Message
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 10-08-2006 , 10:34   [REQ-TFCX] is_team_ally
#1

The teams in TFC can change on any map,
and i have a little request to add a function,

Example:
Code:
new ally = is_team_ally(TFC_TEAM_BLUE,TFC_TEAM_GREEN)
This returns 1 if green is blue's ally, and 0 if enemy.
( this infomation is stored in the entity called "info_tfdetect" ill try to come with more infomation about this later.)

Thanks, Ramon.
__________________
Um, hi.
Ramono is offline
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 10-08-2006 , 11:01   Re: [REQ-TFCX] is_team_ally
#2

Quote:
Originally Posted by Ramono View Post
( this infomation is stored in the entity called "info_tfdetect" ill try to come with more infomation about this later.)
the entity info_tfdetect has this 4 keyvalue's
Code:
team1_allies BLUE
team2_allies RED
team3_allies YELLOW
team4_allies GREEN
if team3_allies(green) containes 1 blue is an ally
and if it contains 2 red is an ally
and if its 3(1+2=3) blue and red are both ally's
so this are the flags
Code:
1 = blue
2 = red
4 = yellow
8 = green
Another example: if team2_allies(red) contains 13( 1+4+8 ) blue yellow and green are all ally's of red

ps: its not needed to give a team his own ally flag.
__________________
Um, hi.

Last edited by Ramono; 10-08-2006 at 11:10.
Ramono is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 01-22-2007 , 09:00   Re: [REQ-TFCX] is_team_ally
#3

This is added in revision 3252 as tfc_is_team_ally(TeamA,TeamB)
__________________
fyren sucks
sawce 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 23:03.


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