Quote:
Originally Posted by Arkshine
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?..