#GENERAL

*name      = "Paint";
*desc      = "Gives you a boost of paint.";
*stackable = 1;
*model     = "ink_pellet_01";
*model_scale = 0.75;
*model_sphere_map = 1;
*tex         = "items/ink_pellet_01.tga";
*color       = colorRGB( 0.7, 0.9, 1.0 );
*rad         = 0.5;
*mass        = 2.0;
*elasticity  = 0.1;
*drag        = 3.5;
*friction    = 1.0;
*hardness    = 0.0;
*lifetime    = 10.0;
*player_only = 1;
*attracted   = 1;


#ON_CREATION


#ON_DAMAGE


#ON_PICK_UP
// Add to the player's paint total.
var paint = add( 50, char_get_paint("player") );
var max_paint = char_get_attribute( "player", "paint max" );
paint = if( greater(paint,max_paint), max_paint, paint );
char_set_paint( "player", paint );
kill_this( );

