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

@t @ct in css is equal to what in dods??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 11-24-2010 , 10:58   @t @ct in css is equal to what in dods??
Reply With Quote #1

Hiho everybody,

simple question but google cant give me an answer:

I can Target at one Team only via @t or @ct in Counterstrike.

How can I target at Axis or Allies in Day of Defeat Source?

Thanks for ur replies.
micazoid is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 11-24-2010 , 16:55   Re: @t @ct in css is equal to what in dods??
Reply With Quote #2

Well Axis are clearly the terrorists.
Seta00 is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 11-24-2010 , 22:23   Re: @t @ct in css is equal to what in dods??
Reply With Quote #3

Quote:
Originally Posted by Seta00 View Post
Well Axis are clearly the terrorists.
That all depends on what angle your shooting them at.
__________________
Happy Happy Joy Joy

sinblaster is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-24-2010 , 23:01   Re: @t @ct in css is equal to what in dods??
Reply With Quote #4


Found only in Cs:s (@t @ct) and TF2 (@red @blue)

Rest is @all @alive @dead @humans @bots...

*edit
@aim

Last edited by Bacardi; 11-25-2010 at 07:29.
Bacardi is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 11-25-2010 , 07:11   Re: @t @ct in css is equal to what in dods??
Reply With Quote #5

Well, then there is no @axis @allies......

I read how to target. This was why the question came up in my mind.
micazoid is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 11-25-2010 , 08:07   Re: @t @ct in css is equal to what in dods??
Reply With Quote #6

File a bug report.
Seta00 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-25-2010 , 11:38   Re: @t @ct in css is equal to what in dods??
Reply With Quote #7

Requires SM 1.4-hg2996 or later

Code:
#include <sourcemod> #define ALLIES 2 #define AXIS 3    public OnPluginStart()  {     AddMultiTargetFilter("@allies", FilterAllies, "Allies", false)     AddMultiTargetFilter("@axis", FilterAxis, "Axis", false)  }    public bool:FilterAllies(const String:pattern[], Handle:clients)  {     for (new i = 1; i <= MaxClients; i++) {        if (IsClientInGame(i) && GetClientTeam(i) == ALLIES)           PushArrayCell(clients, i)     }       return true  }     public bool:FilterAxis(const String:pattern[], Handle:clients)  {     for (new i = 1; i <= MaxClients; i++) {        if (IsClientInGame(i) && GetClientTeam(i) == AXIS)           PushArrayCell(clients, i)     }       return true  }

Last edited by psychonic; 02-26-2011 at 13:33.
psychonic is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-25-2010 , 12:58   Re: @t @ct in css is equal to what in dods??
Reply With Quote #8

That was fast like thunderbolt
Bacardi is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 11-26-2010 , 05:25   Re: @t @ct in css is equal to what in dods??
Reply With Quote #9

O.O

Psychonic thats cool. Thank you very much. I just have to compile it.
You should release this. I think I am not the only one with this question.

Thanks Thanks Thanks Thanks Thanks Thanks
micazoid is offline
alpetras
Junior Member
Join Date: Jun 2009
Old 02-26-2011 , 13:28   Re: @t @ct in css is equal to what in dods??
Reply With Quote #10

this one's for HL2MP/HL2DM
thanks psychonic for the help
Code:
#include <sourcemod> #define COMBINE 2 #define REBELS 3   public OnPluginStart() {     AddMultiTargetFilter("@combine", FilterCombine, "Combine", false)     AddMultiTargetFilter("@blue", FilterCombine, "Combine", false)     AddMultiTargetFilter("@rebels", FilterRebels, "Rebels", false)     AddMultiTargetFilter("@red", FilterRebels, "Rebels", false) }   public bool:FilterCombine(const String:pattern[], Handle:clients) {     for (new i = 1; i <= MaxClients; i++) {         if (IsClientInGame(i) && GetClientTeam(i) == COMBINE)             PushArrayCell(clients, i)     }         return true }   public bool:FilterRebels(const String:pattern[], Handle:clients) {     for (new i = 1; i <= MaxClients; i++) {         if (IsClientInGame(i) && GetClientTeam(i) == REBELS)             PushArrayCell(clients, i)     }         return true }
alpetras 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 07:51.


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