IW4-Dump-Files/maps/mp/_highlights.gsc

17 lines
550 B
Plaintext
Raw Normal View History

2017-07-08 11:47:21 -07:00
#include maps\mp\_utility;
#include common_scripts\utility;
giveHighlight( ref, value )
{
highlightCount = getClientMatchData( "highlightCount" );
if ( highlightCount < 18 ) // must match MaxHighlights in clientmatchdata definition
{
setClientMatchData( "highlights", highlightCount, "award", ref );
setClientMatchData( "highlights", highlightCount, "clientId", self.clientMatchDataId );
setClientMatchData( "highlights", highlightCount, "value", value );
highlightCount++;
setClientMatchData( "highlightCount", highlightCount );
}
}