View Single Post
AlexALX
Senior Member
Join Date: Apr 2009
Old 09-15-2010 , 09:57   Re: game_team_master&game_team_set Fix (CS 1.6)
Reply With Quote #29

Quote:
Originally Posted by Arkshine View Post
When i've said "Not much tested" ; I have still tested enough to post. Otherwise I would not have post a not-working plugin. So far I remember I've tested on both team, all etc.. with a game_player_equip entity and it was working perfectly for all cases.
Are you sure? And I say that your code wrong. And the mistake here:

Code:
SUB_UseTargets( gameTeamMaster, activator, USE_TYPE:get_pdata_int( triggerType, 4 ), value );
Must be:
Code:
SUB_UseTargets( gameTeamMaster, activator, USE_TYPE:get_pdata_int( gameTeamMaster, triggerType, 4 ), value );


And so - thank you very much. Still, you are mistaken in this...

And

Code:
    if ( !CanFireForActivator( gameTeamSet, activator ) )
    {
        return HAM_IGNORED;
    }
May be must be:

Code:
    if ( !CanFireForActivator( gameTeamSet, activator ) )
    {
        return HAM_SUPERCEDE;
    }
??? Or not?..

Last edited by AlexALX; 09-15-2010 at 10:00.
AlexALX is offline