1 #insert scripts\shared\shared.gsh;
3 #namespace clientfield;
18 function register( str_pool_name, str_name, n_version, n_bits, str_type )
20 RegisterClientField( str_pool_name, str_name, n_version, n_bits, str_type );
34 function set( str_field_name, n_value )
38 CodeSetWorldClientField( str_field_name, n_value );
42 CodeSetClientField(
self, str_field_name, n_value );
60 CodeSetPlayerStateClientField(
self, str_field_name, n_value );
77 if ( !IsEntity(
self ) )
80 CodeSetUIModelClientField(
self, str_field_name, n_value );
96 return CodeGetUIModelClientField(
self, str_field_name );
112 for ( i = 0; i < n_increment_count; i++ )
116 CodeIncrementWorldClientField( str_field_name );
120 CodeIncrementClientField(
self, str_field_name );
140 foreach ( player
in level.players )
142 for ( i = 0; i < n_increment_count; i++ )
144 CodeIncrementUIModelClientField( player, str_field_name );
150 for ( i = 0; i < n_increment_count; i++ )
152 CodeIncrementUIModelClientField(
self, str_field_name );
171 for ( i = 0; i < n_increment_count; i++ )
173 CodeIncrementPlayerStateClientField(
self, str_field_name );
188 function get( str_field_name )
192 return CodeGetWorldClientField( str_field_name );
196 return CodeGetClientField(
self, str_field_name );
213 return CodeGetPlayerStateClientField(
self, field_name );