init()
{
	precacheShellShock("default");
}

shellshockOnDamage(cause, damage)
{

	if(game["am_player_shell_shock"] != 1) return;


	if( cause == "MOD_EXPLOSIVE" ||
		cause == "MOD_GRENADE" ||
		cause == "MOD_GRENADE_SPLASH" ||
		cause == "MOD_PROJECTILE" ||
		cause == "MOD_PROJECTILE_SPLASH" )
	{
		time = 0;
		
		if(damage >= 90)
			time = 4;
		else if(damage >= 50)
			time = 3;
		else if(damage >= 25)
			time = 2;
		else if(damage > 10)
			time = 1;
		
		if(time)
			self shellshock("default", time);
	}
}